Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-724

DocViewSaxFormatter: improve diagnostics when generating DocViewNode2 from JCR node

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.7.2
    • vlt
    • None

    Description

      See <https://github.com/apache/jackrabbit-filevault/blob/c0480b9f83ede8969d8bcaf03428a35f81d146c2/vault-core/src/main/java/org/apache/jackrabbit/vault/util/DocViewNode2.java#L91-L110>

      We have the unfortunate condition that an existing repository apparently contains invalid node names. The code above gets an IllegalNameException from nameresolver.getQName(), but that code doesn't have the full path to the node (well, it shouldn't exist in the first place...).

      It might be good to catch that exception and add information about the node's path and rethrow it, either where or in the calling code (AggregateImpl.walk()?).

      Attachments

        1. SameNameSiblingIT.java
          4 kB
          Julian Reschke

        Issue Links

          Activity

            People

              reschke Julian Reschke
              reschke Julian Reschke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: