[jira] [Updated] (CXF-8281) Issue with attachment Chinese file name

2020-07-22 Thread Rajesh (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rajesh updated CXF-8281:

Attachment: wireshark[1].png
image.png

> Issue with  attachment Chinese file name
> 
>
> Key: CXF-8281
> URL: https://issues.apache.org/jira/browse/CXF-8281
> Project: CXF
>  Issue Type: Bug
>  Components: Bus, JAX-WS Runtime, WS-* Components
>Affects Versions: 3.2.4
>Reporter: Rajesh
>Priority: Major
> Attachments: Capture.PNG, Capture.PNG, CustomDataHandler.java, 
> Freeman Yue Fang.url, POAttachmentInterceptor.java, POHeaderInterceptor.java, 
> POInvokeHandler.java, POSwAInInterceptor.java, SoapRequest, Test12送货记录.pdf, 
> attachment-soap.zip, image.png, invcreatearibaprod-container.zip, 
> invoice-testing.rar, payloadRequest.txt, screenshot-1.png, soap ui- payload 
> and properties .png, soapui.png, wireshark.png, wireshark[1].png
>
>
> 0
> I'm using apache CXF for exposing the webservice. While reading chinese file 
> name from upstream (SOAP UI in local), unable to read exact chinese 
> characters. It's giving file name as '°U'°U123.pdf . I have tried with all 
> encodings but no luck. For other English name attachments no issues, able to 
> read properly.
> {quote}From soap ui i'm sending UTF-8 encoding , while reading in java I have 
> used same.
>  byte[] b = attachmentName.getBytes(StandardCharsets.UTF_8); 
> String attachName = new String(b, StandardCharsets.UTF_8.name());
> `Below is my interceptor code.
> {quote}
> public void handleMessage(SoapMessage message) throws Fault {
> logger.info("Handle Message for attachments ");
> BindingOperationInfo bop = 
> message.getExchange().getBindingOperationInfo();   
> if (bop == null) {
> return;
> }
> logger.info("binding info "+bop.getBinding());
> if (bop.isUnwrapped()) {
> bop = bop.getWrappedOperation();
> }
> if (null == message.getAttachments() || 
> message.getAttachments().isEmpty() ){
> return;
> }
> Iterator iter = message.getAttachments().iterator();
> Collection attchments = message.getAttachments();
> logger.info("message get attachments size   : 
> "+attchments.size());
>  int attachmentCount=0;
>  Map attachmentMap=   
> AttachmentUtil.getDHMap(attchments);
>  logger.info("Map "+attachmentMap.size());
> try{
> while (iter.hasNext()){
> Attachment attachment = iter.next();
> attachmentCount++;
> }
> }
> }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (CXF-8281) Issue with attachment Chinese file name

2020-07-22 Thread Colm O hEigeartaigh (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colm O hEigeartaigh updated CXF-8281:
-
Attachment: wireshark.png

> Issue with  attachment Chinese file name
> 
>
> Key: CXF-8281
> URL: https://issues.apache.org/jira/browse/CXF-8281
> Project: CXF
>  Issue Type: Bug
>  Components: Bus, JAX-WS Runtime, WS-* Components
>Affects Versions: 3.2.4
>Reporter: Rajesh
>Priority: Major
> Attachments: Capture.PNG, Capture.PNG, CustomDataHandler.java, 
> Freeman Yue Fang.url, POAttachmentInterceptor.java, POHeaderInterceptor.java, 
> POInvokeHandler.java, POSwAInInterceptor.java, SoapRequest, Test12送货记录.pdf, 
> attachment-soap.zip, invcreatearibaprod-container.zip, invoice-testing.rar, 
> payloadRequest.txt, screenshot-1.png, soap ui- payload and properties .png, 
> soapui.png, wireshark.png
>
>
> 0
> I'm using apache CXF for exposing the webservice. While reading chinese file 
> name from upstream (SOAP UI in local), unable to read exact chinese 
> characters. It's giving file name as '°U'°U123.pdf . I have tried with all 
> encodings but no luck. For other English name attachments no issues, able to 
> read properly.
> {quote}From soap ui i'm sending UTF-8 encoding , while reading in java I have 
> used same.
>  byte[] b = attachmentName.getBytes(StandardCharsets.UTF_8); 
> String attachName = new String(b, StandardCharsets.UTF_8.name());
> `Below is my interceptor code.
> {quote}
> public void handleMessage(SoapMessage message) throws Fault {
> logger.info("Handle Message for attachments ");
> BindingOperationInfo bop = 
> message.getExchange().getBindingOperationInfo();   
> if (bop == null) {
> return;
> }
> logger.info("binding info "+bop.getBinding());
> if (bop.isUnwrapped()) {
> bop = bop.getWrappedOperation();
> }
> if (null == message.getAttachments() || 
> message.getAttachments().isEmpty() ){
> return;
> }
> Iterator iter = message.getAttachments().iterator();
> Collection attchments = message.getAttachments();
> logger.info("message get attachments size   : 
> "+attchments.size());
>  int attachmentCount=0;
>  Map attachmentMap=   
> AttachmentUtil.getDHMap(attchments);
>  logger.info("Map "+attachmentMap.size());
> try{
> while (iter.hasNext()){
> Attachment attachment = iter.next();
> attachmentCount++;
> }
> }
> }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (CXF-8281) Issue with attachment Chinese file name

2020-07-22 Thread Colm O hEigeartaigh (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17162886#comment-17162886
 ] 

Colm O hEigeartaigh commented on CXF-8281:
--

Sorry, it must have been a problem on my end, it's working now. Please see the 
attached screenshot - which is a snippet from wireshark of the SOAP-UI message. 
As you can see it is displaying the incorrect characters. So perhaps it is not 
a bug in CXF at all, but a problem with SOAP UI !wireshark.png!

> Issue with  attachment Chinese file name
> 
>
> Key: CXF-8281
> URL: https://issues.apache.org/jira/browse/CXF-8281
> Project: CXF
>  Issue Type: Bug
>  Components: Bus, JAX-WS Runtime, WS-* Components
>Affects Versions: 3.2.4
>Reporter: Rajesh
>Priority: Major
> Attachments: Capture.PNG, Capture.PNG, CustomDataHandler.java, 
> Freeman Yue Fang.url, POAttachmentInterceptor.java, POHeaderInterceptor.java, 
> POInvokeHandler.java, POSwAInInterceptor.java, SoapRequest, Test12送货记录.pdf, 
> attachment-soap.zip, invcreatearibaprod-container.zip, invoice-testing.rar, 
> payloadRequest.txt, screenshot-1.png, soap ui- payload and properties .png, 
> soapui.png, wireshark.png
>
>
> 0
> I'm using apache CXF for exposing the webservice. While reading chinese file 
> name from upstream (SOAP UI in local), unable to read exact chinese 
> characters. It's giving file name as '°U'°U123.pdf . I have tried with all 
> encodings but no luck. For other English name attachments no issues, able to 
> read properly.
> {quote}From soap ui i'm sending UTF-8 encoding , while reading in java I have 
> used same.
>  byte[] b = attachmentName.getBytes(StandardCharsets.UTF_8); 
> String attachName = new String(b, StandardCharsets.UTF_8.name());
> `Below is my interceptor code.
> {quote}
> public void handleMessage(SoapMessage message) throws Fault {
> logger.info("Handle Message for attachments ");
> BindingOperationInfo bop = 
> message.getExchange().getBindingOperationInfo();   
> if (bop == null) {
> return;
> }
> logger.info("binding info "+bop.getBinding());
> if (bop.isUnwrapped()) {
> bop = bop.getWrappedOperation();
> }
> if (null == message.getAttachments() || 
> message.getAttachments().isEmpty() ){
> return;
> }
> Iterator iter = message.getAttachments().iterator();
> Collection attchments = message.getAttachments();
> logger.info("message get attachments size   : 
> "+attchments.size());
>  int attachmentCount=0;
>  Map attachmentMap=   
> AttachmentUtil.getDHMap(attchments);
>  logger.info("Map "+attachmentMap.size());
> try{
> while (iter.hasNext()){
> Attachment attachment = iter.next();
> attachmentCount++;
> }
> }
> }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (CXF-8281) Issue with attachment Chinese file name

2020-07-22 Thread Colm O hEigeartaigh (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17162886#comment-17162886
 ] 

Colm O hEigeartaigh edited comment on CXF-8281 at 7/22/20, 3:30 PM:


Sorry, it must have been a problem on my end, it's working now. Please see the 
attached screenshot - which is a snippet from wireshark of the SOAP-UI message. 
As you can see it is displaying the incorrect characters. So perhaps it is not 
a bug in CXF at all, but a problem with SOAP UI

!wireshark.png!


was (Author: coheigea):
Sorry, it must have been a problem on my end, it's working now. Please see the 
attached screenshot - which is a snippet from wireshark of the SOAP-UI message. 
As you can see it is displaying the incorrect characters. So perhaps it is not 
a bug in CXF at all, but a problem with SOAP UI !wireshark.png!

> Issue with  attachment Chinese file name
> 
>
> Key: CXF-8281
> URL: https://issues.apache.org/jira/browse/CXF-8281
> Project: CXF
>  Issue Type: Bug
>  Components: Bus, JAX-WS Runtime, WS-* Components
>Affects Versions: 3.2.4
>Reporter: Rajesh
>Priority: Major
> Attachments: Capture.PNG, Capture.PNG, CustomDataHandler.java, 
> Freeman Yue Fang.url, POAttachmentInterceptor.java, POHeaderInterceptor.java, 
> POInvokeHandler.java, POSwAInInterceptor.java, SoapRequest, Test12送货记录.pdf, 
> attachment-soap.zip, invcreatearibaprod-container.zip, invoice-testing.rar, 
> payloadRequest.txt, screenshot-1.png, soap ui- payload and properties .png, 
> soapui.png, wireshark.png
>
>
> 0
> I'm using apache CXF for exposing the webservice. While reading chinese file 
> name from upstream (SOAP UI in local), unable to read exact chinese 
> characters. It's giving file name as '°U'°U123.pdf . I have tried with all 
> encodings but no luck. For other English name attachments no issues, able to 
> read properly.
> {quote}From soap ui i'm sending UTF-8 encoding , while reading in java I have 
> used same.
>  byte[] b = attachmentName.getBytes(StandardCharsets.UTF_8); 
> String attachName = new String(b, StandardCharsets.UTF_8.name());
> `Below is my interceptor code.
> {quote}
> public void handleMessage(SoapMessage message) throws Fault {
> logger.info("Handle Message for attachments ");
> BindingOperationInfo bop = 
> message.getExchange().getBindingOperationInfo();   
> if (bop == null) {
> return;
> }
> logger.info("binding info "+bop.getBinding());
> if (bop.isUnwrapped()) {
> bop = bop.getWrappedOperation();
> }
> if (null == message.getAttachments() || 
> message.getAttachments().isEmpty() ){
> return;
> }
> Iterator iter = message.getAttachments().iterator();
> Collection attchments = message.getAttachments();
> logger.info("message get attachments size   : 
> "+attchments.size());
>  int attachmentCount=0;
>  Map attachmentMap=   
> AttachmentUtil.getDHMap(attchments);
>  logger.info("Map "+attachmentMap.size());
> try{
> while (iter.hasNext()){
> Attachment attachment = iter.next();
> attachmentCount++;
> }
> }
> }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Resolved] (CXF-8301) Upgrade to Spring Boot 2.3.x

2020-07-22 Thread Dennis Kieselhorst (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Kieselhorst resolved CXF-8301.
-
Fix Version/s: (was: 3.5.0)
   3.4.0
   Resolution: Fixed

upgrade as discussed on dev list

> Upgrade to Spring Boot 2.3.x
> 
>
> Key: CXF-8301
> URL: https://issues.apache.org/jira/browse/CXF-8301
> Project: CXF
>  Issue Type: Task
>Reporter: Andriy Redko
>Assignee: Dennis Kieselhorst
>Priority: Major
> Fix For: 3.4.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Assigned] (CXF-8301) Upgrade to Spring Boot 2.3.x

2020-07-22 Thread Dennis Kieselhorst (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Kieselhorst reassigned CXF-8301:
---

Assignee: Dennis Kieselhorst  (was: Andriy Redko)

> Upgrade to Spring Boot 2.3.x
> 
>
> Key: CXF-8301
> URL: https://issues.apache.org/jira/browse/CXF-8301
> Project: CXF
>  Issue Type: Task
>Reporter: Andriy Redko
>Assignee: Dennis Kieselhorst
>Priority: Major
> Fix For: 3.5.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (CXF-8320) POM Corrupted in recent CXF-Parent 3.4.0 Snapshot

2020-07-22 Thread Eric Carman (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17162763#comment-17162763
 ] 

Eric Carman commented on CXF-8320:
--

Thank you for your quick response!

> POM Corrupted in recent CXF-Parent 3.4.0 Snapshot
> -
>
> Key: CXF-8320
> URL: https://issues.apache.org/jira/browse/CXF-8320
> Project: CXF
>  Issue Type: Bug
>Reporter: Eric Carman
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 3.4.0
>
>
> Regarding these POMs in the repository
> [https://repository.apache.org/content/groups/snapshots/org/apache/cxf/cxf-parent/3.4.0-SNAPSHOT/]
> Beginning with the following upload, the POM files have extraneous 
> character(s) at the beginning of the file and render the file as invalid XML. 
> Therefore, all builds that would refer to these POMs, the builds fail during 
> the wsdl2java steps.
> [cxf-parent-3.4.0-20200719.211619-426.pom|https://repository.apache.org/content/groups/snapshots/org/apache/cxf/cxf-parent/3.4.0-SNAPSHOT/cxf-parent-3.4.0-20200719.211619-426.pom]
> This can be demonstrated by simply navigating to the repository using the 
> above link and clicking on the link noted above. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Closed] (CXF-8320) POM Corrupted in recent CXF-Parent 3.4.0 Snapshot

2020-07-22 Thread Eric Carman (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Carman closed CXF-8320.


Thank you!

> POM Corrupted in recent CXF-Parent 3.4.0 Snapshot
> -
>
> Key: CXF-8320
> URL: https://issues.apache.org/jira/browse/CXF-8320
> Project: CXF
>  Issue Type: Bug
>Reporter: Eric Carman
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 3.4.0
>
>
> Regarding these POMs in the repository
> [https://repository.apache.org/content/groups/snapshots/org/apache/cxf/cxf-parent/3.4.0-SNAPSHOT/]
> Beginning with the following upload, the POM files have extraneous 
> character(s) at the beginning of the file and render the file as invalid XML. 
> Therefore, all builds that would refer to these POMs, the builds fail during 
> the wsdl2java steps.
> [cxf-parent-3.4.0-20200719.211619-426.pom|https://repository.apache.org/content/groups/snapshots/org/apache/cxf/cxf-parent/3.4.0-SNAPSHOT/cxf-parent-3.4.0-20200719.211619-426.pom]
> This can be demonstrated by simply navigating to the repository using the 
> above link and clicking on the link noted above. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)