Ideal way if using json Selector (CRX/JCR)? | Community
Skip to main content
Chandra_gupta
Level 4
October 16, 2015
Solved

Ideal way if using json Selector (CRX/JCR)?

  • October 16, 2015
  • 1 reply
  • 962 views

I am accessing JCR resource as site/page/jcr:content/par/text.6.json  and obviously works well on author and publish.

finally i enabled it in dispatcher  /0086 { /type "allow"  /glob "GET *.*[0-9].json*" } so first time when folder not created under webcache it serves json on browser but if access 2nd time, it says 403 error. again if i delete site/page folder under webcache it works but not 2nd time.

  • I have also tried in directory to get it working with no help.

<Directory "C:/Program Files (x86)/IBM/HTTPServer/htdocs/webcache">
     <IfModule disp_apache2.c>
       SetHandler dispatcher-handler
       ModMimeUsePathInfo On
     </IfModule>      
       Allow from all

  • I added mime type AddType application/json .json in httpd conf but no help.

I am sure this silly stuff but not hitting my head...

 

please advice.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AndySh4

You might try escaping the path to your resource.

This article on escaping & encoding paths, names, and values may be useful:

http://wiki.apache.org/jackrabbit/EncodingAndEscaping

1 reply

AndySh4Accepted solution
Level 3
October 16, 2015

You might try escaping the path to your resource.

This article on escaping & encoding paths, names, and values may be useful:

http://wiki.apache.org/jackrabbit/EncodingAndEscaping