Issue Details (XML | Word | Printable)

Key: HADOOP-505
Type: Task Task
Status: Closed Closed
Resolution: Invalid
Priority: Major Major
Assignee: Sameer Paranjpye
Reporter: Michel Tourn
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Patch for external project it.could.webdav

Created: 03/Sep/06 05:33 PM   Updated: 08/Jul/09 04:42 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works webdav-hadoop.1.patch 2006-09-03 05:34 PM Michel Tourn 14 kB

Resolution Date: 26/Jul/07 07:45 AM


 Description  « Hide
Context:
http://issues.apache.org/jira/browse/HADOOP-496
http://could.it/main/a-simple-approach-to-webdav.html

This patch applies to an external project that Hadoop would use as a library.
You can obtain the baseline code:
svn co --revision {"1 Sep 2006 00:00:00 GMT"} http://could.it/repo/webdav/head/
Then apply the attached patch.

Patch details below.
---------------------
Changes in the patch are:

Filehandle leaks prevented it from working on Windows. (in.close() in 3 places)
Filehandle leaks would eventually crash server on Linux.

Now it passes the litmus compliance tests, in both original and HDFS mode.
Mostly had to refine the HTTP status codes.

Decoupled COPY and MOVE
This allows an implementation of MOVE other than COPY-and-delete

There is no new "abstraction code" to support a distributed filesystem backend.
Only: one change to make a java.io.File reference work when it represents a
non-Windows path on Windows: (unixAbsolute = rootPath.startsWith("/"))

The factory code via servlet properties was extended to allow loading by name:
repositoryClass="it.could.webdav.DAVRepository"
repositoryClass="it.could.webdav.XMLRepository"
repositoryClass="org.apache.hadoop.dfs.webdav.HDFSRepository"

4 classes are subclassed for the alternative implementation:
A few private fields were made protected.
Some constructor logic moved to protected init() method-s so it can be overriden.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Pier Fumagalli added a comment - 03/Sep/06 11:22 PM
Patch applied onto HEAD revision at http://could.it/repo/webdav/head/

Will be availble in 0.5 at http://could.it/repo/webdav/tags/0.5/ once the new release is rolled!


Enis Soztutar added a comment - 26/Jul/07 07:45 AM
Marking this issue as invalid, since we will stick to Jackrabbit's webdav API's for webdav.