From: Joe W. <jo...@gm...> - 2012-10-09 14:21:13
|
Hi Wolfgang, > Right now the source code is in our internal git, but I will move it to a public repository when I have time. In the meantime, please just send me your fix and I will integrate it. Okay, here's the fix: Change login.xql line 70 from: empty($entry("expires")) or util:system-dateTime() < $entry("expires") to: empty($entry("expires")) or util:system-dateTime() < xs:dateTime($entry("expires")) The error message that led me to this fix was: 09 Oct 2012 08:39:27,607 [eXistThread-38] WARN (ServletHandler.java [doHandle]:553) - /exist/apps/dashboard/plugins/backup/images/icon.png org.exist.xquery.XPathException: exerr:ERROR Type error: cannot compare xs:dateTime to xs:string [at line 85, column 32] In function: login:is-valid(map*) [85:32:/db/dashboard/modules/login.xql] login:get-credentials(xs:string*, xs:string*, xs:boolean*) [47:35:/db/dashboard/modules/login.xql] login:set-user(xs:string*, xs:dayTimeDuration?, xs:boolean*) [101:15:/db/dashboard/modules/login.xql] at org.exist.xquery.value.AbstractDateTimeValue.compareTo(AbstractDateTimeValue.java:271) at org.exist.xquery.value.AbstractDateTimeValue.compareTo(AbstractDateTimeValue.java:251) Joe |