From 34799b02edbf29dfd588ac1b70d40cb5ca88a47b Mon Sep 17 00:00:00 2001 From: jeb228 Date: Thu, 29 Jul 2010 16:02:10 +0000 Subject: [PATCH] Remove the requirement for a namespace ending in "/individual/" - print a warning, but go on. --- .../vitro/webapp/filestorage/backend/FileStorageSetup.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/filestorage/backend/FileStorageSetup.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/filestorage/backend/FileStorageSetup.java index e500f389a..17b1ee0d7 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/filestorage/backend/FileStorageSetup.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/filestorage/backend/FileStorageSetup.java @@ -97,9 +97,9 @@ public class FileStorageSetup implements ServletContextListener { String defaultSuffix = "/individual/"; if (!defaultNamespace.endsWith(defaultSuffix)) { - throw new IllegalArgumentException( - "Default namespace does not match the expected form: '" - + defaultNamespace + "'"); + log.warn("Default namespace does not match the expected form " + + "(does not end with '" + defaultSuffix + "'): '" + + defaultNamespace + "'"); } return Collections.singleton(defaultNamespace);