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

[BUG] Wiki App Crashes #74

Open ghost opened 4 years ago

ghost commented 4 years ago

@innomon commented on Mar 2, 2020, 7:53 AM UTC:

Describe the bug clicking on wiki app crashes it.

Expected behavior should show the wiki app

To Reproduce

click here to open the wiki app, it crashes


URI: | /exist/apps/wiki/
-- | --
500
javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/apps/wiki/: err:XPST0003 error found while loading module login: Error while loading module modules/login.xql: Syntax error within user defined function login:set-user: unexpected token: ( [at line 48, column 38]
XQueryURLRewrite
javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/apps/wiki/: err:XPST0003 error found while loading module login: Error while loading module modules/login.xql: Syntax error within user defined function login:set-user: unexpected token: ( [at line 48, column 38]
javax.servlet.ServletException: An error occurred while processing request to /exist/apps/wiki/: err:XPST0003 error found while loading module login: Error while loading module modules/login.xql: Syntax error within user defined function login:set-user: unexpected token: ( [at line 48, column 38]
org.exist.xquery.XPathException: err:XPST0003 error found while loading module login: Error while loading module modules/login.xql: Syntax error within user defined function login:set-user: unexpected token: ( [at line 48, column 38]

Additional context

This issue was moved by adamretter from eXist-db/exist#3259.

ghost commented 4 years ago

@adamretter commented on Mar 2, 2020, 11:15 AM UTC:

innomon this indicates that there is a code error in the Wiki app. Where did you get the Wiki app from?

ghost commented 4 years ago

@innomon commented on Mar 2, 2020, 1:48 PM UTC:

innomon this indicates that there is a code error in the Wiki app. Where did you get the Wiki app from?

I downloaded from the packagemanager https://cooperative.social/exist/apps/dashboard/admin#/packagemanager

APPLICATION
AtomicWiki
Version 0.8
Url /exist/apps/wiki/
Name    http://exist-db.org/apps/wiki
Description Redesign of AtomicWiki
Abbreviation    wiki
Website http://atomic.exist-db.org
ghost commented 4 years ago

@adamretter commented on Mar 2, 2020, 1:53 PM UTC:

innomon ah okay, as this is a problem with AtomicWiki rather than eXist-db I am going to move the issue to that repository

brobertson commented 4 years ago

I've made some progress with this by typing functions 'as empty-sequence()' which had been 'as empty()'. However, now the restxq module is also throwing errors. Given that the wiki works on the eXist website, is there a version around that is functioning?

brobertson commented 4 years ago

For further context the wiki's restxq module now has an out-of-date map syntax. I wonder if there is a module in the eXist-db universe that has the same functionality but is up-to-date. E.g.: Error while loading module modules/restxq.xql: Function map:new() is not defined in module namespace: http://www.w3.org/2005/xpath-functions/map [at line 191, column 29]

richardkaplan commented 3 years ago

Any further thoughts on this?