Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2524

When project does not have a hst-config property 'repository.pool.user.name.separator', the BeanUtils#getCredentialsDomainSeparator returns null

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • None
    • 2.26.02
    • None
    • None

    Description

      In HSTTWO-2480 I have added:

      private static String getCredentialsDomainSeparator()

      { return HstServices.getComponentManager().getContainerConfiguration().getString("repository.pool.user.name.separator"); }

      However, this returns null if 'repository.pool.user.name.separator' is not explicitly defined in hst-config.properties.

      I thought it would be picked up from the SpringComponentManager.properties if missing in hst-config.properties, but this is not the case (I've been bitten by this before, I think it is a bit confusing)

      Either way, I will now hardcode the default \uFFFF value in getCredentialsDomainSeparator) in case it is null as the SpringComponentManager.properties has value \uFFFF as default

      Ps It works in the testsuite because the testsuite has an explicit repository.pool.user.name.separator property

      Attachments

        Activity

          People

            svoortman Simon Voortman (Inactive)
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: