Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-461

AtomPub: cannot get folder rendition by stream id

    XMLWordPrintableJSON

Details

    Description

      Using AtomPub, the spec says that the URL for a rendition stream is in the <link rel="alternate" href="...">, however these alternate link definitions don't contain the stream id. So if all you have is a stream id (as returned in the <cmis:rendition> elements for instance), it's not enough.

      So using AtomPub it's impossible to implement properly a getContentStream with a streamId parameter. That's a spec deficiency, as already pointed out in http://lists.oasis-open.org/archives/cmis/201002/msg00021.html

      In the current implementation, an attempt is made to add ?streamId=... to the content stream URL, and apparently most servers accept that, even though this is not per spec. But a folder (which may have a rendition) does not have a content stream so this cannot work at all in the folder case.

      One possibility to fix this is to try to extract a meaningful stream id from the alternate links by parsing the link URL and extracting any streamId=... parameter found. Note that this is only a workaround, as nothing in the spec mandates that the URL be of this form.

      Attachments

        Issue Links

          Activity

            People

              fguillaume Florent Guillaume
              fguillaume Florent Guillaume
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: