Fix edge case with relative SMP URLs#19
Conversation
|
I don't understand the comment at all :) The URL should be used as defined right? https://smp.service.afasonline.com/smp is different from https://smp.service.afasonline.com/smp/. Oxalis used specifically as4 and not as4/ |
|
Yes, the URL should be used as defined, it's about how it's combined. So if DNS says do we need The current code tries to reach (c), which does not work. With this PR, it uses (b), because the / at the end helps Python's urljoin that this is supposed to be a path. Simple concatenation would yield (a), which I think is also wrong. |
|
I had introduced the urljoin() in #17 since I had seem some NAPTR records contain We could probably also go for: |
|
Thanks, I've applied the last one. Will do a release now. |
|
Thank you! |
This fixes an issue observed in the wild with the following NAPTR record:
which needs to be resolved to https://smp.service.afasonline.com/smp/iso6523-actorid-upis:: not https://smp.service.afasonline.com/iso6523-actorid-upis::
Unfortunately, the spec seems a little fuzzy on this.