Project

General

Profile

« Previous | Next » 

Revision 6643

Added by Chris Jones over 12 years ago

The ReplicationStatus parameter is 'status', not 'replicationStatus', in the architecture documentation.

View differences:

CNResourceHandler.java
1172 1172
        
1173 1173
        // get the replication status param
1174 1174
        try {
1175
            replicationStatus = multipartparams.get("replicationStatus").get(0);
1175
            replicationStatus = multipartparams.get("status").get(0);
1176 1176
            status = ReplicationStatus.convert(replicationStatus);
1177 1177
            
1178 1178
        } catch (NullPointerException npe) {
1179 1179

  
1180
            logMetacat.debug("The 'replicationStatus' parameter was not found in the " +
1180
            logMetacat.debug("The 'status' parameter was not found in the " +
1181 1181
            "multipartparams map.  Trying the params map.");
1182 1182
            
1183 1183
            try {
1184
                replicationStatus = params.get("replicationStatus")[0];
1184
                replicationStatus = params.get("status")[0];
1185 1185
                status = ReplicationStatus.convert(replicationStatus);
1186 1186
                
1187 1187
            } catch (Exception e) {
1188
                String msg = "The 'replicationStatus' must be provided as a parameter and was not.";
1188
                String msg = "The 'status' must be provided as a parameter and was not.";
1189 1189
                logMetacat.error(msg);
1190 1190
                throw new InvalidRequest("4730", msg);
1191 1191
                

Also available in: Unified diff