Project

General

Profile

« Previous | Next » 

Revision 6677

Use status.toLowerCase() to deal with ReplicationStatus conversion issues. This needs to be reviewed.

View differences:

src/edu/ucsb/nceas/metacat/restservice/CNResourceHandler.java
1174 1174
        try {
1175 1175
            replicationStatus = multipartparams.get("status").get(0);
1176 1176
            status = ReplicationStatus.convert(replicationStatus);
1177
            
1177

  
1178 1178
        } catch (NullPointerException npe) {
1179 1179

  
1180 1180
            logMetacat.debug("The 'status' parameter was not found in the " +
......
1182 1182
            
1183 1183
            try {
1184 1184
                replicationStatus = params.get("status")[0];
1185
                status = ReplicationStatus.convert(replicationStatus);
1185
                status = ReplicationStatus.convert(replicationStatus.toLowerCase());
1186 1186
                
1187 1187
            } catch (Exception e) {
1188 1188
                String msg = "The 'status' must be provided as a parameter and was not.";

Also available in: Unified diff