> What specific OS are you using? 

CentOS 7.

I can only infer that the problem is with the quoted property names. Possibly 
if the values along were quoted that might still work, but everything I'm 
seeing suggests that when the code goes to look for property foo, it's not 
seeing 'foo'. The most direct example is that my property to set the keystore 
path for SSL is being ignored in favor of etc/keystore.p12, the underlying 
default.

>And how are you using the --dry-run?

Mechanically:

JETTY_CMD="$JAVA_HOME/bin/java -jar $JETTY_HOME/start.jar --dry-run 
jetty.home=$JETTY_HOME jetty.base=$JETTY_BASE"

JETTY_START=$($JETTY_CMD | sed -e 's/\\$//' | tr -d '\n' | tr -d \')

Then I execute $JETTY_START as root and let it downlevel via setuid.

The root of the issue (pun intended) is setuid, so at the time I set all this 
up years ago, my working solution was to build up a Jetty --dry-run command, 
run it, capture the command string, and then execute it. Nothing else seemed to 
work, but between init.d and now systemd, it's not my greatest skill set.

But in terms of what I'm seeing...the issue is that the output of dry-run is 
single-quoting all the properties on the command line it builds and that's not 
working, it's acting like it doesn't see any of them and falls back to internal 
default properties in the distributed XML files.

When I added " | tr -d \'" to the end of my sanitizing step, the command line 
works again and more or less matches the pre-15 output.

Something similar happened when an old 9.x release changed --dry-run to start 
outputting multi-line output. I had to undo that with a sed/tr combo to revert 
it back to what worked before.

> The new Issue at https://github.com/eclipse/jetty.project/issues/9663 could be
> a place to coordinate this.

If it would help to have me post there a snippet of my --dry-run output from 
before and after, I can.

I'm not sure how this could be working for anybody given what I'm seeing. The 
quotes seem to totally mask the properties to the point that they're just not 
seen.

Thx,
-- Scott


_______________________________________________
jetty-users mailing list
jetty-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to