Add meaningful toString/getIpAddress methods to org.springframework.security.web.util.matcher.IpAddressMatcher #16693
Labels
status: ideal-for-contribution
An issue that we actively are looking for someone to help us with
type: enhancement
A general enhancement
Expected Behavior
It should be possible to determine the address that IpAddressMatcher was instantiated with. Via a getter or via toString.
Current Behavior
The best/only thing that one can get is:
The class is final and cannot be overridden to supply these methods.
I guess this means that debugging would be a pain as well...
Looking at the code, it appears that the ipAddress parameter is not even retained after construction.
Context
I want to be able to read a list of matchers from an external config and then log the list once it has been created.
At the moment, I have to have use peek like this:
More cumbersome than I would like.
Less useful/informative than simply putting this after list creation:
The text was updated successfully, but these errors were encountered: