Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8627

AttachmentDataSource should always returns a valid contentType

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5.0, 3.3.13, 3.4.6
    • None
    • None
    • Unknown

    Description

      Per the javax.activation.DataSource API

      /**
           * This method returns the MIME type of the data in the form of a
           * string. It should always return a valid type. It is suggested
           * that getContentType return "application/octet-stream" if the
           * DataSource implementation can not determine the data type.
           *
           * @return the MIME Type
           */
          public String getContentType();
      
      

      So cxf AttachmentDataSource should also follow this. For the case that the incoming soap message with attachments, if the MIME part doesn't specify a content-type, use the general
      "application/octet-stream"

      Attachments

        Issue Links

          Activity

            People

              ffang Freeman Yue Fang
              ffang Freeman Yue Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: