Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-1069

Trailing space in the file name configuration of log4j2 in joc.properties throws an error

    XMLWordPrintable

    Details

    • Type: Feature
    • Status: Released (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.13.7
    • Fix Version/s: 1.13.8
    • Component/s: None
    • Labels:
      None

      Description

      Current Situation:
      In the ./jetty_base/resources/joc/joc.properties file, when adding a trailing space to the file name of the log4j2 configuration, an error is raised in the log file, and users are unable to login to the JOC Cockpit.

      How to reproduce:

      • Edit theĀ ./jetty_base/resources/joc/joc.properties file and add a trailing space in the name of log4j2.xml configuration.
      • Restart the JOC Cockpit service.
      • Try to login to the JOC Cockpit.
      • Review the JOC Cockpit logs.
      • The below warning occurrs in a Windows environment:
        WARN:oejs.HttpChannel:qtp1020391880-18: /joc/api/security/login
        javax.servlet.ServletException: javax.servlet.ServletException: java.nio.file.InvalidPathException: Trailing char < > at index 10: log4j2.xml
      • The below warning occurred in Linux environment:
        2020-12-03T07:46:44,797 WARN qtp104739310-13 c.s.j.c.JocCockpitProperties - log4j.configuration=log4j2.xml is set but file (/home/ubuntu/sos-berlin.com/joc/jetty_base/resources/joc/log4j2.xml ) not found.

      DesiredĀ Behavior :
      When adding a trailing space to the name of the log4j2 configuration in the joc.properties file, no error should occur.

        Attachments

          Activity

            People

            • Assignee:
              oh Oliver Haufe
              Reporter:
              chanchal-khatri Chanchal Khatri
              Approver:
              Chanchal Khatri
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: