You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Mkdir function in HTTPFileSystemsimply returnsENOSYS.
Implement this function using the MKCOL WebDAV verb.
Add unit test coverage in http_tests.cc for creating a directory.
Add coverage for the cases where a directory is created that already exists and for attempting to create a directory that is already a file. We'll need to lookup the WebDAV RFCs to determine the correct HTTP status codes to expect in these cases (it's not a given that XRootD returns the correct ones -- if needed, file an upstream bug).
The text was updated successfully, but these errors were encountered:
Each new HTTP request type is a subclass of the HTTPRequest class; the simplest implementation (which this is probably not far from!) is HTTPHead.
A good "checkpoint" would be to call the HTTPRequest directory from a new unit test and look to see (a) if it succeeds with the appropriate status code and (b) if the directory is created on disk.
That there aren't any good examples of but you would be doing a lower-level version of TestXfer; if nothing else, that test shows how to do a simple GTest if you're not familiar with GTest.
Once there's a HTTP request that can be created, you then want to implement the translation between the XRootD API and the HTTP request object. The method declaration is in HTTPFileSystem.hh and the implementation in HTTPFileSystem.cc. There's not a great example to mimic here because the current Stat actually just opens a file and stats that (probably something worth fixing -- that seems to assume everything is a file!). The HTTPFile::Fstat implementation may be useful.
Currently, the
Mkdir
function inHTTPFileSystem
simply returnsENOSYS
.MKCOL
WebDAV verb.The text was updated successfully, but these errors were encountered: