[ 
https://issues.apache.org/jira/browse/CMIS-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869624#action_12869624
 ] 

Dave Landers commented on CMIS-210:
-----------------------------------

My issue was with query params in the links.

All of our paging links saw a problem.  We implement paging using the standard 
skipCount and maxItems query params, so a rel='next' link might be:

   http://repo/children?maxItems=25&skipCount=25&uid=IDC:Folder/4

When grafted onto the uri query param of the browser, you get:

   
http://browser/browse?uri=http://repo/children?maxItems=25&skipCount=25&uid=IDC:Folder/4

The problem I was seeing is actually with the & characters for skipCount and 
uid (or whatever query params happen to be on the link).  Since the &'s are 
unencoded, these query params were being processed (and ignored) by the browser 
and not passed on to the repository.  So for the above link, my repository only 
receives the maxItems query param, and is not sent skipCount or uid.

I have deployed the browser on both tomcat and winstone, with same end result.

-- 

Actual links (above were shortened for better readability)

Browser:
   http://localhost:8080/browse

CMIS Next link for children of IDC:Folder/4:

  
http://127.0.0.1:7001/content-st/cmis/children/StellentRepository?maxItems=25&skipCount=25&uid=IDC:Folder/4

Result link via browser:

  
http://localhost:8080/browse?url=http://127.0.0.1:7001/content-st/cmis/children/StellentRepository?maxItems=25&skipCount=25&uid=IDC:Folder/4



> test browser links need url encoding
> ------------------------------------
>
>                 Key: CMIS-210
>                 URL: https://issues.apache.org/jira/browse/CMIS-210
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-test
>            Reporter: Dave Landers
>            Priority: Minor
>         Attachments: browser_xsl_encoding.zip
>
>
> Links in the browser are not working with our CMIS repo (Oracle) as the url 
> query param is not encoded (so query params on our links - especially paging 
> links next/previous/first/last - are being lost)
> All the link and collection href's in the browser's xsl need to be encoded so 
> they forward to the repository properly.
> I have a potential fix for entry.xsl, feed.xsl, and service.xsl I would be 
> happy to contribute

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to