Fedora Repository Project
  1. Fedora Repository Project
  2. FCREPO-1041

ECM validate returns 404 and text if target object of relationship is missing

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Fedora 3.5
    • Fix Version/s: Fedora 3.6
    • Component/s: None
    • Labels:
      None
    • Roadmap Theme:
      Content Modeling, Validation/Integrity

      Description

      If the ONTOLOGY datastream specifies a mandatory relationship and specifies the type (CModel) of the target, and the target object is missing, the validate method returns a 404 and text specifying the missing object.

      It would be better if this could be reported as part of the XML message.

        Activity

        Hide
        Asger Askov Blekinge added a comment -
        Feels like /home/abr/Projects/git/fcrepo/fcrepo-server/src/main/java/org/fcrepo/server/validation/ecm/OwlValidator.java:237
        Show
        Asger Askov Blekinge added a comment - Feels like /home/abr/Projects/git/fcrepo/fcrepo-server/src/main/java/org/fcrepo/server/validation/ecm/OwlValidator.java:237
        Hide
        Stephen Bayliss added a comment -
        Asger's fix verified and committed. Proper validation error message now returned, which distinguishes between non-existent target and target without the correct type.
        Show
        Stephen Bayliss added a comment - Asger's fix verified and committed. Proper validation error message now returned, which distinguishes between non-existent target and target without the correct type.

          People

          • Assignee:
            Asger Askov Blekinge
            Reporter:
            Stephen Bayliss
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: