Ticket #3136 (closed defect: fixed)
Can create/import eprints with given eprintid even if enable_import_ids = 0
|Reported by:||tmb||Owned by:||tdb01r|
|Priority:||Intend to||Milestone:||EPrints 3.0.4|
Looking at DataObj::create_from_data.
If $data contains "eprintid", this will always be used for new eprint, regardless of enable_import_ids setting. The eprintid will be copied to $defaults (a new eprintid won't be assigned by get_defaults), then restored to back to $data which is used to make the new record.
I can reproduce this when creating new eprints using $dataset->create_object and also when importing from a test XML file (attached).