Uploaded image for project: 'eXo-JCR'
  1. eXo-JCR
  2. EXOJCR-1376

Add UUID into the exception message content of ItemExistsException

    Details

      Description

      As a need from ECMS-1967, we want to output the UUID into log when the JCR's ItemExistsException is thrown.

      For example, in the case of ECMS-1967, I found that we can add the UUID into the exception message in the below code snippet of BaseXmlImporter class

         protected String validateUuidCollision(final String identifier) throws RepositoryException
         {
              ...........
                        case ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW :
                           // If an incoming referenceable node has the same UUID as a node
                           // already existing in the workspace then a SAXException is thrown
                           // by the ContentHandler during deserialization.
                           throw new ItemExistsException("An incoming referenceable node has the same "
                              + "UUID as a node already existing in the workspace!");
                 .......................
         }
      

      Original Issue: https://jira.exoplatform.org/browse/JCR-1641

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tolusha Anatolii Bazko
                Reporter:
                nfilotto Nicolas Filotto
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified