Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16126

Binary patched class files added to the "classes" folder end up in /etc

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Our initial goal for creating the link /usr/lib/xwiki/WEB-INF/classes -> /etc/xwiki/classes was to be able to easily access the logback.xml logging configuration file from the same place where all the other XWiki config files are linked (i.e. /etc.xwiki/).

      However, in the current implementation, when we start adding patched java .class files to /usr/lib/xwiki/WEB-INF/classes, those files actually end up in /etc/xwiki/classes and having binary files inside the /etc/ folder is a bad practice on linux.

      We should try to avoid this by only linking the logback.xml files explicitly so we avoid the leaking of binary files into /etc, e.g.:
      /usr/lib/xwiki/WEB-INF/classes/logback.xml -> /etc/xwiki/logback.xml

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            enygma Eduard Moraru
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: