Skip to content

Fix truncation on comparison in name attr maps #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2018

Conversation

simo5
Copy link
Contributor

@simo5 simo5 commented Apr 13, 2018

The check to match a mapped name to a named attribute inadvertently
considered only the length of one of the strings.
This would cause incorrect prefix matches.

Fixes #173

@spaetow
Copy link

spaetow commented Apr 15, 2018

Hi, apologies for the delay in testing. Yes, this does appear to fix the problem, thank you! 👍

@simo5
Copy link
Contributor Author

simo5 commented Apr 16, 2018

@frozencemetery PTAL

The check to match a mapped name to a named attribute inadvertently
considered only the length of one of the strings.
This would cause incorrect prefix matches.

Signed-off-by: Simo Sorce <simo@redhat.com>
@frozencemetery frozencemetery merged commit 0b746d2 into gssapi:master Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When using full stops in GssapiNameAttributes mapping, mapping does not work as expected
3 participants