Project

General

Profile

Bug #7160

replicationPolicy missing numberReplicas and replicationAllowed attributes

Added by Matt Jones over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
11/22/2016
Due date:
% Done:

100%

Estimated time:
Bugzilla-Id:

Description

While technically optional, the ReplicationPolicy class in SystemMetadata is not useful without the replicationAllowed and numberReplicas attributes. We encountered a bug in the R client where the parser assumed those would be present (https://github.com/ropensci/datapack/issues/63). We fixed that client side, but it would also be useful to have Metacat generate ReplicationPolicy instances with these attributes set. This is handled in SystemMetadataFactory.getDefaultReplicationPolicy().

History

#1 Updated by Matt Jones over 3 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

Fixed by setting replicationAllowed=false and numberReplicas=0 if they aren't set explicitly.

Also available in: Atom PDF