How to upgrade CXF to 2.7?

2014-12-17 Thread DonatasCiuksys
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

Re: How to upgrade CXF to 2.7?

2014-12-17 Thread Romain Manni-Bucau
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

Re: How to upgrade CXF to 2.7?

2014-12-17 Thread DonatasCiuksys
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(\));

Re: How to upgrade CXF to 2.7?

2014-12-17 Thread Romain Manni-Bucau
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

Re: How to upgrade CXF to 2.7?

2014-12-17 Thread DonatasCiuksys
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.