srophe / srophe-eXist-app

DEPRECATED eXist code for Syriaca.org: The Syriac Reference Portal
GNU General Public License v3.0
10 stars 12 forks source link

500 Server error on http://wwwb.library.vanderbilt.edu/exist/apps/srophe/person/44/tei #1132

Closed nathangibson closed 5 years ago

nathangibson commented 5 years ago

I get this error when I click the "TEI" source button

HTTP ERROR 500

Problem accessing /exist/apps/srophe/person/44/tei. Reason:

Server Error

Caused by:

javax.servlet.ServletException: An error occurred while processing request to /exist/apps/srophe/person/44/tei: exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: root($arg as node()?) node()?. Expected cardinality: zero or one, got 2. [at line 330, column 10, source: /db/apps/srophe/modules/rest.xqm] In function: api:get-tei(item()) [304:29:/db/apps/srophe/modules/rest.xqm] api:get-page(xs:string?, xs:string?, xs:string, item()) [-1:-1:/db/apps/srophe/modules/rest.xqm] at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:378)

wsalesky commented 5 years ago

It is breaking because there are two idno = http://syriaca.org/person/44. One is in the depreciated directory. I added the correct filter.

nathangibson commented 5 years ago

Thanks!