Opened 11 years ago

Closed 7 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:


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' />


This comes back as a 500 from the API: Exception: ResponseCode?=500, Error Header=<SystemStackError: stack level too deep>,Error Body=<SystemStackError?: stack level too deep

Change History (1)

comment:1 Changed 7 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.