I'm currently on TomEE 1.7.1 PLUS (CXF 2.6.14). CXF has a bug - it cannot
handle File attachments if file name contains single quote symbol ():
---
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Hi
short answer is no, API changed and there is no compatibility between
both normally.
That said:
- TomEE 1.7.2-SNAPSHOT uses 2.6.16 so maybe it is fixed
- TomEE 2 already uses CXF 3
If you want to patch it yourself you can need to modify
openejb-cxf-transport/opeenjb-cxf-/openejb-cxf-rs
CXF 2.6.16 source is the same
(org.apache.cxf.attachment.AttachmentUtil.java):
if (!StringUtils.isEmpty(fileName)) {
if (fileName.indexOf(\) 0) {
fileName = fileName.substring(fileName.indexOf(\) +
1, fileName.lastIndexOf(\));
that's cxf api which changed.
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
2014-12-17 10:43 GMT+01:00 DonatasCiuksys donatas.ciuk...@mitsoft.lt:
CXF 2.6.16 source is the same
I see, thanks for info. I guess I'll just patch CXF AttachmentUtil class.
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/How-to-upgrade-CXF-to-2-7-tp4673228p4673232.html
Sent from the TomEE Users mailing list archive at Nabble.com.