Open glassfishrobot opened 9 years ago
I have configured MEDIA_TYPE_MAPPINGS for my Jersey apps. Unfortunately, this causes some trouble with a generic upload service in my app.
@PUT @Path("files/{filename}") @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) public Response uploadFile( @PathParam("filename") @NotNull @Size(max = 240) String filename, DataSource dataSource)
If someone uploads .../files/file.xml the extension is chopped of.
There should be some opt-out to this. Otherwise one has to disable this feature. This is what I did.
Here is the SO question for this.
[2.11]
Reported by michael-o
This issue was imported from java.net JIRA JERSEY-2780
I have configured MEDIA_TYPE_MAPPINGS for my Jersey apps. Unfortunately, this causes some trouble with a generic upload service in my app.
If someone uploads .../files/file.xml the extension is chopped of.
There should be some opt-out to this. Otherwise one has to disable this feature. This is what I did.
Here is the SO question for this.
Affected Versions
[2.11]