Details
Description
In FSNameSystem#getFileInfo, it checks src file name two times.
if (!DFSUtil.isValidName(src)) { throw new InvalidPathException("Invalid file name: " + src); } HdfsFileStatus stat = null; FSPermissionChecker pc = getPermissionChecker(); checkOperation(OperationCategory.READ); if (!DFSUtil.isValidName(src)) { throw new InvalidPathException("Invalid file name: " + src); }
The latter should be removed.