Skip to content

How can I generate WMS requests with lowercase parameters #325

Description

@Amither113

MapCache defaults to uppercase parameters in WMS requests, is there a configuration method to make the request parameters in lowercase?

Activity

  1. jratike80 commented on Nov 14, 2023

    @jratike80

    Please clarify what you mean with parameters. By the WMS standard:

    6.4 Request Parameter Rules
    6.4.1 Parameter Ordering and Case
    Parameter names shall not be case sensitive, but parameter values shall be case sensitive.
    In this document, parameter names are typically shown in uppercase for typographical
    clarity, not as a requirement.

    It means that by the standard only "WMS" should be accepted as a service name, but &SerVICe=WMS is OK. Most, but not all, WMS servers accept also "wms".

    Do you know some client that does not follow the standard? Or does MapCache change some parameter values into upper case?

  2. Amither113 commented on Nov 14, 2023

    @Amither113
    Author

    Yes, I have encountered WMS services that do not follow the standard, when I use &service=wms I can request successfully, but not when &SERVICE=WMS.

  3. jratike80 commented on Nov 14, 2023

    @jratike80

    The primary action would be to ask if they could make a fix on their side. It also fits with the robustness principle https://en.wikipedia.org/wiki/Robustness_principle.

  4. marisn commented on Dec 5, 2023

    @marisn
    Contributor

    There are infinitely many ways how a non-conformant server can behave and thus it is impossible to support non-conformant servers as infinitely many workarounds would have to be implemented. This is the reason why we do have standards and follow them.

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