Skip to content

Trying to create an empty container with Slug .scad #894

@rimmartin

Description

@rimmartin

Hi,

cloned this project in the last hour and stood it up serving bin/solid-test for a local developer pod.
added a folder under public called scad. Then with the following code tried to make an empty container with Slug: '.scad'. No errors but when I look with browser at https://roger.localhost:8443/public/scad/ I see an empty container '7fed9310',

        solid.auth.fetch('https://roger.localhost:8443/public/scad/', {
           method: 'POST', 
           headers:{
            'Content-Type': 'text/turtle',
	    'Link': '<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"',
            'Slug':  '.scad'
	   }
           }).then((res) => {return res;})
        .then((response) => {callback(null);})
        .catch(error => callback('Error: '+JSON.stringify(error)));

when I curl for '7fed9310'

 curl -k --cert ../roger-g74s.cert --key ../roger-g74s.key -G https://roger.localhost:8443/public/scad/7fed9310
Can't find file requested: data/roger.localhost/public/scad/7fed9310

it's not there. Nor '.scad' either can be found.

Metadata

Metadata

Assignees

Labels

buggood first issueAn issue that should be quite easy for newcomers to fixpriority-lowto be used for lower priority issues and pull requests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions