Aki Yoshida created CXF-4476: -------------------------------- Summary: Content-Disposition header may be incorrectly set in MTOM under windows Key: CXF-4476 URL: https://issues.apache.org/jira/browse/CXF-4476 Project: CXF Issue Type: Bug Components: Core Affects Versions: 2.6.1 Environment: windows Reporter: Aki Yoshida Assignee: Aki Yoshida Priority: Minor
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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira