loris-imageserver / loris

Loris IIIF Image Server
Other
209 stars 87 forks source link

Update resolver.py #468

Closed dvhassel closed 5 years ago

dvhassel commented 5 years ago

fixes a bug to include auth_rules. If the "Max" parameter is not specified when using rsplit, the method will return the same as the split() method. When using filenames with multiple dots in them, eg "HP.2007.13.jp2", rsplit('.')[0] won't return the expected string. In this case, it will return "HP" instead of "HP.2007.13"

bcail commented 5 years ago

@dvhassel thanks! Would you be able to add a test showing the bug?

bcail commented 5 years ago

I've been in contact with @dvhassel. I'll merge this, and then add a test for it.