Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade spring mvc app to 3.1.2 causes content-type to be returned as 'application/*+xml' [SPR-9841] #14474

Closed
spring-projects-issues opened this issue Sep 28, 2012 · 1 comment
Assignees
Labels
in: web type: bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Sep 28, 2012

Eric Vuillermet opened SPR-9841 and commented

I have a Spring mvc app that uses Spring 3.1.1. After upgrading to 3.1.2, this app now returns responses with content-type of 'application/*+xml', whereas previously it would return a content-type of 'application/xml' (nothing else changed).

In both cases, the request contains the same Accept header of 'application/xhtml+xml'.

Here is an example below:
$ curl -H 'Accept: application/xhtml+xml' -v http://localhost:9000/hello/world

  • About to connect() to localhost port 9000
  • Trying 127.0.0.1... connected
  • Connected to localhost (127.0.0.1) port 9000

GET /hello/world HTTP/1.1
User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: localhost:9000
Accept: application/xhtml+xml

< HTTP/1.1 200 OK
< Date: Fri, 28 Sep 2012 22:50:16 GMT
< Content-Type: application/*+xml
< Transfer-Encoding: chunked
< Server: Jetty(7.6.3.v20120416)

  • Connection #0 to host localhost left intact
  • Closing connection #0

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><hello/>
Attached is a zip file containing a sample app exposing this problem.


Affects: 3.1.2

Attachments:

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Oct 3, 2012

@spring-projects-issues spring-projects-issues added type: bug in: web labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.1.3 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web type: bug
Projects
None yet
Development

No branches or pull requests

2 participants