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

HTTP COPY returning 404 #63

Open
csarven opened this issue Jan 3, 2016 · 1 comment
Open

HTTP COPY returning 404 #63

csarven opened this issue Jan 3, 2016 · 1 comment

Comments

@csarven
Copy link
Member

csarven commented Jan 3, 2016

I can't seem to get the HTTP COPY working. It appears to be supported in the source. I've tried:

curl -i -X COPY -H"Destination: https://example.net/bar" https://example.org/foo

as well as:

var http = new XMLHttpRequest();
http.open('COPY', 'https://example.org/foo');
http.setRequestHeader('Destination', 'https://example.net/bar');
http.withCredentials = true;
http.onreadystatechange = function() {
  if (this.readyState == this.DONE) {
    console.log(this.getAllResponseHeaders());
  }
};
http.send();

In both cases, I get a 404. Example response from curl:

HTTP/1.1 404 Not Found
Accept-Patch: application/json, application/sparql-update
Accept-Post: text/turtle, application/json
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: User, Location, Link, Vary, Last-Modified, WWW-Authenticate, Content-Length, Accept-Patch, Accept-Post, Allow, Updates-Via, Ms-Author-Via
Access-Control-Max-Age: 1728000
Allow: OPTIONS, HEAD, GET, PATCH, POST, PUT, MKCOL, DELETE, COPY, MOVE, LOCK, UNLOCK
Link: <https://example.org/foo,acl>; rel="acl", <https://example.org/foo,meta>; rel="meta"
Ms-Author-Via: DAV, SPARQL
Updates-Via: wss://example.org/
User: 
Date: Sun, 03 Jan 2016 00:07:24 GMT
Content-Length: 9
Content-Type: text/plain; charset=utf-8

Not Found

The User header has my WebID in the XHR case if I'm authenticated.

https://example.org/foo sure does exist. I've even explicitly set https://example.org/foo,acl (for public r-w-a), still no go.

@deiu
Copy link
Contributor

deiu commented Jan 4, 2016

WebDAV methods are not fully supported. There was some initial work done to support it but it was never official. We might support them in the future though.

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