Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.0
-
Reviewed
Description
When creating a file using WebHDFS, there are two main steps:
1. Obtain the location of the Datanode to be written.
2. Put the file to this location.
Currently NameNodeRpcServer verifies that pathName is valid, but NamenodeWebHdfsMethods and RouterWebHdfsMethods do not.
So if we use an invalid path(such as duplicated slash), the first step returns success, but the second step throws an InvalidPathException. IMO, we should also do the validation in WebHdfs, which is consistent with the NameNodeRpcServer.
The same webHDFS operations are: CREATE, APPEND, OPEN, GETFILECHECKSUM. So we can add DFSUtil.isValidName to redirectURI for NamenodeWebHdfsMethods and RouterWebHdfsMethods.
Attachments
Attachments
Issue Links
- links to