Skip to content

Putting an ACL file whose URI contains encoded spaces fails because server unencodes the spaces and crashes #1211

@timbl

Description

@timbl

Please describe what you did in reproducible steps

Edited am ACL file using the data bowser

How did it work with 4.x series servers?

There was no validity check

What happened when you tried the same with the 5.x series server?

Client log:

T http://localhost:3080/timbl/Public/Test/2018/Cascade%20test/ACL%20Pane%20tests/.acl 400 (Bad Request)

Server log:

  solid:ldp VALIDATE -- Error parsing data: Error: Error trying to parse <http://localhost:3080/Library/WebServer/Documents/timbl/Public/Test/2018/Cascade test/ACL Pane tests/.acl> as text/turtle:
  solid:ldp Error: Error: NamedNode IRI "http://localhost:3080/Library/WebServer/Documents/timbl/Public/Test/2018/Cascade test/ACL Pane tests/.acl" must not contain unencoded spaces.:
  solid:ldp Error: Error: NamedNode IRI "http://localhost:3080/Library/WebServer/Documents/timbl/Public/Test/2018/Cascade test/ACL Pane tests/.acl" must not contain unencoded spaces.
  solid:ldp     at new NamedNode (/devel/github.com/solid/node-solid-server/node_modules/rdflib/lib/named-node.js:48:13)
  solid:ldp     at IndexedFormula.sym (/devel/github.com/solid/node-solid-server/node_modules/rdflib/lib/formula.js:502:14)
  solid:ldp     at new __SinkParser (/devel/github.com/solid/node-solid-server/node_modules/rdflib/lib/n3parser.js:240:29)
  solid:ldp     at SinkParser (/devel/github.com/solid/node-solid-server/node_modules/rdflib/lib/n3parser.js:215:16)
  solid:ldp     at Object.parse (/devel/github.com/solid/node-solid-server/node_modules/rdflib/lib/parse.js:27:15)
  solid:ldp     at LDP.isValidRdf (/devel/github.com/solid/node-solid-server/lib/ldp.js:195:12)
  solid:ldp     at putAcl (/devel/github.com/solid/node-solid-server/lib/handlers/put.js:41:11)
  solid:ldp     at processTicksAndRejections (internal/process/next_tick.js:81:5) +0ms
  solid:server Error page because of: { [HTTPError: RDF file contains invalid syntax]
  name: 'HTTPError',
  message: 'RDF file contains invalid syntax',
  status: 400 } +1ms

Any material that will help, logs, error messages, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions