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

AtomPub media type generation may fail on invalid MIME types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • chemistry-old
    • None

    Description

      Stack trace:
      Caused by: org.apache.abdera.util.MimeTypeParseException: javax.activation.MimeTypeParseException: Unable to find a sub type.
      at org.apache.abdera.parser.stax.FOMEntry.setContent(FOMEntry.java:322)
      at org.apache.chemistry.atompub.server.CMISObjectsCollection.addMediaContent(CMISObjectsCollection.java:742)
      at org.apache.chemistry.atompub.server.CMISChildrenCollection.addFeedDetails(CMISChildrenCollection.java:203)
      at org.apache.chemistry.atompub.server.CMISChildrenCollection.getFeed(CMISChildrenCollection.java:87)
      at org.apache.chemistry.atompub.server.jaxrs.AbderaResource.getAbderaFeed(AbderaResource.java:204)
      at org.apache.chemistry.atompub.server.jaxrs.AbderaResource.doGetChildren(AbderaResource.java:286)
      ...
      Caused by: javax.activation.MimeTypeParseException: Unable to find a sub type.
      at javax.activation.MimeType.parse(MimeType.java:87)
      at javax.activation.MimeType.<init>(MimeType.java:48)
      at org.apache.abdera.parser.stax.FOMEntry.setContent(FOMEntry.java:317)

      This happens if the cmis:contentStreamMimeType of the document is invalid and cannot be parsed.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: