Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

inconsistencies between windows and linux versions of node running jsDAV #30

Open
drahgon55 opened this Issue Jan 14, 2012 · 0 comments

Comments

Projects
None yet
1 participant

The latest version of jsDAV returns different results when obtaining a list of all files in the mount directory. I have tested this using both an HTTP GET and using PROPFIND. Below is an example of the difference in jsDAV running on node for linux and node for windows(native node binary NOT cygwin)

Linux example:
webdav directory: "/media/internal"
files in /media/internal: file1, file2
GET result:
file1 < type> < size>
file2 < type> < size>

Windows example:
webdav directory: "/Document and Settiings/user/My Documents"
files in /Document and Settiings/user/My Documents: file1, file2
GET result:
/Document and Settiings/user/My Documents/file1 < type> < size>
/Document and Settiings/user/My Documents/file2 < type> < size>

when a link is clicked (say file1 link) in the windows versions the link directs to
"/Document and Settiings/user/My Documents\Document and Settiings\user\My Documents\file"

instead of : "/Document and Settiings/user/My Documents/file"

In the linux version the mount directory is referenced as "/" so really clicking the file1 link in windows to be consistent with the linux version should direct to "/file1 "

@mikedeboer mikedeboer added a commit that referenced this issue Dec 11, 2012

@mikedeboer mikedeboer Merge pull request #30 from ajaxorg/fix_bad_route
Fix bad routing for jsftp
86f5702
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment