Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4068

Activation keypair file is generated in "current" directory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.5.2
    • 4.5.1
    • activation, core
    • None

    Description

      If you start Tomcat from the bin/ directory, the result is that you'll have <tomcat-home>/bin/WEB-INF/config/default/keypair.properties. Fun story, if the next time around, you start the same instance from a different location, the key won't be found.

      Two issues, probably:

      • the default value for magnolia.author.key.location is a relative path (WEB-INF/config/default/keypair.properties. Prefixing it with ${magnolia.home} would be a quick and simple solution.
      • the value is used with new File(..path..); use one of the many methods we have lying around to make sure we use an absolute path, or that a relative path is relative to the webapp's root and not the current directory.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                fgrilli Federico Grilli
                gjoseph Magnolia International
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD