-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing multiple Trees as array to nodes to WebDAV Server instance? #146
Comments
For the connected Client it should look something like this....
|
This is not a tested code flow, but it should be possible: https://github.com/mikedeboer/jsDAV/blob/master/lib/DAV/server.js#L115 This uses https://github.com/mikedeboer/jsDAV/blob/master/lib/DAV/simpleCollection.js and that should work like you describe in your second comment. If it doesn't work, please show me the terminal output and perhaps a screenshot of your client. I'm curious 😉 |
Ok. I will try in about an hour. But when I look at your provided link at line 119 a question came up: Does a tree (iTree) implements the iNode features? Probably this will throw an error. But I will check it out. THX https://github.com/mikedeboer/jsDAV/blob/master/lib/DAV/server.js#L119 |
And one more thing I am interested in asking you: how did you solve that node does not react to all http methods. When you make an console.log of Var http = require("http"); There are missing plenty of methods you defined in the cors.js. How did you resolve this? I don't understand it. 🤓 |
I didn't solve it, NodeJS is just not interested in following standards properly. |
Ah. Ok. Lol. During a discussion I had with a sails.js developer about exact that topic a pull request for the http parser was opened to implement in node http parser directly. |
But it could be resolved by creating a server based on "net" with a custom http parser instead of using "http" module. Net reacts to all requests |
@joeherold did you managed to find a solution for the multiple trees. |
I found a solution. I hope it helps someone else:
|
Is it possible to add an array of multiple tree objects to the node attribute?
Idea behind is a CMS business-logic, where in the backend an administrator may define multiple root folders out of a complete tree structure for separate users and groups what they have access to.
The text was updated successfully, but these errors were encountered: