Opened 10 years ago

Closed 6 years ago

#2023 closed defect (fixed)

Uploading a relation that has itself as a member causes SystemStackError

Reported by: Ldp Owned by: zerebubuth@…
Priority: major Milestone:
Component: api Version:
Keywords: Cc:

Description

I inadvertently added a relation as a member of itself (in JOSM), and tried to upload the change.

<relation id='34250' action='modify' timestamp='2009-04-27T23:33:15Z' visible='true' version='6'>

<member type='relation' ref='34250' role= /> [unneccesary other members removed] <tag k='route' v='bicycle' /> <tag k='type' v='route' /> <tag k='network' v='rcn' /> <tag k='note' v='67-68' />

</relation>

This comes back as a 500 from the API:

org.openstreetmap.josm.io.OsmTransferException?: org.openstreetmap.josm.io.OsmApi? Exception: ResponseCode?=500, Error Header=<SystemStackError: stack level too deep>,Error Body=<SystemStackError?: stack level too deep

Change History (1)

comment:1 Changed 6 years ago by iandees

Resolution: fixed
Status: newclosed

There are self-referential relations in the database now.

Note: See TracTickets for help on using tickets.