Project

General

Profile

« Previous | Next » 

Revision 804

Added by bojilova over 23 years ago

fixed the compilation bug about the change of group parameter in DocumentImpl.write()

View differences:

src/edu/ucsb/nceas/metacat/MetacatReplication.java
354 354
                               "?action=getdocumentinfo&docid=" +
355 355
                               docid);
356 356
      //we need to get the document's info so we can set the correct user
357
      //and group once we get the document and write it to our DB
357
      //and groups once we get the document and write it to our DB
358 358
      MetaCatUtil.debugMessage("sending message: " + docinfourl.toString());
359 359
      String docInfoStr = MetacatReplication.getURLContent(docinfourl);
360 360
      MetaCatUtil.debugMessage("docInfo: " + docInfoStr);
......
364 364
      docinfoParser.parse(new InputSource(new StringReader(docInfoStr)));
365 365
      Hashtable docinfoHash = dih.getDocInfo();
366 366
      String user = (String)docinfoHash.get("user_owner");
367
      String group = new String(user);
367
      //String[] groups = null;
368 368
      //right now the user and group are the same.
369 369
      Connection conn = null;
370 370
      
......
372 372
                                                "handleForceReplicateRequest");
373 373
    
374 374
      DocumentImpl.write(conn, new StringReader(xmldoc), null, dbaction, docid, 
375
                         user, group, serverCode, override);
375
                         user, null, serverCode, override);
376 376
      MetacatReplication.replLog("document " + docid + " added to DB with " +
377 377
                                 "action " + dbaction);
378 378
      conn.close();
src/edu/ucsb/nceas/metacat/ReplicationHandler.java
277 277
                              action, 
278 278
                              docid, 
279 279
                              (String)docinfoHash.get("user_owner"),
280
                              (String)docinfoHash.get("user_owner"), 
280
                              null, /* null for groups[] */
281 281
                              serverCode, 
282 282
                              true, /* override */
283 283
                              false /* validate */);

Also available in: Unified diff