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

Error page does not include sendError(status, message) message if custom reason phrase is disabled. #1825

Open
arinban opened this issue Mar 4, 2016 · 3 comments

Comments

@arinban
Copy link

arinban commented Mar 4, 2016

GlassFish makes the custom reason phrase disabled if the following jvm option is set to GlassFish.

-Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=false

According to Java Doc of HttpServletResponse, error page generated by sendError API contains the message.

In grizzly implementation, allowCustomReasonPhrase flag in HttpResponsePacket influences both the reason phrase(ex. HTTP/1.1 404 REASON) and the error page generated by the web container.
Therefore, the error page does not include the message if the jvm option is set.

On the other hand, in grizzly 1.9.X and GlassFish 3.1.2.2, allowCustomReasonPhrase works only to the reason phrase.
So the error page include the message even if the jvm option is configured.

Is the behavior of latest grizzly right?

Affected Versions

[2.3.15]

@arinban
Copy link
Author

arinban commented Mar 4, 2016

@glassfishrobot Commented
Reported by yama0428

@arinban
Copy link
Author

arinban commented Apr 26, 2017

@glassfishrobot Commented
This issue was imported from java.net JIRA GRIZZLY-1825

@arinban
Copy link
Author

arinban commented Feb 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant