Expand my Community achievements bar.

SOLVED

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

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Level 4

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

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