my-charter preview throws XRX error in case of non authenticated request
Created by: GVogeler
When calling a private charter in the preview MOM-CA currently throws an XRX-error:
The actual return type does not match the sequence type declared in the function's signature: charter:charterid(xs:string?) xs:string. Expected cardinality: exactly one, got 0. [at line 161, column 26, source: String] In function: charter:charterid(xs:string?) [25:207:/db/XRX.live/mom/app/charter/charter.xqm] It would be nice to have a standard authentication request instead ("This charter is private. Please log in to ..."), although the case is not very often, as it usually only occurs in project cooperations where URLs are sent around and testes without being logged in.