[MAGNOLIA-5121] Log viewer cannot read files located in symlinked directory Created: 19/Jun/13 Updated: 20/Jun/13 Resolved: 20/Jun/13 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | admininterface |
| Affects Version/s: | 4.5.8, 4.5.9 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Tomas Brimor | Assignee: | Jan Haderka |
| Resolution: | Not an issue | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Red Hat Enterprise Linux Server release 6.3 (Santiago) |
||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| Description |
|
If the log directory configured for magnolia is a symlink the files will be listed but content cannot be shown. E.g.: magnolia log dir = /var/log/magnolia
lrwxrwxrwx 1 admin admin 20 Dec 5 2012 /var/log/magnolia -> /opt/logs/magnolia
|
| Comments |
| Comment by Jan Haderka [ 20/Jun/13 ] |
|
Hi Thomas, this is actually not an issue, but result of additional security check that was added in order to not allow users access any files in the filesystem apart from directories assigned in configuration (magnolia.properties). If your logs reside you the /var/log then this is where you should point Magnolia's log folder to. Alternatively you can also use hard links instead of soft links which if i'm not mistaken would appear to JVM as local files. Thanks for your understanding. |