eXist-db / AtomicWiki

A wiki based on eXist-db which stores data as Atom feeds
GNU Lesser General Public License v2.1
15 stars 8 forks source link

Error when logging of in the Editor #22

Closed edecker closed 11 years ago

edecker commented 11 years ago

Pressing Logout User when editing an article produces an error.

exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: atomic:lock-for-user($feed as element()) item(). Expected cardinality: exactly one, got 0. [at line 130, column 54, source: /db/apps/wiki/modules/app.xql] In function: atomic:lock-for-user(element()) [130:32:/db/apps/wiki/modules/atomic.xql] app:get-or-create-entry(node(), map, xs:string?) [19:9:/db/apps/wiki/modules/app.xql] templates:call-with-args(function, function, element(), map) [129:13:/db/apps/wiki/modules/templates.xql] templates:process-output(element(), map, item(), element()) [126:9:/db/apps/wiki/modules/templates.xql] templates:call-by-introspection(element(), element(), map, function) [110:28:/db/apps/wiki/modules/templates.xql] templates:call(xs:string, element(), map) [80:29:/db/apps/wiki/modules/templates.xql] templates:process(node(), map) [177:13:/db/apps/wiki/modules/templates.xql] templates:call-by-introspection(element(), element(), map, function) [110:28:/db/apps/wiki/modules/templates.xql] templates:call(xs:string, element(), map) [80:29:/db/apps/wiki/modules/templates.xql] templates:process(node(), map) [83:73:/db/apps/wiki/modules/templates.xql] templates:process(node(), map) [83:73:/db/apps/wiki/modules/templates.xql] templates:process(node(), map) [83:73:/db/apps/wiki/modules/templates.xql] templates:process(node(), map) [83:73:/db/apps/wiki/modules/templates.xql] templates:process(node(), map) [83:73:/db/apps/wiki/modules/templates.xql] templates:process(node(), map) [83:73:/db/apps/wiki/modules/templates.xql] templates:process(node(), map) [319:9:/db/apps/wiki/modules/templates.xql] templates:surround(node(), map, xs:string, xs:string?, xs:string?) [19:9:/db/apps/wiki/modules/templates.xql] templates:call-with-args(function, function, element(), map) [129:13:/db/apps/wiki/modules/templates.xql] templates:process-output(element(), map, item(), element()) [126:9:/db/apps/wiki/modules/templates.xql] templates:call-by-introspection(element(), element(), map, function) [110:28:/db/apps/wiki/modules/templates.xql] templates:call(xs:string, element(), map) [80:29:/db/apps/wiki/modules/templates.xql] templates:process(node(), map) [83:73:/db/apps/wiki/modules/templates.xql] templates:process(node(), map) [73:51:/db/apps/wiki/modules/templates.xql] templates:process(node(), map) [52:9:/db/apps/wiki/modules/templates.xql] templates:apply(node()+, function, map?, map?) [29:5:/db/apps/wiki/modules/templates.xql]

wolfgangmm commented 11 years ago

Fixed.