[MAGNOLIA-1974] NPE when realPath can't be obtained. Created: 20/Dec/07 Updated: 23/Jan/13 Resolved: 20/Dec/07 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | 3.5.2 |
| Fix Version/s: | 3.5.3 |
| Type: | Improvement | Priority: | Major |
| Reporter: | Jan Haderka | Assignee: | Jan Haderka |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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)
|
| Description |
|
Currently when servletContext.getRealPath() returns null, NPE is thrown by magnolia at later stage. According to the Servlet spec 2.4 method is allowed to return null when real path can't be obtained, therefore magnolia should fail gracefully explaining the error rather then with NPE. |
| Comments |
| Comment by Jan Haderka [ 20/Dec/07 ] |
|
For example when application is deployed in a war file and application server is unable to determine the real path or if real path display is restricted by the server security setting. Occurs on weblogic. |