Disable SubjectLocality

Cantor, Scott cantor.2 at osu.edu
Thu Oct 20 15:04:21 UTC 2022

>    The tag  has no value,  but it is still present.

I don't believe that to be possible based on the code but bugs can't ever be ruled out of course. It certainly sounds like one, but I can't see any way that this code could produce that outcome:

        final String address = getAddressLookupStrategy().apply(profileRequestContext);
        if (address != null) {
            final SubjectLocality locality = localityBuilder.buildObject();
        } else {
            log.debug("{} Address not available, omitting SubjectLocality element", getLogPrefix());

My guess is your function is not returning null. If you don't see the debug message with logging adjusted, then there's really no doubt of it.

-- Scott

More information about the users mailing list