Closed paregorios closed 2 years ago
Steps to reproduce:
Desired behavior: Do collision avoidance on generated IDs for locations imported from OSM in the same way that Plone handles ID collisions on generated IDs created through the web: postfix a hyphen and a one-up integer numeral.
@paregorios The fix for this is now deployed to staging
@silviot this is working perfectly on staging. Marking "ready to deploy" to production.
This is working perfectly on production.
Reported by @rmhorne
OSM Import constructs the object ID (Plone "short name") for the location object by URL-cleaning the title string entered in the import dialog box (or the OSM node/way/relation title if the text box was left blank by the user initiating the import). If the resulting ID string matches the ID of another content item (name, location, connection) in the same place context, the import fails with the following error message:
This is not actually an OSM coordinate geometry parse error. It's a thoroughly plone error that is surfaced in the latter portion of the error message.
The following new behavior is desired: Do collision avoidance on generated IDs for locations imported from OSM in the same way that Plone handles ID collisions on generated IDs created through the web: postfix a hyphen and a one-up integer numeral.