Skip to content
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

.exists error on exists dir #289

Closed
loynoir opened this issue Jan 17, 2022 · 4 comments
Closed

.exists error on exists dir #289

loynoir opened this issue Jan 17, 2022 · 4 comments

Comments

@loynoir
Copy link

loynoir commented Jan 17, 2022

> await client.exists('/foobar//')
true
> await client.exists('/foobar/')
true
> await client.exists('/foobar')
400 Bad Request
@loynoir
Copy link
Author

loynoir commented Jan 17, 2022

Related

> await client.createDirectory('/a/b/c/d', { recursive: true })
400 Bad Request
> await client.createDirectory('/a/b/c/d/', { recursive: true })
400 Bad Request

@perry-mitchell
Copy link
Owner

await client.exists('/foobar')
400 Bad Request

https://github.com/perry-mitchell/webdav-client/blob/master/test/node/operations/exists.spec.js#L35-L39

await client.createDirectory('/a/b/c/d', { recursive: true })
400 Bad Request

https://github.com/perry-mitchell/webdav-client/blob/master/test/node/operations/createDirectory.spec.js#L57-L62

@loynoir Unfortunately if the tests are checking this exact thing, and they're passing, there's nothing I can do with this information. If you're interested in helping address your issue in this repo please consider adding a PR with failing tests.

@perry-mitchell
Copy link
Owner

Alternatively perhaps there could be some relation to #290, but who knows.

@loynoir
Copy link
Author

loynoir commented Jan 22, 2022

Tested on docker image bytemark/webdav, which is apache server with webdav config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants