Open xbonnamy-marklogic opened 5 years ago
Xavier, have you looked at the uri /dataModule/007f8829-dc77-4bd2-b833-ff343022bdf0 in the error message, is that the correct document? Does the document exist? It also does not have a type extension (xml,json), this could be the issue. Of course the data explorer should be better at catching that if it is the problem. Could you check these a see. I will see if there is someone available to look deeper.
It is the correct document/uri and it is of type XML but it's URI does not have the type extension. If I add a type extension, it works.
ok, thanks. We will keep this open as a bug to get fixed and/or at handle the exception.
I have a user with proper role & privilege to see conten. I added data-explorer(search & wizard)-role. After creation query & view, my user can search data but can not view detail. When clicking on URI to see document detail, nothing displays. Looking at network details in my browser, the following error is reported (see below). Is it natural?
Technical environment
MarkLogic 9.0-6.2
Error message
<!DOCTYPE html>
Data-Explorer
Error
There has been an error.
<error:error xsi:schemaLocation="http://marklogic.com/xdmp/error error.xsd" xmlns:error="http://marklogic.com/xdmp/error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <error:code>XDMP-ARGTYPE</error:code> <error:name>err:XPTY0004</error:name> <error:xquery-version>1.0-ml</error:xquery-version> <error:message>Invalid argument type</error:message> <error:format-string>XDMP-ARGTYPE: (err:XPTY0004) map:keys(()) -- arg1 is not of type map:map</error:format-string> <error:retryable>false</error:retryable> <error:expr>map:keys(())</error:expr> <error:data> <error:datum>arg1</error:datum> <error:datum>map:map</error:datum> </error:data> <error:stack> <error:frame> <error:uri>/server/endpoints/api-detail.xqy</error:uri> <error:line>104</error:line> <error:column>20</error:column> <error:operation>local:get-json("/dataModule/007f8829-dc77-4bd2-b833-ff343022bdf0", "technical-documentation-content")</error:operation> <error:variables> <error:variable> <error:name xmlns="">uri</error:name> <error:value>"/dataModule/007f8829-dc77-4bd2-b833-ff343022bdf0"</error:value> </error:variable> <error:variable> <error:name xmlns="">db</error:name> <error:value>"technical-documentation-content"</error:value> </error:variable> <error:variable> <error:name xmlns="">content-type</error:name> <error:value>"application/x-unknown-content-type"</error:value> </error:variable> <error:variable> <error:name xmlns="">doc</error:name> <error:value>fn:doc("/dataModule/007f8829-dc77-4bd2-b833-ff343022bdf0")</error:value> </error:variable> <error:variable> <error:name xmlns="">rawDoc</error:name> <error:value>"<div class=&quot;element&quot;><div class=&quot;element&quot;><d..."</error:value> </error:variable> <error:variable> <error:name xmlns="">docText</error:name> <error:value>"<div class=\&quot;element\&quot;><div class=\&quot;element\&quot..."</error:value> </error:variable> <error:variable> <error:name xmlns="">docData</error:name> <error:value>"<?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quot;?> <..."</error:value> </error:variable> <error:variable> <error:name xmlns="">docData</error:name> <error:value>"&quot;<?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quo..."</error:value> </error:variable> <error:variable> <error:name xmlns="">doctype</error:name> <error:value>""</error:value> </error:variable> <error:variable> <error:name xmlns="">collections</error:name> <error:value>("/program/A320", "/type/documentation")</error:value> </error:variable> <error:variable> <error:name xmlns="">permissions</error:name> <error:value>(<permission><capability>update</capability><role-name><sec:role-name .../></role-name></permission>, <permission><capability>read</capability><role-name><sec:role-name .../></role-name></permission>)</error:value> </error:variable> <error:variable> <error:name xmlns="">triples</error:name> <error:value>()</error:value> </error:variable> <error:variable> <error:name xmlns="">related-map</error:name> <error:value>()</error:value> </error:variable> </error:variables> <error:xquery-version>1.0-ml</error:xquery-version> </error:frame> <error:frame> <error:uri>/server/endpoints/api-detail.xqy</error:uri> <error:line>138</error:line> <error:column>46</error:column> <error:operation>local:get-details()</error:operation> <error:xquery-version>1.0-ml</error:xquery-version> </error:frame> <error:frame> <error:uri>/server/endpoints/api-detail.xqy</error:uri> <error:line>147</error:line> <error:column>11</error:column> <error:xquery-version>1.0-ml</error:xquery-version> </error:frame> </error:stack> </error:error>