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

When creating DataContentHandler, defaultCommandMap should be considered.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.3
    • 2.6.4, 2.7.1
    • None
    • None
    • Unknown

    Description

      When creating DataContentHandler, null may be returned from CXF's static CommandMap. DefaultCommandMap from CommandMap.getDefaultCommandMap() could also be used to create DataContentHandler.
      Because in RI implementation,xxx.saaj.soap.AttachmentPartImpl,
      Some static statement would add specific content handler to default CommandMap.

      CommandMap localCommandMap = CommandMap.getDefaultCommandMap();
      localMailcapCommandMap.addMailcap("text/xml" + str + "xxx.saaj.soap.XmlDataContentHandler");
      

      Attachments

        1. AttachmentUtil.java.patch
          0.5 kB
          Jinhua Wang
        2. AttachmentUtilTest.java
          3 kB
          Jinhua Wang
        3. AttachmentUtilWithoutAttachmentPartTest.java
          1 kB
          Jinhua Wang
        4. CommandMapImpactTest.java
          6 kB
          Jinhua Wang
        5. EnhancedMailcapCommandMap.java
          4 kB
          Jinhua Wang

        Activity

          People

            dkulp Daniel Kulp
            ivywjhua Jinhua Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: