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

No feedback when oC location URL is malformed #12

Open
Apophenia opened this issue Aug 26, 2014 · 0 comments
Open

No feedback when oC location URL is malformed #12

Apophenia opened this issue Aug 26, 2014 · 0 comments

Comments

@Apophenia
Copy link
Owner

When a PUT request to a malformed URL fails, the browser does not log a response with a status code, and the asynchronous call never returns. For this reason, the promise returned by the WebDAV service's "put" method is neither resolved nor rejected, but hangs indefinitely.

If a user inputs an invalid oC location which "looks" like a correct URL, but refuses connections or returns a 404, the app has no means to provide feedback when the PUT requests fail (because the function calling it is not notified of this error). In this case, the result is simply an NS_ERROR_FILE_NOT_FOUND error. Before the app is ready for general use, it will be necessary to introduce something into the upload process that checks to make sure the remote location is receiving PUT requests.

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

No branches or pull requests

1 participant