Bug #7086
MN.updating an archived object doesn't get an invalid request exception
Start date:
2015-05-07
Due date:
% Done:
100%
Milestone:
None
Product Version:
*
Story Points:
Sprint:
Description
Our API document says:
The update operation MUST fail with Exceptions.InvalidRequest on objects that have the Types.SystemMetadata.archived property set to true.
I checked the code and i didn't find the enforcement on Metacat code.
History
#1 Updated by Jing Tao over 9 years ago
Added code to check the archive status in the mn.update method.
Sending src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
Transmitting file data .
Committed revision 9200.
Also added a junit test scenario and it passed.
#2 Updated by Jing Tao over 9 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Andrei tested on mn-demo-6, it worked for him. Close the bug.