Skip to content

IRI fields break if value has trailing slash #233

@dennisvang

Description

@dennisvang

Problem

IRI fields with trailing slash are rendered empty in the UI and in the RDF preview, but they do end up correctly in the triple store.

How to reproduce

  1. run compose/fdp/ephemeral/v1
  2. visit http://localhost in the browser
  3. log in as default admin
  4. click "Edit"
  5. click "View RDF"
  6. fill out an empty IRI form field, e.g. Rights, with value http://example.com
  7. observe the expected result in the RDF preview:
     dct:rights <http://example.com>;
  8. now add a trailing slash, as in http://example.com/
  9. observe the error in the RDF preview:
     dct:rights ex:;
  10. click "Save"
  11. observe that the resulting value does pass validation (there are no validation errors), but the field shows up empty in the UI:
Image
  1. click the "ttl" button to view the actual RDF
  2. observe that the field value does show up properly in the final RDF obtained from the triple store:
  dcterms:rights <http://example.com/>;
  1. (also note the discrepancy in prefixes: dct: in preview, dcterms: in final result)

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