plone.restapi icon indicating copy to clipboard operation
plone.restapi copied to clipboard

Endpoint or parameter for setting the UID

Open zopyx opened this issue 7 years ago • 2 comments

If you are using plone.restapi for migrations then it is necessary to preserve the original UID (because they are used for references or links within rich text.

The best solution is likely to extract the uid from a POST request. However a security with Modify Portal Content permission should not be able to mess up the original UID. Instead setting the UID should require higher rights like Manage Portal.

zopyx avatar Feb 16 '18 08:02 zopyx

@zopyx +1. I think plone.restapi should set the UID on POST and PATCH requests for migrations (and check for the "Manage portal" permission. Shouldn't be hard to implement...

tisto avatar Aug 10 '18 08:08 tisto

FYI: Workaround if anybody is looking for it: https://community.plone.org/t/how-to-retain-uuid-when-migrating-content-type/6913

tisto avatar Aug 10 '18 08:08 tisto

is this still open?

michelececcacci avatar Dec 30 '22 20:12 michelececcacci

Fixed on #1173

ericof avatar Dec 30 '22 21:12 ericof