Chemistry
  1. Chemistry
  2. CMIS-143

AtomPub applyAcl expects Atom entry response

    Details

      Description

      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.

        Activity

        David Caruana created issue -
        Florian Müller made changes -
        Field Original Value New Value
        Assignee Florian Müller [ fmui ]
        Florian Müller made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Florian Müller made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        David Caruana added a comment -

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

        Show
        David Caruana added a comment - I can confirm SimpleReadWriteTests now pass with this fix. Thanks.
        David Caruana made changes -
        Fix Version/s opencmis-0.1.0-incubating [ 12315133 ]

          People

          • Assignee:
            Florian Müller
            Reporter:
            David Caruana
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development