You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "David Caruana (JIRA)" <ji...@apache.org> on 2010/03/01 20:12:06 UTC

[jira] Created: (CMIS-143) AtomPub applyAcl expects Atom entry response

AtomPub applyAcl expects Atom entry response
--------------------------------------------

                 Key: CMIS-143
                 URL: https://issues.apache.org/jira/browse/CMIS-143
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-provider
            Reporter: David Caruana


AbstractAtomPubService.java (line 743):

    HttpUtils.Response resp = put(aclUrl, Constants.MEDIATYPE_ACL, new HttpUtils.Output() {
      public void write(OutputStream out) throws Exception {
        JaxBHelper.marshal(JaxBHelper.CMIS_OBJECT_FACTORY.createAcl(aclJaxb), out, false);
      }
    });

    // parse new entry
    return parse(resp.getStream(), AtomEntry.class);

The spec is not clear, but I would expect the PUT response to return a media type of application/cmisacl+xml.

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


[jira] Resolved: (CMIS-143) AtomPub applyAcl expects Atom entry response

Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florian Müller resolved CMIS-143.
---------------------------------

    Resolution: Fixed

> AtomPub applyAcl expects Atom entry response
> --------------------------------------------
>
>                 Key: CMIS-143
>                 URL: https://issues.apache.org/jira/browse/CMIS-143
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-provider
>            Reporter: David Caruana
>            Assignee: Florian Müller
>
> AbstractAtomPubService.java (line 743):
>     HttpUtils.Response resp = put(aclUrl, Constants.MEDIATYPE_ACL, new HttpUtils.Output() {
>       public void write(OutputStream out) throws Exception {
>         JaxBHelper.marshal(JaxBHelper.CMIS_OBJECT_FACTORY.createAcl(aclJaxb), out, false);
>       }
>     });
>     // parse new entry
>     return parse(resp.getStream(), AtomEntry.class);
> The spec is not clear, but I would expect the PUT response to return a media type of application/cmisacl+xml.

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


[jira] Commented: (CMIS-143) AtomPub applyAcl expects Atom entry response

Posted by "David Caruana (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840065#action_12840065 ] 

David Caruana commented on CMIS-143:
------------------------------------

I can confirm SimpleReadWriteTests now pass with this fix. Thanks.

> AtomPub applyAcl expects Atom entry response
> --------------------------------------------
>
>                 Key: CMIS-143
>                 URL: https://issues.apache.org/jira/browse/CMIS-143
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-provider
>            Reporter: David Caruana
>            Assignee: Florian Müller
>
> AbstractAtomPubService.java (line 743):
>     HttpUtils.Response resp = put(aclUrl, Constants.MEDIATYPE_ACL, new HttpUtils.Output() {
>       public void write(OutputStream out) throws Exception {
>         JaxBHelper.marshal(JaxBHelper.CMIS_OBJECT_FACTORY.createAcl(aclJaxb), out, false);
>       }
>     });
>     // parse new entry
>     return parse(resp.getStream(), AtomEntry.class);
> The spec is not clear, but I would expect the PUT response to return a media type of application/cmisacl+xml.

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


[jira] Assigned: (CMIS-143) AtomPub applyAcl expects Atom entry response

Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florian Müller reassigned CMIS-143:
-----------------------------------

    Assignee: Florian Müller

> AtomPub applyAcl expects Atom entry response
> --------------------------------------------
>
>                 Key: CMIS-143
>                 URL: https://issues.apache.org/jira/browse/CMIS-143
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-provider
>            Reporter: David Caruana
>            Assignee: Florian Müller
>
> AbstractAtomPubService.java (line 743):
>     HttpUtils.Response resp = put(aclUrl, Constants.MEDIATYPE_ACL, new HttpUtils.Output() {
>       public void write(OutputStream out) throws Exception {
>         JaxBHelper.marshal(JaxBHelper.CMIS_OBJECT_FACTORY.createAcl(aclJaxb), out, false);
>       }
>     });
>     // parse new entry
>     return parse(resp.getStream(), AtomEntry.class);
> The spec is not clear, but I would expect the PUT response to return a media type of application/cmisacl+xml.

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