Skip to content

jsonld.ValidationError error during cp command #45

Description

@spelkey-ucd

Receiving the following error when running cp command:

JsonLdError [jsonld.ValidationError]: Safe mode validation error.
    at safeEventHandler (/Users/spelkey/Documents/projects/caskfs/caskfs/node_modules/jsonld/lib/events.js:135:11)
    at _handle (/Users/spelkey/Documents/projects/caskfs/caskfs/node_modules/jsonld/lib/events.js:82:7)
    at api.handleEvent (/Users/spelkey/Documents/projects/caskfs/caskfs/node_modules/jsonld/lib/events.js:71:3)
    at /Users/spelkey/Documents/projects/caskfs/caskfs/node_modules/jsonld/lib/expand.js:596:17
    at Array.map (<anonymous>)
    at _expandObject (/Users/spelkey/Documents/projects/caskfs/caskfs/node_modules/jsonld/lib/expand.js:560:25)
    at api.expand (/Users/spelkey/Documents/projects/caskfs/caskfs/node_modules/jsonld/lib/expand.js:251:9)
    at api.expand (/Users/spelkey/Documents/projects/caskfs/caskfs/node_modules/jsonld/lib/expand.js:125:25)
    at _expandObject (/Users/spelkey/Documents/projects/caskfs/caskfs/node_modules/jsonld/lib/expand.js:926:35)
    at api.expand (/Users/spelkey/Documents/projects/caskfs/caskfs/node_modules/jsonld/lib/expand.js:251:9) {
  details: {
    event: {
      type: [Array],
      code: 'relative @id reference',
      level: 'warning',
      message: 'Relative @id reference found.',
      details: [Object]
    }
  }
}

This only occurs if there is a space in the name of an ancestor directory e.g:

my-files
-- foo bar
    -- foo.jsonld

cp my-files / will throw an error
cp my-files/foo\ bar / works fine

Activity

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

Metadata

Metadata

Assignees

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