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
FileUpload: Decoding FileUpload requires contentType "multipart/form-data" #11806
Comments
It used to do this... if (!context.isProjectStage(ProjectStage.Production)) {
LOGGER.fine Now it does SEVERE and doesn't check the ProjectStage for some reason.
|
@stolp am I wrong that these are two different content types here is what PF showcase has in the browser when submitting:
Even on AJAX uploads it is |
short: we need a reproducer |
Please provide an executable example using the PrimeFaces Test project. This issue will be closed if no activities in 20 days. |
There is definitely something different on this single page where the error logging occurs. I have virtual identical code on other pages where it works without a hitch. I see, if I can isolate a difference for a reproducer. |
I added a reproducer. As debugged, a simple partial submit is enough to trigger this. My other pages hid the |
it works wirth partialSubmit=false? |
Same result with partialSubmit=false. |
are you sure that its during rendering? #decode is only called for posts anyway, i think the "problem" is that if you press your commandButton, the error is logged, which is actually right as you process the fileupload solutions:
i would stick for this now, which would give you a hint in dev stage (without return;) but it makes sense actually. You should just not process it.
|
PR submitted |
I stand corrected, this is indeed occurring during the execute phase. Got distracted by the class name. |
Please provide an executable example using the PrimeFaces Test project. This issue will be closed if no activities in 20 days. |
This is the stacktrace from the reproducer:
|
yeah, then we have to put the "return" back |
OK i will put the return back! |
Sorry for not testing this earlier. |
It will be in 14.0.1 |
Describe the bug
In FileUploadRenderer I see the following method:
On one of my pages, I get the above severe error message. I did set a breakpoint there and find that the request in question is indeed
content-type = application/x-www-form-urlencoded;
but it also isfaces-request = partial/ajax
.This is just during rendering of the p:fileUpload. The upload itself is working perfectly fine.
Is the logging condition correct as it is, or shouldn't it exclude partial ajax requests here?
Reproducer
Expected behavior
The message should not be logged for partial updates.
PrimeFaces edition
None
PrimeFaces version
14.0.0-RC3
Theme
No response
JSF implementation
MyFaces
JSF version
2.3
Java version
21
Browser(s)
No response
The text was updated successfully, but these errors were encountered: