Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24924

Do not hardcode the repository name in DocumentModelResolver class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 9.10-HF07, 10.2
    • Component/s: Core

      Description

      This class define a constant for the default repository name

          private static final String DEFAULT_REPO_NAME = "default";
      

      which can throw exception if the default repository name is different, which is the case in the unit tests for example.

      When the repository name is not provided, we should rely on

                      RepositoryManager repositoryManager = Framework.getService(RepositoryManager.class);
                      repositoryName = repositoryManager.getDefaultRepositoryName();
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h