You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Jeff Potts (JIRA)" <ji...@apache.org> on 2010/07/13 21:45:50 UTC
[jira] Commented: (CMIS-232) RepositoryTest.testGetObjectByPath
should use 'pathSegment'
[ https://issues.apache.org/jira/browse/CMIS-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887957#action_12887957 ]
Jeff Potts commented on CMIS-232:
---------------------------------
Given the following path to an object:
/a/b/c/d.pdf
The path segment tokens are "a", "b", "c", and "d.pdf".
The getObjectByPath method does assume that you will pass it a path comprised of path segment tokens separated by forward slashes. This is how CMIS defines a "path" per the spec.
Are you asking for a getObjectByPath method that accepts something other than a forward-slash separated list of path segment tokens (aka, a "path")?
> RepositoryTest.testGetObjectByPath should use 'pathSegment'
> -----------------------------------------------------------
>
> Key: CMIS-232
> URL: https://issues.apache.org/jira/browse/CMIS-232
> Project: Chemistry
> Issue Type: Bug
> Components: cmislib
> Reporter: Jeff Potts
> Assignee: Jeff Potts
> Priority: Minor
>
> Migrated from GC issue #11, Reported by niyue.com, Mar 29, 2010
> RepositoryTest.testGetObjectByPath concatenates an object path by using
> several folder names and document name together, this is incorrect
> sometimes. According to CMIS spec 1.0cd07:
> Folder and object path segments are specified by pathSegment tokens
> which can be retrieved by all services that take an includePathSegments
> parameter.
> A pathSegment token MUST not include a '/' character.
> It is repository specific how a repository chooses the value for
> pathSegment.
> Repositories might choose to use cmis:name or content stream filename for
> pathSegment token.
> The pathSegment token for each item MUST uniquely identify the item in
> the folder.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.