Index: lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/CheckCredentialTicketBeforeAdvice.java =================================================================== RCS file: /usr/local/cvsroot/lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/CheckCredentialTicketBeforeAdvice.java,v diff -u -r1.6 -r1.7 --- lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/CheckCredentialTicketBeforeAdvice.java 18 Jul 2005 23:26:58 -0000 1.6 +++ lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/CheckCredentialTicketBeforeAdvice.java 19 Jul 2005 05:36:39 -0000 1.7 @@ -49,32 +49,22 @@ throws AccessDeniedException, RepositoryRuntimeException { // assume that the first argument is the ticket or credential - /** - * Fiona, uncommented the logger below, July, 19th, 2005 Ozgur - */ - - /* if ( log.isDebugEnabled() ) { log.debug("Method " +( m!=null ? m.getName() : "null") +" Checking credential/ticket " +( args != null && args.length > 0 ? args[0] : "null")); } - */ + + if ( m!=null && "toString".equals(m.getName()) ) { + // don't check toString - let it through + return; + } - /** - * Fiona, Should access to repository be denied when this occurs? , July, 19th, 2005 Ozgur - */ if ( args == null || args[0] == null ) { - - log.debug("No ticket/credential supplied. Should access to repository be denied: args:" + args); - if (args != null) - { - log.debug("No ticket/credential supplied. Should access to repository be denied: args[0]:" + args[0]); - } - /** no more throw exception */ - //throw new AccessDeniedException("No ticket/credential supplied. Access to repository denied."); + throw new AccessDeniedException("No ticket/credential supplied. Access to repository denied."); + } else { Object obj = args[0];