Project

General

Profile

Feature #6414

Reject an insert or update/upload if the docid has white spaces in metacat api

Added by Jing Tao over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
02/10/2014
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

I have a task to handle white spaces in the pids in the dataone production environment:
https://redmine.dataone.org/issues/3492

I checked the code in the create and update method in the member node API of DataONE and found that the document will be rejected if its pid has white spaces.

So I believe those came from the Metacat API. I would like to add the enforcement that Metacat will reject a document if its docid contains white spaces in the inser/upload and update.

If you have any concern, please let me know.

History

#1 Updated by Jing Tao over 5 years ago

  • Assignee set to Jing Tao
  • Status changed from New to Closed

We added the code in the handleUpload, handleInsertOrUpdate and handleMultiPartInsertAction methods to enforce there is no white spaces in the docid.

Also available in: Atom PDF