Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.17.0
-
None
-
None
-
Reviewed
Description
HADOOP-2178 introduced the feature of saving jobhistory logs on HDFS.
Unfortunately the following code:
// setup the history log file for this job String logFileName = jobUniqueString + "_" + user+ "_" + jobName; if (logFileName.length() > MAX_FILENAME_SIZE) { logFileName = logFileName.substring(0, MAX_FILENAME_SIZE-1); }
is vulnerable to user-provided job names.
Specifically I ran into 'URISyntaxException' with jobs whose names include a ":".
The easy fix is to ensure that we do not use the human-friendly job names and only the jobid.
The long term fix is to ensure that Path handles filenames with any characters.
Attachments
Attachments
Issue Links
- blocks
-
PIG-198 Integration with Hadoop 0.17
- Closed
- is related to
-
HADOOP-3257 Path should handle all characters
- Open
- relates to
-
HDFS-13 filenames with ':' colon throws java.lang.IllegalArgumentException
- Resolved