Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-1837

Unbalanced brackets in path results in stacktrace

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Fedora 4.4.0
    • Fix Version/s: Fedora 4.5.1
    • Component/s: f4-core
    • Labels:
    • Roadmap Theme:
      Services: CRUD
    • Sprint:
      Sprint 2015 - 13

      Description

      If you try to retrieve a repository path with unbalanced brackets in the path (e.g., http://localhost:8080/rest/[foo), you will get an exception stacktrace: "java.lang.IllegalArgumentException: Missing end bracket in segment name" -- see https://github.com/fcrepo4/fcrepo4/issues/945

      If you put an existing path in brackets, it will work (e.g. http://localhost:8080/rest/foo can also be accessed at http://localhost:8080/rest/[foo]).

      Including brackets in the URL should not result in a stacktrace (it should be 400 or 404 instead). And we should probably also document or suppress the bracket handling.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                esc Esmé Cowles
                Reporter:
                justin Justin Coyne
                Reviewer:
                Benjamin Armintor
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: