Bug#655903: acegi-security: Please replace dependencies on Spring Framework 2.5 libraries
Miguel Landaeta
miguel at miguel.cc
Mon Jan 23 00:07:43 UTC 2012
tags 655903 + patch
thanks
Hi,
I'm attaching a patch to fix this bug, please consider it.
Thanks,
--
Miguel Landaeta, miguel at miguel.cc
secure email with PGP 0x7D8967E9 available at http://keyserver.pgp.com/
"Faith means not wanting to know what is true." -- Nietzsche
-------------- next part --------------
diff -Nru acegi-security-1.0.7/debian/changelog acegi-security-1.0.7/debian/changelog
--- acegi-security-1.0.7/debian/changelog 2011-12-30 15:56:13.000000000 -0430
+++ acegi-security-1.0.7/debian/changelog 2012-01-22 19:32:42.000000000 -0430
@@ -1,3 +1,11 @@
+acegi-security (1.0.7-3) unstable; urgency=low
+
+ * Team upload.
+ * Replace dependencies on Spring Framework 2.5 libraries with 3.0 ones.
+ * Add spring3.patch. (Closes: #655903).
+
+ -- Miguel Landaeta <miguel at miguel.cc> Sun, 22 Jan 2012 18:56:56 -0430
+
acegi-security (1.0.7-2) unstable; urgency=low
[James Page]
diff -Nru acegi-security-1.0.7/debian/control acegi-security-1.0.7/debian/control
--- acegi-security-1.0.7/debian/control 2011-12-30 15:56:13.000000000 -0430
+++ acegi-security-1.0.7/debian/control 2012-01-22 15:07:36.000000000 -0430
@@ -30,16 +30,15 @@
liboro-java,
libservlet2.5-java,
libservlet2.5-java-doc,
- libspring-aop-2.5-java,
- libspring-context-2.5-java,
- libspring-context-support-2.5-java,
- libspring-core-2.5-java,
- libspring-jdbc-2.5-java,
+ libspring-aop-java,
+ libspring-context-java,
+ libspring-context-support-java,
+ libspring-core-java,
+ libspring-jdbc-java,
libspring-ldap-java (>= 1.3.1),
libspring-ldap-java-doc,
- libspring-test-2.5-java,
- libspring-web-2.5-java,
- libspring-webmvc-2.5-java
+ libspring-test-java,
+ libspring-web-java,
Standards-Version: 3.9.2
Homepage: http://acegisecurity.org/
Vcs-Git: git://git.debian.org/git/pkg-java/acegi-security.git
diff -Nru acegi-security-1.0.7/debian/maven.rules acegi-security-1.0.7/debian/maven.rules
--- acegi-security-1.0.7/debian/maven.rules 2011-12-30 15:56:13.000000000 -0430
+++ acegi-security-1.0.7/debian/maven.rules 2012-01-22 15:11:15.000000000 -0430
@@ -23,10 +23,10 @@
s/aspectj/org.aspectj/ aspectjrt * s/.*/debian/ * *
s/javax\.servlet/javax.servlet.jsp/ jsp-api * s/.*/2.1/ * *
s/org\.springframework/org.springframework.ldap/ s/spring-ldap/spring-ldap-core/ * s/1\..*/debian/ * *
-org.springframework s/spring-remoting/spring-context/ * s/.*/2.x/ * *
-org.springframework s/spring-support/spring-context-support/ * s/.*/2.x/ * *
-org.springframework s/spring-mock/spring-test/ * s/.*/2.x/ * *
-org.springframework * * s/.*/2.x/ * *
+org.springframework s/spring-remoting/spring-context/ * s/.*/3.x/ * *
+org.springframework s/spring-support/spring-context-support/ * s/.*/3.x/ * *
+org.springframework s/spring-mock/spring-test/ * s/.*/3.x/ * *
+org.springframework * * s/.*/3.x/ * *
org.springframework.security * * s/2\..*/2.x/ * *
s/org\.apache\.tomcat/javax.el/ el-api jar s/.*/2.1/ * *
s/org\.apache\.tomcat/javax.servlet/ jsp-api jar s/.*/2.1/ * *
diff -Nru acegi-security-1.0.7/debian/patches/build.patch acegi-security-1.0.7/debian/patches/build.patch
--- acegi-security-1.0.7/debian/patches/build.patch 2011-12-30 15:56:13.000000000 -0430
+++ acegi-security-1.0.7/debian/patches/build.patch 2012-01-22 15:28:12.000000000 -0430
@@ -31,18 +31,6 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-mock</artifactId>
-@@ -542,6 +544,11 @@
- <artifactId>spring-web</artifactId>
- <version>${spring.version}</version>
- </dependency>
-+ <dependency>
-+ <groupId>org.springframework</groupId>
-+ <artifactId>spring-webmvc</artifactId>
-+ <version>${spring.version}</version>
-+ </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-jdbc</artifactId>
@@ -563,7 +570,7 @@
</dependencyManagement>
@@ -68,16 +56,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-remoting</artifactId>
-@@ -32,10 +37,21 @@
- <artifactId>spring-web</artifactId>
- <optional>true</optional>
- </dependency>
-+ <dependency>
-+ <groupId>org.springframework</groupId>
-+ <artifactId>spring-webmvc</artifactId>
-+ <optional>true</optional>
-+ </dependency>
- <dependency>
+@@ -36,6 +41,12 @@
<groupId>org.springframework</groupId>
<artifactId>spring-mock</artifactId>
<optional>true</optional>
@@ -90,7 +69,7 @@
</dependency>
<dependency>
<!-- TODO: Upgrade to 1.2 before 2.0 release -->
-@@ -157,7 +173,7 @@
+@@ -157,7 +168,7 @@
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
diff -Nru acegi-security-1.0.7/debian/patches/series acegi-security-1.0.7/debian/patches/series
--- acegi-security-1.0.7/debian/patches/series 2011-12-30 15:56:13.000000000 -0430
+++ acegi-security-1.0.7/debian/patches/series 2012-01-22 18:55:38.000000000 -0430
@@ -1,2 +1,3 @@
build.patch
no_cas.patch
+spring3.patch
diff -Nru acegi-security-1.0.7/debian/patches/spring3.patch acegi-security-1.0.7/debian/patches/spring3.patch
--- acegi-security-1.0.7/debian/patches/spring3.patch 1969-12-31 20:00:00.000000000 -0400
+++ acegi-security-1.0.7/debian/patches/spring3.patch 2012-01-22 18:55:26.000000000 -0430
@@ -0,0 +1,127 @@
+Description: Add compatibility with Spring 3.0 Framework
+Author: Miguel Landaeta <miguel at miguel.cc>
+Bug-Debian: http://bugs.debian.org/655903
+Forwarded: no
+Last-Update: 2012-01-22
+
+--- acegi-security-1.0.7.orig/core/src/main/java/org/acegisecurity/ui/rememberme/TokenBasedRememberMeServices.java
++++ acegi-security-1.0.7/core/src/main/java/org/acegisecurity/ui/rememberme/TokenBasedRememberMeServices.java
+@@ -39,7 +39,7 @@ import org.springframework.beans.factory
+ import org.springframework.context.ApplicationContext;
+ import org.springframework.util.Assert;
+ import org.springframework.util.StringUtils;
+-import org.springframework.web.bind.RequestUtils;
++import org.springframework.web.bind.ServletRequestUtils;
+
+ /**
+ * Identifies previously remembered users by a Base-64 encoded cookie.
+@@ -357,7 +357,7 @@ public class TokenBasedRememberMeService
+ return true;
+ }
+
+- return RequestUtils.getBooleanParameter(request, parameter, false);
++ return ServletRequestUtils.getBooleanParameter(request, parameter, false);
+ }
+
+ public void loginSuccess(HttpServletRequest request, HttpServletResponse response,
+--- /dev/null
++++ acegi-security-1.0.7/core/src/main/java/org/springframework/metadata/Attributes.java
+@@ -0,0 +1,98 @@
++/*
++ * Copyright 2002-2005 the original author or authors.
++ *
++ * Licensed under the Apache License, Version 2.0 (the "License");
++ * you may not use this file except in compliance with the License.
++ * You may obtain a copy of the License at
++ *
++ * http://www.apache.org/licenses/LICENSE-2.0
++ *
++ * Unless required by applicable law or agreed to in writing, software
++ * distributed under the License is distributed on an "AS IS" BASIS,
++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
++ * See the License for the specific language governing permissions and
++ * limitations under the License.
++ */
++
++package org.springframework.metadata;
++
++import java.lang.reflect.Field;
++import java.lang.reflect.Method;
++import java.util.Collection;
++
++/**
++ * Interface for accessing attributes at runtime. This is a facade,
++ * which can accommodate any attributes API such as Jakarta Commons Attributes,
++ * or (possibly in future) a Spring attributes implementation.
++ *
++ * <p>The purpose of using this interface is to decouple Spring code from any
++ * specific attributes implementation. Even once JSR-175 is available, there
++ * is still value in such a facade interface, as it allows for hierarchical
++ * attribute sources: for example, an XML file or properties file might override
++ * some attributes defined in source-level metadata with JSR-175 or another framework.
++ *
++ * @author Mark Pollack
++ * @author Rod Johnson
++ * @since 30.09.2003
++ * @see org.springframework.metadata.commons.CommonsAttributes
++ */
++public interface Attributes {
++
++ /**
++ * Return the class attributes of the target class.
++ * @param targetClass the class that contains attribute information
++ * @return a collection of attributes, possibly an empty collection, never <code>null</code>
++ */
++ Collection getAttributes(Class targetClass);
++
++ /**
++ * Return the class attributes of the target class of a given type.
++ * <p>The class attributes are filtered by providing a <code>Class</code>
++ * reference to indicate the type to filter on. This is useful if you know
++ * the type of the attribute you are looking for and don't want to sort
++ * through the unfiltered Collection yourself.
++ * @param targetClass the class that contains attribute information
++ * @param filter specify that only this type of class should be returned
++ * @return return only the Collection of attributes that are of the filter type
++ */
++ Collection getAttributes(Class targetClass, Class filter);
++
++ /**
++ * Return the method attributes of the target method.
++ * @param targetMethod the method that contains attribute information
++ * @return a Collection of attributes, possibly an empty Collection, never <code>null</code>
++ */
++ Collection getAttributes(Method targetMethod);
++
++ /**
++ * Return the method attributes of the target method of a given type.
++ * <p>The method attributes are filtered by providing a <code>Class</code>
++ * reference to indicate the type to filter on. This is useful if you know
++ * the type of the attribute you are looking for and don't want to sort
++ * through the unfiltered Collection yourself.
++ * @param targetMethod the method that contains attribute information
++ * @param filter specify that only this type of class should be returned
++ * @return a Collection of attributes, possibly an empty Collection, never <code>null</code>
++ */
++ Collection getAttributes(Method targetMethod, Class filter);
++
++ /**
++ * Return the field attributes of the target field.
++ * @param targetField the field that contains attribute information
++ * @return a Collection of attribute, possibly an empty Collection, never <code>null</code>
++ */
++ Collection getAttributes(Field targetField);
++
++ /**
++ * Return the field attributes of the target method of a given type.
++ * <p>The field attributes are filtered by providing a <code>Class</code>
++ * reference to indicate the type to filter on. This is useful if you know
++ * the type of the attribute you are looking for and don't want to sort
++ * through the unfiltered Collection yourself.
++ * @param targetField the field that contains attribute information
++ * @param filter specify that only this type of class should be returned
++ * @return a Collection of attributes, possibly an empty Collection, never <code>null</code>
++ */
++ Collection getAttributes(Field targetField, Class filter);
++
++}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20120122/573dce3e/attachment-0001.pgp>
More information about the pkg-java-maintainers
mailing list