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
Issue #6329 Fix xml config problems #6348
Conversation
Signed-off-by: Jan Bartel <janb@webtide.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default for Server.stopAtShutdown should remain false (for embedded users).
jetty-server/src/main/java/org/eclipse/jetty/server/Server.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jan Bartel <janb@webtide.com>
.../jetty-gcloud-session-manager/src/main/config-template/etc/sessions/gcloud/session-store.xml
Outdated
Show resolved
Hide resolved
.../jetty-gcloud-session-manager/src/main/config-template/etc/sessions/gcloud/session-store.xml
Outdated
Show resolved
Hide resolved
...-unixsocket/jetty-unixsocket-server/src/main/config-template/etc/jetty-unixsocket-http2c.xml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every change in XML config files requires likely a change in the [ini-template]
section of the correspondent *.mod
file.
@sbordet the changes I have made do not require any changes in the corresponding In many cases, the commented out value in the |
@janbartel I'll defer my re-review until @sbordet comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still changes for embedded mode users.
...d-session-manager/src/main/java/org/eclipse/jetty/gcloud/session/GCloudSessionDataStore.java
Show resolved
Hide resolved
...on-manager/src/main/java/org/eclipse/jetty/gcloud/session/GCloudSessionDataStoreFactory.java
Show resolved
Hide resolved
...y-server/src/main/java/org/eclipse/jetty/server/session/AbstractSessionDataStoreFactory.java
Show resolved
Hide resolved
...-unixsocket/jetty-unixsocket-server/src/main/config-template/etc/jetty-unixsocket-http2c.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Jan Bartel <janb@webtide.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be a lot of breaking changes in XML files that seem to be out of scope for this PR, if the scope was initially to fix stopOnShutdown
behavior.
Also, feels like many/most properties should be property
attributes so that embedded and standalone have the same configuration.
However, some property
attribute was changed to Property
element and viceversa, but could not find a clear logic for that?
.../jetty-gcloud-session-manager/src/main/config-template/etc/sessions/gcloud/session-store.xml
Outdated
Show resolved
Hide resolved
@@ -10,7 +10,7 @@ | |||
<Arg> | |||
<New id="ThreadLimitHandler" class="org.eclipse.jetty.server.handler.ThreadLimitHandler"> | |||
<Arg name="forwardedHeader"><Property name="jetty.threadlimit.forwardedHeader"/></Arg> | |||
<Set name="enabled" property="jetty.threadlimit.enabled"/> | |||
<Set name="enabled"><Property name="jetty.threadlimit.enabled" default="true"/></Set> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was not enabled before, why was changed to enabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because if its not enabled it's not doing anything, and the value previously was true
, so I've reinstated it. The value in the class is false
. Again, see commit 343cf73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, breaks the behavior of all Jetty 10 releases.
If it's a wrong value, let's open a new issue rather than doing it here where it gets lost in other changes.
@@ -66,7 +66,7 @@ | |||
<Set name="requestHeaderSize" property="jetty.httpConfig.requestHeaderSize"/> | |||
<Set name="responseHeaderSize" property="jetty.httpConfig.responseHeaderSize"/> | |||
<Set name="sendServerVersion" property="jetty.httpConfig.sendServerVersion"/> | |||
<Set name="sendDateHeader" property="jetty.httpConfig.sendDateHeader"/> | |||
<Set name="sendDateHeader"><Property name="jetty.httpConfig.sendDateHeader" default="false"/></Set> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another behavior change? Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Jan Bartel <janb@webtide.com>
I think it's a mistake to try to revert 343cf73. All releases of Jetty 10, since 10.0.0-alpha0 included, had the 343cf73 behavior. This PR is trying to revert that commit and instate many new behaviors, breaking who was relying on the behavior of basically all the Jetty 10 releases. @janbartel if you look at the issue that generated this PR (#6329), it was about I'm fine to change If there are wrong behaviors, let's review them in different issues so we can enumerate the behaviors that were changed one by one in the release notes, and at least users will know what behavior changed and why. |
@@ -10,7 +10,7 @@ | |||
<Arg> | |||
<New id="ThreadLimitHandler" class="org.eclipse.jetty.server.handler.ThreadLimitHandler"> | |||
<Arg name="forwardedHeader"><Property name="jetty.threadlimit.forwardedHeader"/></Arg> | |||
<Set name="enabled" property="jetty.threadlimit.enabled"/> | |||
<Set name="enabled"><Property name="jetty.threadlimit.enabled" default="true"/></Set> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, breaks the behavior of all Jetty 10 releases.
If it's a wrong value, let's open a new issue rather than doing it here where it gets lost in other changes.
@sbordet you can't both argue that this is an issue that can be punted from a release train AND that the behavior should be kept as the changed one because of previous releases. I think version 1 if this PR did just fix the missing attribute issue until @joakime pointed out the inadvertent behavior change. I see no reason to keep any accidental behavior changes |
Signed-off-by: Jan Bartel <janb@webtide.com>
Which means that all official releases of jetty-10 are in fact incorrect/broken.
The jetty-threadlimit.xml is also a blatant bug: if you enabled the threadlimit module, you would be forgiven for assuming it was actually limiting, but without this change it is not! The only nice-to-haves is the clean-up of the session modules default values, the rest you can easily argue are blatant bugs, or rotten
|
Closes #6392
The original problem that was reported in #6329 was the configuration for
Server.setStopAtShutdown
had been mistakenly changed from adefault
oftrue
tofalse
, prompting a full review of the changes from the relevant commit (343cf73). This PR puts back some other changes that look like mistakes, but can reviewers @sbordet @gregw and @joakime check carefully if these changes are indeed needed. I've simplified the session xml configs to put the defaults into code rather than xml where possible.