Uploaded image for project: 'GeoServer'
  1. GEOS-8050

GeoServerDataDirectory::parsedStyle's resourceLocator does not preserve URL #fragments

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.4, 2.11.1
    • Component/s: None
    • Labels:
      None

      Description

      GeoServerDataDirectory::parsedStyle's resourceLocator does not preserve URL #fragments (wikipedia) when locating a resource.

      Supporting URL fragments would be generally useful to designate subordinate resources, e.g., an individual icon inside a sprite sheet. This pattern has already been established for bulk WKT shapes (link), for which you can write:

       <OnlineResource xlink:type="simple" xlink:href="example.properties#zig" />
      

      The parsedStyle function's resourceLocator uses only the base of the resource URL to locate the resource, but then the resourceLocator attempts to recreate the original URL that for the resource, but only by re-adding the query parameters. It should more faithfully recreate that URL by also including #fragments.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mkruszewski Matt Kruszewski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Stride room