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

Incorrect xsd:anyURI check according to specification (simple file name issue) #2110

Open
hoijnet opened this issue Mar 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hoijnet
Copy link

hoijnet commented Mar 15, 2024

Describe the bug
The xsd:anyURI check is incorrect according to specification. It fails when adding a simple file name such as helloworld.xsd.

Also consult ietf.org/rfc/rfc3987.txt.

Instead, it should accept zero or more characters as per the IRI as specified in anyURI but with the extended character set of IRI.

To Reproduce
Steps to reproduce the behavior:

  1. Create a type with a property of "xsd:anyURI"
  2. Add instance document with property value "helloworld.xsd"
  3. See error message as in screenshot

Expected behavior
The expectation is that a bare filename without schema should be possible to use as anyURI value.

Screenshots

{
  "name": "Server request error",
  "message": "Schema check failure",
  "data": {
    "@type": "api:InsertDocumentErrorResponse",
    "api:error": {
      "@type": "api:SchemaCheckFailure",
      "api:witnesses": [
        {
          "terminusdb:///schema#BaseInformation": [
            {
              "terminusdb:///schema#SchemaLocation": {
                "@type": "could_not_interpret_as_type",
                "type": "http://www.w3.org/2001/XMLSchema#anyURI",
                "value": "helloWorld.xsd"
              }
            }
          ]
        }
      ]
    },
    "api:message": "Schema check failure",
    "api:status": "api:failure"
  }
}

Info (please complete the following information):

  • OS: DFRNT

Additional context
N/A

@hoijnet hoijnet added the bug Something isn't working label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant