Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Debugging a dry-run issue
  • From: "Cantor, Scott" <cantor.2@xxxxxxx>
  • Date: Wed, 19 Apr 2023 18:47:37 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; 1; spf=pass; dmarc=pass action=none; dkim=pass; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0E7xc2vcIMXntY4APaaEG46/SIHLKZWx5L5/EIoUKiw=; b=i+hPHAu2gb9clFPFeJk+Dzp2sz/pDBIvAP6yTZGa6AOQYKppoBYVR4nGEC18eukad08IZlTCZdoGg9qywAzJexC09pVUBgpvOkkIwSDEc9FlGYPXujHthCJGmvq+nbkHjZGqhnwPlGMI+Ouflb6tHiiHi3x5xqUp8qxep1oiUO8ofA6j1Klt6K4Hy6nYiiXTj1oxtKjk8c+RdweKuexDEuyB8RpZQeO/I56KMpeRx/AzQBmAVvn/nxD1TUw+axxGqCM9pvN3ywe2X2rgAa1lZeLWKU8B8/0llexLiRE4Mnchcq7HJ8PPaw57RNtAsVUys1bIGCtqP5OLC4m0jZejKw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=aP0zJF2LM64F31wbHco8LNOYKQ1zgU8bSXO+1QPYECx+f2+hncFRbl+NUX0alFx/7VQrQ+fKm3nAOvGwuHTHafaL44cXAh6LPB/AYXbBXrNieJ9ybiL5vQ0/OoP/1pbo2UVTdGtRDmDhi1SCUVqWYrhZ9ggo6vOv90OqLqHb/0Nz9iuKyFqxe8JXiiuLaFpPIeDuafJeovXleqHY/MJVLM7Y9mxfkU8bLyptFb0n9m7uVN3OyNZ0R20hlNx9NaTjuiLjdo8tTypyHqLJdiEfLujPep+YqJjDn8WFYlkXIVuZceUBqGiQZ7js2fZ3aL3Ph/9/D2FVa5MhxOx8grM6hA==
  • Delivered-to: jetty-users@xxxxxxxxxxx
  • List-archive: <>
  • List-help: <>
  • List-subscribe: <>, <>
  • List-unsubscribe: <>, <>
  • Thread-index: AQHZcuVV8sDxFlFiXUiuB3r26Eg7968y7XiA///IgYA=
  • Thread-topic: [jetty-users] Debugging a dry-run issue
  • User-agent: Microsoft-MacOutlook/16.72.23041401

> 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?


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 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.

-- Scott

Back to the top