Page MenuHomePhabricator

Valid geojson is being rejected by sanitizer
Closed, ResolvedPublic

Description

This produces an error, but it works well at http://geojson.io (this is a line near Gabon)

<mapframe width=600 height=600>
{
  "type": "Feature",
  "id": "Q1000",
  "properties": {},
  "geometry": {
    "type": "GeometryCollection",
    "geometries": [
      {
        "type": "LineString",
        "coordinates": [          
          [
            -20.78146426141457,
            -20.24797277602244
          ],
          [
            20.80974825712424,
            30.094641604394508
          ]
        ]
      }
    ]
  }
}
</mapframe>

Details

Related Gerrit Patches:
mediawiki/extensions/Kartographer : wmf/1.28.0-wmf.18GeometryCollection is a subset of Geometry
mediawiki/extensions/Kartographer : wmf/1.28.0-wmf.20GeometryCollection is a subset of Geometry
mediawiki/extensions/Kartographer : wmf/1.28.0-wmf.19GeometryCollection is a subset of Geometry
mediawiki/extensions/Kartographer : masterGeometryCollection is a subset of Geometry

Event Timeline

Yurik created this task.Sep 20 2016, 3:38 PM
Restricted Application added a project: Discovery. · View Herald TranscriptSep 20 2016, 3:38 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Yurik updated the task description. (Show Details)Sep 20 2016, 4:13 PM
Yurik updated the task description. (Show Details)
Yurik added a comment.Sep 20 2016, 5:57 PM

Added a test patch (not passing)

MaxSem claimed this task.Sep 20 2016, 5:58 PM

Change 311735 had a related patch set uploaded (by Yurik):
Added a GeometryCollection schema test

https://gerrit.wikimedia.org/r/311735

Change 311735 merged by jenkins-bot:
GeometryCollection is a subset of Geometry

https://gerrit.wikimedia.org/r/311735

Change 311974 had a related patch set uploaded (by Yurik):
GeometryCollection is a subset of Geometry

https://gerrit.wikimedia.org/r/311974

Change 311975 had a related patch set uploaded (by Yurik):
GeometryCollection is a subset of Geometry

https://gerrit.wikimedia.org/r/311975

Change 311980 had a related patch set uploaded (by Yurik):
GeometryCollection is a subset of Geometry

https://gerrit.wikimedia.org/r/311980

Change 311975 merged by jenkins-bot:
GeometryCollection is a subset of Geometry

https://gerrit.wikimedia.org/r/311975

Change 311974 merged by jenkins-bot:
GeometryCollection is a subset of Geometry

https://gerrit.wikimedia.org/r/311974

Change 311980 merged by jenkins-bot:
GeometryCollection is a subset of Geometry

https://gerrit.wikimedia.org/r/311980

Yurik closed this task as Resolved.Sep 21 2016, 1:46 PM