[
https://issues.apache.org/jira/browse/WW-5127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17343097#comment-17343097
]
icecanh commented on WW-5127:
-----------------------------
[~lukaszlenart]
Thank you for the reply.
I edited the boundary not containing the double quotes.
I tried again and the request was successful.
_Before:_
boundary = "024a0954-1852-4056-b1b0-c2e92995aafe"
_After:_
boundary = 024a0954-1852-4056-b1b0-c2e92995aafe
I have compared the source code of 2 versions 2.3.34 and 2.5.26
Url: core \ src \ main \ java \ org \ apache \ struts2 \ dispatcher \
Dispatcher.java
*2.3.34:* has not yet checked the content type pattern
*2.5.26:* has been checked with ULTIPART_FORM_DATA_REGEX
Thank you for your support. <3
> Response 404 when migration to Struts 2.5 in Xamarin
> ----------------------------------------------------
>
> Key: WW-5127
> URL: https://issues.apache.org/jira/browse/WW-5127
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.5.25, 2.5.26
> Environment: *Current version*
> org.apache.struts:struts2-core:2.5.26
> org.apache.struts:struts2-jfreechart-plugin:2.5.26
> org.apache.struts:struts2-json-plugin:2.5.26
> org.apache.struts:struts2-junit-plugin:2.5.26
> org.apache.struts:struts2-tiles-plugin:2.5.26
> *Previous version*
> org.apache.struts:struts2-core:2.3.34
> org.apache.struts:struts2-jfreechart-plugin:2.3.34
> org.apache.struts:struts2-json-plugin:2.3.34
> org.apache.struts:struts2-junit-plugin:2.3.34
> org.apache.struts:struts2-tiles-plugin:2.3.34
> Reporter: icecanh
> Priority: Major
>
> I am using Struts2 as 1 server API and Xamarin as a Client.
> I have the function of uploading files.
> I used HTTPClient.PostAsync to request the server.
> At version 2.3.34, it completes the upload and response 200.
> But after migration struts from 2.3.34 to 2.5.26, I get a 404 response when
> sending a request to the server API.
> I think the response 404 is because it cannot map to the action.
> Has there been a change in version 2.5.26 that affects the action mapping?
> This problem also occurs in version 2.5.25.
> Thank you for reading and if possible please help.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)