Skip to content
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

ObjectStore: metadata not found due to case-sensitive comparison #749

Open
paulvink opened this issue Aug 6, 2020 · 0 comments
Open

ObjectStore: metadata not found due to case-sensitive comparison #749

paulvink opened this issue Aug 6, 2020 · 0 comments

Comments

@paulvink
Copy link

paulvink commented Aug 6, 2020

Some hosts convert object metadata keys (and even the entire corresponding HTTP header) to all-lowercase. This is irritating, but since both HTTP headers and Object Store metadata keys are case insensitive, it is not illegal.

MetadataTrait.php uses strpos to test if a header starts with METADATA_PREFIX (e.g. 'X-Object-Meta-') and therefore fails if the capitalization isn't exactly the same, making it seem that the metadata item isn't present.

Using stripos instead of strpos fixes this.

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

No branches or pull requests

1 participant