-
Notifications
You must be signed in to change notification settings - Fork 357
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
Jersey not comparing the right parameter annotation when multiple ones available #3632
Comments
@Sytten Commented |
@etay2000 Commented |
@jansupol Commented |
@etay2000 Commented |
@OndrejM Commented Please remember that supporting opensource for free is not easy. And in times like this when the source code is being migrated to the Eclipse foundation, any code change would be counterproductive and costly therefore we need to be patient. You may fork the code and ask the community to send a PR with a fix or even fix it yourself. If you ask me I'd get someone to look at this issue and possibly provide a fix. If you have a support contract I'm sure Oracle or any other company providing that support would provide a patched version of Jersey for you. |
@etay2000 Commented It seems to me that you are late to the party. Thanks for providing a link to the conversation thread that I STARTED, and you realize that was from December 4th right? Do you have any other links to specific information about Jersey maintenance being deferred until after the migration prior to me asking the question? My whole point was that me and other people are asking someone to look at the their issues and possibly provide a fix, through the official Issue Tracker. How many of those issues have been resolved recently or had their questions answered? I was attempting to fix my issue myself by asking questions to the issue tracker. If I could answer my own question I wouldn't have asked it in the first place. I would love to contribute, but that works both ways. My issue was minor, maybe not even a bug, and certainly not the point. Honestly I didn't ask you, but out of curiosity since you mentioned it, who would you get to look into and possibly provide a fix? Let me guess, you sell support contracts for Oracle? Thanks for the lecture on open source but you missed my point. If you had read further into the conversation thread of the link you posted, you would have seen that I am now fully aware of the groups priorities moving forward. Until the migration is completed, the answer to any question is pretty much "Be Patient!". |
|
Just ran into this, coming from https://stackoverflow.com/a/54287707/9568167. Oh my, it’s been awhile. |
This is an issue, still. The code mentioned in the description by now moved to Line 360 in 9d096a8
|
Hi!
I'm upgrading our services from Jersey 1.19 to Jersey 2.25.1 (using Dropwizard 1.11.1).
Some of our resources consume MULTIPART_FORM_DATA. At first, I followed the dropwizard documentation (http://dropwizard.readthedocs.io/en/latest/manual/forms.html) to register the MultipartFeature, but I was still getting errors:
After a lot of search I found out that if you have multiple annotations for your resource (for example a swagger annotation), on this line
parameter.getSourceAnnotation()
will return the right-most one:https://github.com/jersey/jersey/blob/master/media/multipart/src/main/java/org/glassfish/jersey/media/multipart/internal/FormDataParamValueParamProvider.java#L384
So if you have a resource like:
The validation will always fail since it compares with the annotation
ApiParam
instead ofFormDataParam
, but if you switch them, it works...I have not investigated more than that, but I wanted to let people know so they don't lose time until this is fixed.
Thanks!
The text was updated successfully, but these errors were encountered: