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

Changing Service URL from Ant-style Pattern to Regular Expression does not update db entry to correct discriminator value

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.1
    • Fix Version/s: 4.0
    • Component/s: Authentication
    • Labels:
      None

      Description

      When updating a Service URL pattern in the Services Management web interface from Ant-style patterns to Regular Expressions (by using a starting ^), the expression_type variable for the updated RegisteredService is not changed from "ant" to "regex", which causes incorrect validation of the service URL pattern. Adding a new service using a regular expression value for the Service URL has the correct expression_type value.

      From the code comments in RegisteredServiceSimpleFormController class this seems to be known and done on purpose, but this behavior is not known to the end user who is making service URL changes and leads to confusion.

        Attachments

          Activity

            People

            • Assignee:
              mmoayyed Misagh Moayyed
              Reporter:
              adamc9 Adam Causey (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: