GeoServer
  1. GeoServer
  2. GEOS-3921

WMS capabilities LegendURL for alternate styles misses style name

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When the legend URL is auto-generated the GetLegendGraphics url misses the style name.
      This is fine and correct for the default style, as the "style" param in GetLegendGraphics is optional, but of course will lead to the wrong results for alternate styles

        Activity

        Hide
        Andrea Aime added a comment -

        Andreas, does the above answer your question?
        The normal GetLegendGraphics call without the style is in fact ok for the default style. But it's not for the alternate ones, as it results in producing the wrong legend (the one for the default style again)

        Show
        Andrea Aime added a comment - Andreas, does the above answer your question? The normal GetLegendGraphics call without the style is in fact ok for the default style. But it's not for the alternate ones, as it results in producing the wrong legend (the one for the default style again)
        Hide
        Andreas Hocevar added a comment -

        Thanks Andrea, this is exactly what I meant, and it answers my question.

        Show
        Andreas Hocevar added a comment - Thanks Andrea, this is exactly what I meant, and it answers my question.
        Hide
        Andrea Aime added a comment -

        Fixed on 2.0.x and trunk

        Show
        Andrea Aime added a comment - Fixed on 2.0.x and trunk
        Hide
        Andrea Aime added a comment -

        Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

        Show
        Andrea Aime added a comment - Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

          People

          • Assignee:
            Andrea Aime
            Reporter:
            Andrea Aime
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: