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

Lukasz Lenart edited comment on WW-5127 at 5/12/21, 8:13 AM:
-------------------------------------------------------------

In most cases {{boundary}} should start with {{--}} (two dashes) and consists 
of alphanumeric characters, I would avoid using {{UUID}} directly, remove "-" 
(dash) and this should be a safe solution for the future.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type#directives


was (Author: lukaszlenart):
In most cases {{boundary}} should start with {{--}} (two dashes) and consists 
of alphanumeric characters, I would avoid using {{UUID}} directly, remove {{ - 
}} (dash) and this should be a safe solution for the future.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type#directives

> 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)

Reply via email to