Project

General

Profile

« Previous | Next » 

Revision 10193

Added by Jing Tao over 7 years ago

Add more debug statement on cn.create method.

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
1820 1820
      if (!isValidIdentifier(pid)) {
1821 1821
          throw new InvalidRequest("4891", "The provided identifier is invalid.");
1822 1822
      }
1823
      logMetacat.debug("CN.create -start to create the object with pid "+pid.getValue());
1823 1824
      // The lock to be used for this identifier
1824 1825
      Lock lock = null;
1825 1826

  
......
1846 1847
                  }
1847 1848
              }
1848 1849
              // create the coordinating node version of the document      
1849
              logMetacat.debug("Locked identifier " + pid.getValue());
1850
              logMetacat.debug("CN.create - after locking identifier, passing authorization check, continue to create the object " + pid.getValue());
1850 1851
              sysmeta.setSerialVersion(BigInteger.ONE);
1851 1852
              //for the object whose authoritative mn is v1. we need reset the modification date.
1852 1853
              //for the object whose authoritative mn is v2. we just accept the modification date.
......
1871 1872

  
1872 1873
          } else {
1873 1874
              String msg = "The subject listed as " + session.getSubject().getValue() + 
1874
                  " isn't allowed to call create() on a Coordinating Node.";
1875
              logMetacat.info(msg);
1875
                  " isn't allowed to call create() on a Coordinating Node for pid "+pid.getValue();
1876
              logMetacat.error(msg);
1876 1877
              throw new NotAuthorized("1100", msg);
1877 1878
          }
1878 1879
          

Also available in: Unified diff