Uploaded image for project: 'CAS Server'
  1. CAS-964

InMemoryServiceRegistryDaoImpl incorrectly register services

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.9
    • Component/s: None
    • Labels:
      None

      Description

      If some services are defined in deployerConfigContext on bean serviceRegistryDao/registeredServices, to be injected, then further modification of services list in services management replaces an existing service.

      The problem is on InMemoryServiceRegistryDaoImpl save method, which numeric generator begins with 0.
      Maybe something like that in setRegisteredServices would do the trick : generator = new DefaultLongNumericGenerator(registeredServices.size());

      A better way would be to look for the greatest id in the registered services.

      I know this use of InMemoryServiceRegistryDaoImpl is somehow weird, but I prefer to have a list of default services, and temporary services added at runtime. Well, and a bit of laziness to do DB configuration for only 5 services...

        Attachments

          Activity

            People

            • Assignee:
              battags ScottS
              Reporter:
              o-daroux Olivier Olivier
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: