Title:
<cfdirectory action="list" recurse="yes" throws NullPointer upon encountering an inaccessible directory
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 05/21/2012
Components: File Management
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final / 282921
Priority/Frequency: Normal / Very few users will encounter
Locale/System: English / Win All
Vote Count: 1
Currently, cfdirectory throws a java.lang.NullPointerException when it encounters an inaccessible directory during a recursive list action.
Rather than throw that exception, it should skip the recursion attempt for those dirs.
Repro:
1) just create a child folder and remove all permissions from it
2) do <cfdirectory action="list" recurse="yes".. /> for the parent directory
3) see exception:
-----------
java.lang.NullPointerException said:The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
Null Pointers are another name for undefined values.
java.lang.NullPointerException
-----------
As mentioned by Michael Dawson, cfdirectory should return the directory, but should show some indicator that it was not accessible.
My suggestion: Maybe it could set an attribute like "I" for "I"naccessible.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3195198
Keywords:
FixTested
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
Attachments:
Comments: