Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1957

gateway.sh doesn't handle KNOX_GATEWAY_DBG_OPTS env var correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: Server
    • Labels:
      None

      Description

      It seems KNOX-1816 caused a regression wrt the way options are handled in the scripts (e.g., gateway.sh).

      Specifically, if the KNOX_GATEWAY_DBG_OPTS env var is set, even though the value is included in the resulting command, the JVM does not listen on the configured port.

      The issue appears to be the double-quoting of $APP_JAVA_OPTS in knox-functions.sh, specifically in the appStart function (for this particular error).

      This shellcheck doc may be helpful in resolving this issue: https://github.com/koalaman/shellcheck/wiki/SC2086

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                smolnar Sandor Molnar
                Reporter:
                pzampino Philip Zampino
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h