Activation keypair file is generated in "current" directory
-----------------------------------------------------------
Key: MAGNOLIA-4068
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-4068
Project: Magnolia
Issue Type: Bug
Security Level: Public
Components: activation, core
Affects Versions: 4.5.1
Reporter: Grégory Joseph
Assignee: Philipp Bärfuss
Priority: Critical
Fix For: 4.5.2
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*.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------