Skip to content

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

Description

@paulvink

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions