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

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.

Environment

None

Status

Assignee

Misagh Moayyed

Reporter

Adam Causey

Labels

None

Estimated End Date

None

Audience

None

Components

Fix versions

Affects versions

3.5.1

Priority

Major