Details
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
- relates to
-
CXF-4420 CXF JAXWS MTOM should be able to extract Content-Disposition and setName accordingly for AttachmentDataSource
- Closed