Ticket #3136 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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
Component: - Version:
Severity: normal Keywords:
Cc:

Description

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).

Attachments

test.xml Download (198 bytes) - added by tmb 6 years ago.

Change History

Changed 6 years ago by tmb

Changed 6 years ago by tdb01r

  • milestone changed from EPrints 3.1 beta to EPrints 3.0.4

Changed 6 years ago by tdb01r

  • milestone changed from EPrints 3.0.4 to EPrints 3.0.3

Changed 6 years ago by tdb01r

  • owner set to tdb01r
  • status changed from new to assigned

Changed 6 years ago by tdb01r

  • status changed from assigned to closed
  • resolution set to fixed

Resolved in r3057.

Note: See TracTickets for help on using tickets.