]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
DRYD-626: Changed anonymous access error into warning.
authorRichard Millet <remillet@gmail.com>
Mon, 1 Apr 2019 21:34:36 +0000 (14:34 -0700)
committerRichard Millet <remillet@gmail.com>
Tue, 7 May 2019 16:16:39 +0000 (09:16 -0700)
services/common/src/main/java/org/collectionspace/services/common/security/SecurityContextImpl.java
services/systeminfo/service/src/main/java/org/collectionspace/services/systeminfo/SystemInfoResource.java

index 0d8b81ce720347aa4206ce6679ee2c530db3243a..15cb981cdbead8d5d7e41650ac96a9dc21bfa0da 100644 (file)
@@ -54,8 +54,8 @@ public class SecurityContextImpl implements SecurityContext {
             // If anonymous access is being attempted, then a tenant ID needs to be set as a query param
             //         
                if (uriInfo == null) {
-                       String errMsg = "Anonymous access attempted without a valid tenant ID query or path paramter.  Error: A null 'UriInfo' instance was passed into the service context constructor.";
-                       logger.error(errMsg);
+                       String errMsg = "Anonymous access attempted with missing or invalid tenant ID query or path paramter. A null 'UriInfo' instance was passed into the service context constructor.";
+                       logger.warn(errMsg);
                        throw new UnauthorizedException(errMsg);
                }
                
index ecf56cbaf6934ea9fdcea3a808475a5953701ca9..56a87029c9b3fc22fe380624d8d7ce7858727afe 100644 (file)
@@ -83,7 +83,7 @@ public class SystemInfoResource extends AbstractCollectionSpaceResourceImpl<Syst
                        result.setPostgresVersionString("9.5.7");
                        }
                } catch (UnauthorizedException e) {
-                       e.printStackTrace();
+                       logger.trace(e.getMessage(), e);
                }
 
        } catch(Exception e) {