How do I disable OSLC paging in RTC 4.0
![]()
I have the following url working perfectly fine in RTC 3.0.1
https://jazzserver:9443/ccm/oslc/users/ The above was returning all users in one XML With the upgrade to RTC 4.0 the above url assumes paging by default and returns only 50 users (nodes) with link to next page How can I disable the paging (by default possible?) I tried https://jazzserver:9443/ccm/oslc/users?oslc.paging=false but no luck,. Even tried https://jazzserver:9443/ccm/oslc/users?oslc_cm.pageSize=500 https://jazzserver:9443/ccm/oslc/users?oslc_cm.pageSize=-1 but no luck I am still consuming OSLC 1.0 Any help would be really appreciated |
2 answers
![]()
I don't believe that it is possible to disable paging because the OSLC core specification itself doesn't say what should happen if the client specifies oslc.paging=false, only what may happen if the client specifies oslc.paging=true:
a client adds the "key=value" pair
With regards to the pageSize attribute it is oslc.pageSize and not oslc_cm.pageSize, however note the caveat in the spec:
OSLC Services MAY ignore oslc.pageSize
In order to be OSLC compliant you should be handling the case where the server does decide to paginate the results, and check for the oslc:ResponseInfo element in the returned response, then extracting the URL to the next page from that.
Comments Thanks. I even tried that but no luck. Actually |
![]()
IBM says they won't fix this. Too bad they could have done this for backward compatibility sake
|