Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16-beta
    • Component/s: unsupported, ysld
    • Labels:
      None

      Description

      The YSLDValidator for the ysld module does not run on aliases (i.e. variables). This can lead to a situation where it uses a 'value' validator when parsing a 'property' tag, causing erroneous parse errors.
      For example, given the following YSLD:

      define: &color '#ff9900'
      title: dark orange polygon
      symbolizers:
      - polygon:
          stroke-width: 0.5
          fill-color: *color
          stroke-color: '#000000'
      

      The validator reads the fill-color property, and gets a ColorValidator for validating the value. However, since the value is an alias, the validator skips it and uses the ColorValidator on the stroke-color property instead, leading to the error:

      null; Invalid color, must be one of: '#RRGGBB', rgb(r,g,b), or expression; in 'reader', line 7, column 5: stroke-color: '#000000' ^
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                tbarsballe Torben Barsballe
                Reporter:
                tbarsballe Torben Barsballe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: