You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Alexey Zavizionov (JIRA)" <ji...@apache.org> on 2010/03/10 21:40:27 UTC
[jira] Created: (CMIS-154) CMISClient.createRelationship -
cmis:sourceId is not specified
CMISClient.createRelationship - cmis:sourceId is not specified
--------------------------------------------------------------
Key: CMIS-154
URL: https://issues.apache.org/jira/browse/CMIS-154
Project: Chemistry
Issue Type: Bug
Components: tck
Environment: TCK, xCMIS
Reporter: Alexey Zavizionov
CMISClient.createRelationship
public Entry createRelationship(IRI parent, String type, String targetId, String atomEntryFile) throws Exception {
type = (type == null) ? defaultRelationshipType : type;
String createFile = templates.load(atomEntryFile);
createFile = createFile.replace("${RELTYPE}", type);
createFile = createFile.replace("${TARGETID}", targetId);
Request req = new PostRequest(parent.toString(), createFile, CMISConstants.MIMETYPE_ENTRY);
Response res = executeRequest(req, 201);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CMIS-154) CMISClient.createRelationship -
cmis:sourceId is not specified
Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844026#action_12844026 ]
Florent Guillaume commented on CMIS-154:
----------------------------------------
In bug reports please always state what you would like the code to do, and why, instead of giving just the current status.
(Although here it may be obvious, it's good to guide the reader and be explicit.)
> CMISClient.createRelationship - cmis:sourceId is not specified
> --------------------------------------------------------------
>
> Key: CMIS-154
> URL: https://issues.apache.org/jira/browse/CMIS-154
> Project: Chemistry
> Issue Type: Bug
> Components: tck
> Environment: TCK, xCMIS
> Reporter: Alexey Zavizionov
>
> CMISClient.createRelationship
> public Entry createRelationship(IRI parent, String type, String targetId, String atomEntryFile) throws Exception {
> type = (type == null) ? defaultRelationshipType : type;
> String createFile = templates.load(atomEntryFile);
> createFile = createFile.replace("${RELTYPE}", type);
> createFile = createFile.replace("${TARGETID}", targetId);
> Request req = new PostRequest(parent.toString(), createFile, CMISConstants.MIMETYPE_ENTRY);
> Response res = executeRequest(req, 201);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CMIS-154) CMISClient.createRelationship -
cmis:sourceId is not specified
Posted by "David Caruana (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Caruana resolved CMIS-154.
--------------------------------
Resolution: Fixed
Assignee: David Caruana
http://svn.apache.org/viewvc?view=revision&revision=921824
Create relationship now specifies the sourceId of the source object.
> CMISClient.createRelationship - cmis:sourceId is not specified
> --------------------------------------------------------------
>
> Key: CMIS-154
> URL: https://issues.apache.org/jira/browse/CMIS-154
> Project: Chemistry
> Issue Type: Bug
> Components: tck
> Environment: TCK, xCMIS
> Reporter: Alexey Zavizionov
> Assignee: David Caruana
>
> CMISClient.createRelationship
> public Entry createRelationship(IRI parent, String type, String targetId, String atomEntryFile) throws Exception {
> type = (type == null) ? defaultRelationshipType : type;
> String createFile = templates.load(atomEntryFile);
> createFile = createFile.replace("${RELTYPE}", type);
> createFile = createFile.replace("${TARGETID}", targetId);
> Request req = new PostRequest(parent.toString(), createFile, CMISConstants.MIMETYPE_ENTRY);
> Response res = executeRequest(req, 201);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.