nodeSolidServer / node-solid-server

Solid server on top of the file-system in NodeJS
https://solidproject.org/for-developers/pod-server
Other
1.78k stars 303 forks source link

slug ignored when creating container #610

Closed ghost closed 7 years ago

ghost commented 7 years ago

seem to be running into:

ldp.js: 485: getAvailablePath (host, containerURI, { slug = uuid.v1(), extension }) {

dmitrizagidulin commented 7 years ago

Thanks @tag42git.

Can you provide a bit more info - what are the headers in the request and the response?

ghost commented 7 years ago

input headers ...using auth.fetch(uri, options)

uri: https://localhost:8443/

Link:"http://www.w3.org/ns/ldp#BasicContainer; rel="type"" Slug:"newc" body:undefined content-type:"text/turtle" location:"newc" method:"POST"


output headers:

["vary", "Origin"] ["allow", "OPTIONS, HEAD, GET, PATCH, POST, PUT, DELETE"] ["content-type", "text/plain; charset=utf-8"] ["location", "/d302a610-a9f4-11e7-9814-252dab645994"] ["link", "<.acl>; rel="acl", <.meta>; rel="describedBy", <ht…p://www.w3.org/ns/ldp#BasicContainer>; rel="type""] ["content-length", "7"] ["etag", "W/"7-rM9AyJuqT6iOan/xHh+AW+7K/T8""]

dmitrizagidulin commented 7 years ago

Thanks. Hmm I wonder why it's ignoring the slug. Will investigate.

ghost commented 7 years ago

Thanks for looking into this. Here's an html file that reproduces it with my local solid-server@4.0.1

sluglet.html.gz

ghost commented 7 years ago

sorry closed by mistake...

melvincarvalho commented 7 years ago

@tag42git Did you mean to close this again?

ghost commented 7 years ago

@melvincarvalho Yes, sorry it was not a problem with nss but user error on my part. I was using solid-auth-client without solid-client and I was putting the slug and some other options in the options object without making a headers object within the options object. I got it working. I'm making a rudimentary warp-like client in polymer 2 and hope to eventually build a quizlet-like gizmo with it. Its an amateur effort. I really like nss and Solid and hope to use it a lot.

melvincarvalho commented 7 years ago

@tag42git awesome, cant wait to see it. If you add the solid-app tag to your repo, we can watch it evolve :)

ghost commented 7 years ago

@melvincarvalho Added tag solid-app