Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-3395

HstSiteConfigServlet check repository running fails if config property check.repositories.running = true

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Labels:
    • Similar issues:

      Description

      The problem is this code:

      String repositoryParamPrefix = propName.substring(0, propName.length() - REPOSITORY_ADDRESS_PARAM_SUFFIX.length());
      String repositoryUsername = this.configuration.getString(repositoryParamPrefix + ".repository.user.name");
      String repositoryPassword = this.configuration.getString(repositoryParamPrefix + ".repository.password");

      This does not take the jvm credentials which are typically used into account.

      Perhaps we could instead of trying to login a session also just check for some HippoServiceRegistry service that is available (and gets bootstrapped by the repository)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aschrijvers Ard Schrijvers
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: