Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-29048

nexus.vmoptions - if the last property has no LF it will be ignored

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.34.1
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:

      Description

      Problem
      If the last property in the nexus.vmoptions does not have LF/CRLF after it (i.e. another line) then it will not be read in by the application.

      Steps to reproduce
      The easiest way to show this is to move the line -Dkaraf.home=. in the nexus.vmoptions to the very bottom of the file and ensure there is no line created underneath it:
      1. edit the nexus.vmoptions
      2. move the line -Dkaraf.home=. to the very bottom of the file and ensure there is no additional line underneath, i.e. do not press ENTER after the line.
      3. attempt to start NxRM

      It will fail immediately as it has not been able to read in the base repo folder
      NOTE - you easily see which settings have been read in via the jvm.log

      Impact
      Came across this one today where a customer needed to add the line -Djdk.tls.ephemeralDHKeySize=2048 to their Ansible deployed NxRM and it wasn't being read in.
      Not a serious issue however, I wonder how many other customers have had non-essential settings ignored because of this.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              astrachan Alex Strachan
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title