You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Robert Lazarski (Jira)" <ji...@apache.org> on 2024/11/11 23:45:00 UTC
[jira] [Assigned] (AXIS2-5971) AxisServlet.processURLRequest use content-type header instead of accept
[ https://issues.apache.org/jira/browse/AXIS2-5971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Lazarski reassigned AXIS2-5971:
--------------------------------------
Assignee: Robert Lazarski
> AxisServlet.processURLRequest use content-type header instead of accept
> -----------------------------------------------------------------------
>
> Key: AXIS2-5971
> URL: https://issues.apache.org/jira/browse/AXIS2-5971
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.7.8
> Reporter: Marti Pamies Sola
> Assignee: Robert Lazarski
> Priority: Minor
>
> Class org.apache.axis2.transport.http.AxisServlet has the following code
> {code:java}
> // public void processURLRequest() throws IOException, ServletException {
> try {
> RESTUtil.processURLRequest(messageContext, response.getOutputStream(),
> request.getContentType());
> this.checkResponseWritten();
> } catch (AxisFault e) {
> setResponseState(messageContext, response);
> processFault(e);
> }
> closeStaxBuilder(messageContext); }
> {code}
> As fas as I understand, this code is involed when diong REST and recieving an URL request without body.
> The problem is that this method looks for request.getContentType() instead of request Accept Header to determine to messageFormater to use. This behaviour make content type mandatory for URL client request which has no sense, as it is a header to indicate server response content type.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org