diff options
author | James William Dumay <jdumay@apache.org> | 2008-07-02 04:11:34 +0000 |
---|---|---|
committer | James William Dumay <jdumay@apache.org> | 2008-07-02 04:11:34 +0000 |
commit | a0170714e3e421c73990dcc80121a3abb12d561b (patch) | |
tree | 47aeb6a5e33de5b179898d0b8b2dc4e815570c77 /archiva-modules/archiva-web/archiva-webdav | |
parent | 1fb861e0db780eab0755bafe4c5df8cfb614115f (diff) | |
download | archiva-a0170714e3e421c73990dcc80121a3abb12d561b.tar.gz archiva-a0170714e3e421c73990dcc80121a3abb12d561b.zip |
MRM-855 - java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat
* removed excludes for xerces:*
* updated enforcer rules
* excluded xerces from shade in archiva-cli
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@673269 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav')
3 files changed, 11 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/pom.xml b/archiva-modules/archiva-web/archiva-webdav/pom.xml index 228df0fee..c37e47c5f 100644 --- a/archiva-modules/archiva-web/archiva-webdav/pom.xml +++ b/archiva-modules/archiva-web/archiva-webdav/pom.xml @@ -123,6 +123,10 @@ <groupId>nekohtml</groupId> <artifactId>nekohtml</artifactId> </exclusion> + <exclusion> + <groupId>nekohtml</groupId> + <artifactId>xercesMinimal</artifactId> + </exclusion> </exclusions> </dependency> </dependencies> diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java index 1914be4aa..3cec4936f 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java @@ -68,6 +68,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; import java.io.*; +import org.apache.commons.lang.StringUtils; import org.apache.jackrabbit.webdav.lock.LockManager; import org.apache.jackrabbit.webdav.lock.SimpleLockManager; @@ -167,6 +168,12 @@ public class ArchivaDavResourceFactory { repositories.add( ( (RepositoryLocator) locator ).getRepositoryId() ); } + + //MRM-419 - Windows Webdav support. Should not 404 if there is no content. + if (StringUtils.isEmpty(archivaLocator.getRepositoryId())) + { + throw new DavException(HttpServletResponse.SC_NO_CONTENT); + } DavResource resource = null; DavException e = null; diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavSessionProvider.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavSessionProvider.java index 085a6e770..ad96939d1 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavSessionProvider.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavSessionProvider.java @@ -32,7 +32,6 @@ import org.codehaus.plexus.redback.policy.AccountLockedException; import org.codehaus.plexus.redback.xwork.filter.authentication.HttpAuthenticator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.context.ApplicationContext; /** * @author <a href="mailto:james@atlassian.com">James William Dumay</a> |