Hi Guenter,
Your file:name() usage is a bit borrowed (outside the file module standard usage), Could it be because file module usage is restricted in a webapp context for security reasons ?
Is the document serialization leading to a file path ? It seems you are giving a document-node to the file:name function, did you try file:name(db:path($doc)) ?
Usually I just use something like tokenize(db:path($doc), '/')[last()]
Best regards, Fabrice
-----Message d'origine----- De : basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] De la part de Günter Dunz-Wolff Envoyé : vendredi 1 septembre 2017 14:11 À : BaseX Objet : [basex-talk] file:name -> admin permission required
Hi all,
I updated my older basex-version, now I get in my RESTXQ-App the error 'admin permission required‘ with
let $collection := collection("data/stories") for $doc in $collection let $file_name := file:name($doc) return $file_name
Whats going wrong?
Thanks for any help. Guenter