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

Content-Disposition header may be incorrectly set in MTOM under windows

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.4.10, 2.5.6, 2.6.3, 2.7
    • Component/s: Core
    • Labels:
      None
    • Environment:

      windows

    • Estimated Complexity:
      Unknown

      Description

      This problem can be seen in the following test case when it is executed under windows.

      Failed tests: testMtomWithFileName(org.apache.cxf.systest.mtom.ClientMtomXopTest): can't get file name expected:<return detail + []me.bmp> but was:<return detail + [/C:/repos/cxf/trunk/systests/uncategorized/target/test-classes/]me.bmp>

      The problem is the way how the file name is extracted in AttachmentUtils.createMtomAttachmentFromDH. Concretely, this method extracts the part of the data handler's URL string after the last File.separator, where this string is given as the standard URL syntax which does not contains the windows' File.separator.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ay Akitoshi Yoshida
                Reporter:
                ay Akitoshi Yoshida
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: