← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20651: Log intentionally ignored exception to debug

 

------------------------------------------------------------
revno: 20651
committer: Halvdan Hoem Grelland <halvdanhg@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-10-12 19:31:22 +0200
message:
  Log intentionally ignored exception to debug
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/JCloudsFileResourceContentStore.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/JCloudsFileResourceContentStore.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/JCloudsFileResourceContentStore.java	2015-10-12 15:46:12 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/JCloudsFileResourceContentStore.java	2015-10-12 17:31:22 +0000
@@ -353,13 +353,16 @@
         {
             Throwable cause = rte.getCause();
 
-            if ( ( cause == null ) || !( cause instanceof UserPrincipalNotFoundException ) )
+            if ( cause != null && cause instanceof UserPrincipalNotFoundException )
+            {
+                //  Intentionally ignored exception which occurs with JClouds on non-English
+                //  Windows installations while trying to resolve the "Everyone" group.
+                log.debug( "Ignored UserPrincipalNotFoundException as a workaround for bug with JClouds filesystem provider on Windows" );
+            }
+            else
             {
                 throw rte;
             }
-            // Else:
-            //  Intentionally ignored exception which occurs with JClouds on
-            //  non-English Windows installation while trying to resolve the "Everyone" group.
         }
 
         return etag;