[Bug 1171898] New: maven_depmap.py does not create correct directory ownership for installed poms
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1171898
Bug ID: 1171898
Summary: maven_depmap.py does not create correct directory
ownership for installed poms
Product: Fedora
Version: rawhide
Component: javapackages-tools
Severity: medium
Assignee: mizdebsk(a)redhat.com
Reporter: orion(a)cora.nwra.com
QA Contact: extras-qa(a)fedoraproject.org
CC: java-sig-commits(a)lists.fedoraproject.org,
mat.booth(a)redhat.com, mizdebsk(a)redhat.com,
msimacek(a)redhat.com, msrb(a)redhat.com
Description of problem:
maven_depmap.py does not record the directory that a pom is installed into,
resulting in lots of unowned directories in /usr/share/maven-poms:
file /usr/share/maven-poms/slf4j is not owned by any package
file /usr/share/maven-poms/sonatype-oss-parent is not owned by any package
file /usr/share/maven-poms/spice-parent is not owned by any package
Version-Release number of selected component (if applicable):
javapackages-tools-4.2.0-8.fc22.noarch
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=KtquFJYoP9&a=cc_unsubscribe
9 years, 5 months
[springframework-batch] fix build
by gil
commit c8653d0d1f5a5d13e07f623c6e6ff4c98f743231
Author: gil <puntogil(a)libero.it>
Date: Tue Dec 30 12:11:29 2014 +0100
fix build
springframework-batch-2.1.9-core-StepScope.patch | 30 ++++++++++++++++++++++
springframework-batch.spec | 13 +++++++--
2 files changed, 40 insertions(+), 3 deletions(-)
---
diff --git a/springframework-batch-2.1.9-core-StepScope.patch b/springframework-batch-2.1.9-core-StepScope.patch
new file mode 100644
index 0000000..b3d85ab
--- /dev/null
+++ b/springframework-batch-2.1.9-core-StepScope.patch
@@ -0,0 +1,30 @@
+--- spring-batch-core/src/main/java/org/springframework/batch/core/scope/StepScope.java 2012-08-21 10:27:57.000000000 +0200
++++ spring-batch-core/src/main/java/org/springframework/batch/core/scope/StepScope.java-gil 2014-12-30 11:48:32.031282773 +0100
+@@ -20,7 +20,6 @@
+ import org.springframework.aop.scope.ScopedProxyUtils;
+ import org.springframework.batch.core.scope.context.StepContext;
+ import org.springframework.batch.core.scope.context.StepSynchronizationManager;
+-import org.springframework.batch.core.scope.util.PlaceholderProxyFactoryBean;
+ import org.springframework.beans.BeanWrapper;
+ import org.springframework.beans.BeanWrapperImpl;
+ import org.springframework.beans.BeansException;
+@@ -272,16 +271,9 @@
+
+ BeanDefinitionHolder proxyHolder;
+
+- if (isSpringThree()) {
+- proxyHolder = ScopedProxyUtils.createScopedProxy(new BeanDefinitionHolder(definition, beanName), registry,
+- proxyTargetClass);
+- }
+- else {
+- // Create the scoped proxy...
+- proxyHolder = PlaceholderProxyFactoryBean.createScopedProxy(new BeanDefinitionHolder(definition, beanName),
+- registry, proxyTargetClass);
+- // ...and register it under the original target name
+- }
++ proxyHolder = ScopedProxyUtils.createScopedProxy(new BeanDefinitionHolder(definition, beanName), registry,
++ proxyTargetClass);
++
+ registry.registerBeanDefinition(beanName, proxyHolder.getBeanDefinition());
+
+ return proxyHolder;
diff --git a/springframework-batch.spec b/springframework-batch.spec
index f641d61..b8514b7 100644
--- a/springframework-batch.spec
+++ b/springframework-batch.spec
@@ -11,8 +11,7 @@ URL: http://www.springsource.org/spring-batch
# lastest release require springframework >= 3.2.0.RELEASE
Source0: https://github.com/spring-projects/%{oname}/archive/%{namedversion}.tar.gz
Patch0: %{name}-2.1.9-core-add-missing-beans-method.patch
-
-BuildRequires: java-devel
+Patch1: %{name}-2.1.9-core-StepScope.patch
BuildRequires: hibernate3
BuildRequires: hibernate3-entitymanager
@@ -84,6 +83,14 @@ This package contains javadoc for %{name}.
%prep
%setup -q -n %{oname}-%{namedversion}
%patch0 -p0
+# Remove problems with Java 8
+# spring-batch-core/src/main/java/org/springframework/batch/core/scope/util/PlaceholderTargetSource.java:[163,40] reference to convertIfNecessary is ambiguous
+# [ERROR] both method convertIfNecessary(java.lang.Object,java.lang.Class,org.springframework.core.MethodParameter)
+# in <anonymous org.springframework.batch.core.scope.util.PlaceholderTargetSource$1> and
+# method <T>convertIfNecessary(java.lang.Object,java.lang.Class<T>,java.lang.reflect.Field)
+# in <anonymous org.springframework.batch.core.scope.util.PlaceholderTargetSource$1> match
+%patch1 -p0
+rm -r spring-batch-core/src/main/java/org/springframework/batch/core/scope/util
cp -p src/assembly/license.txt .
cp -p src/assembly/notice.txt .
@@ -297,4 +304,4 @@ sed -i "s|<version>1.2.14</version>|<version>1.2.17</version>|" spring-batch-par
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Thu Nov 29 2012 gil cattaneo <puntogil(a)libero.it> 2.1.9-1
-- initial rpm
\ No newline at end of file
+- initial rpm
9 years, 6 months
[springframework-ws] add Smack 4 support
by gil
commit 5bdcd1f8813cd61f320505949f2dafc2c80873b4
Author: gil <puntogil(a)libero.it>
Date: Tue Dec 30 10:38:53 2014 +0100
add Smack 4 support
springframework-ws-2.1.1-smack4.patch | 223 +++++++++++++++++++++++++++++++++
springframework-ws.spec | 17 ++-
2 files changed, 235 insertions(+), 5 deletions(-)
---
diff --git a/springframework-ws-2.1.1-smack4.patch b/springframework-ws-2.1.1-smack4.patch
new file mode 100644
index 0000000..4e6816f
--- /dev/null
+++ b/springframework-ws-2.1.1-smack4.patch
@@ -0,0 +1,223 @@
+diff -Nru spring-ws-spring-ws-2.1.1.RELEASE/parent/pom.xml spring-ws-spring-ws-2.1.1.RELEASE-gil/parent/pom.xml
+--- spring-ws-spring-ws-2.1.1.RELEASE/parent/pom.xml 2012-09-18 12:22:28.000000000 +0200
++++ spring-ws-spring-ws-2.1.1.RELEASE-gil/parent/pom.xml 2014-12-28 20:40:31.606788545 +0100
+@@ -661,9 +661,19 @@
+ </exclusions>
+ </dependency>
+ <dependency>
+- <groupId>jivesoftware</groupId>
+- <artifactId>smack</artifactId>
+- <version>3.1.0</version>
++ <groupId>org.igniterealtime.smack</groupId>
++ <artifactId>smack-core</artifactId>
++ <version>4.0.6</version>
++ </dependency>
++ <dependency>
++ <groupId>org.igniterealtime.smack</groupId>
++ <artifactId>smack-extensions</artifactId>
++ <version>4.0.6</version>
++ </dependency>
++ <dependency>
++ <groupId>org.igniterealtime.smack</groupId>
++ <artifactId>smack-tcp</artifactId>
++ <version>4.0.6</version>
+ </dependency>
+ <!-- Logging dependencies -->
+ <dependency>
+diff -Nru spring-ws-spring-ws-2.1.1.RELEASE/support/pom.xml spring-ws-spring-ws-2.1.1.RELEASE-gil/support/pom.xml
+--- spring-ws-spring-ws-2.1.1.RELEASE/support/pom.xml 2012-09-18 12:22:28.000000000 +0200
++++ spring-ws-spring-ws-2.1.1.RELEASE-gil/support/pom.xml 2014-12-28 18:45:44.915366485 +0100
+@@ -90,8 +90,18 @@
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+- <groupId>jivesoftware</groupId>
+- <artifactId>smack</artifactId>
++ <groupId>org.igniterealtime.smack</groupId>
++ <artifactId>smack-core</artifactId>
++ <optional>true</optional>
++ </dependency>
++ <dependency>
++ <groupId>org.igniterealtime.smack</groupId>
++ <artifactId>smack-extensions</artifactId>
++ <optional>true</optional>
++ </dependency>
++ <dependency>
++ <groupId>org.igniterealtime.smack</groupId>
++ <artifactId>smack-tcp</artifactId>
+ <optional>true</optional>
+ </dependency>
+ <!-- Other dependencies -->
+diff -Nru spring-ws-spring-ws-2.1.1.RELEASE/support/src/main/java/org/springframework/ws/transport/xmpp/support/XmppConnectionFactoryBean.java spring-ws-spring-ws-2.1.1.RELEASE-gil/support/src/main/java/org/springframework/ws/transport/xmpp/support/XmppConnectionFactoryBean.java
+--- spring-ws-spring-ws-2.1.1.RELEASE/support/src/main/java/org/springframework/ws/transport/xmpp/support/XmppConnectionFactoryBean.java 2012-09-18 12:22:28.000000000 +0200
++++ spring-ws-spring-ws-2.1.1.RELEASE-gil/support/src/main/java/org/springframework/ws/transport/xmpp/support/XmppConnectionFactoryBean.java 2014-12-28 20:37:39.984400354 +0100
+@@ -16,6 +16,9 @@
+
+ package org.springframework.ws.transport.xmpp.support;
+
++import java.io.IOException;
++import javax.security.sasl.SaslException;
++
+ import org.springframework.beans.factory.DisposableBean;
+ import org.springframework.beans.factory.FactoryBean;
+ import org.springframework.beans.factory.InitializingBean;
+@@ -23,8 +26,11 @@
+ import org.springframework.util.StringUtils;
+
+ import org.jivesoftware.smack.ConnectionConfiguration;
++import org.jivesoftware.smack.SmackException;
++import org.jivesoftware.smack.SmackException.NotConnectedException;
+ import org.jivesoftware.smack.XMPPConnection;
+ import org.jivesoftware.smack.XMPPException;
++import org.jivesoftware.smack.tcp.XMPPTCPConnection;
+
+ /**
+ * Factory to make {@link org.jivesoftware.smack.XMPPConnection} and perform connection and login on the XMPP server
+@@ -83,13 +89,13 @@
+ this.resource = resource;
+ }
+
+- public void afterPropertiesSet() throws XMPPException {
++ public void afterPropertiesSet() throws XMPPException, SmackException, IOException, SaslException {
+ ConnectionConfiguration configuration = createConnectionConfiguration(host, port, serviceName);
+ Assert.notNull(configuration, "'configuration' must not be null");
+ Assert.hasText(username, "'username' must not be empty");
+ Assert.hasText(password, "'password' must not be empty");
+
+- connection = new XMPPConnection(configuration);
++ connection = new XMPPTCPConnection(configuration);
+ connection.connect();
+ if (StringUtils.hasText(resource)) {
+ connection.login(username, password, resource);
+@@ -100,7 +106,12 @@
+ }
+
+ public void destroy() {
+- connection.disconnect();
++ try {
++ connection.disconnect();
++ }
++ catch (NotConnectedException e) {
++ // Ignore
++ }
+ }
+
+ public XMPPConnection getObject() {
+diff -Nru spring-ws-spring-ws-2.1.1.RELEASE/support/src/main/java/org/springframework/ws/transport/xmpp/support/XmppTransportUtils.java spring-ws-spring-ws-2.1.1.RELEASE-gil/support/src/main/java/org/springframework/ws/transport/xmpp/support/XmppTransportUtils.java
+--- spring-ws-spring-ws-2.1.1.RELEASE/support/src/main/java/org/springframework/ws/transport/xmpp/support/XmppTransportUtils.java 2012-09-18 12:22:28.000000000 +0200
++++ spring-ws-spring-ws-2.1.1.RELEASE-gil/support/src/main/java/org/springframework/ws/transport/xmpp/support/XmppTransportUtils.java 2014-12-28 20:45:59.524333890 +0100
+@@ -25,6 +25,7 @@
+ import org.springframework.ws.transport.xmpp.XmppTransportConstants;
+
+ import org.jivesoftware.smack.packet.Message;
++import org.jivesoftware.smackx.jiveproperties.JivePropertiesManager;
+
+ /**
+ * Collection of utility methods to work with Mail transports.
+@@ -62,17 +63,17 @@
+ }
+
+ public static void addHeader(Message message, String name, String value) {
+- message.setProperty(name, value);
++ JivePropertiesManager.addProperty(message, name, value);
+ }
+
+ public static Iterator<String> getHeaderNames(Message message) {
+ Assert.notNull(message, "'message' must not be null");
+- return message.getPropertyNames().iterator();
++ return JivePropertiesManager.getPropertiesNames(message).iterator();
+ }
+
+ public static Iterator<String> getHeaders(Message message, String name) {
+ Assert.notNull(message, "'message' must not be null");
+- String value = message.getProperty(name).toString();
++ String value = JivePropertiesManager.getProperty(message, name).toString();
+ if (value != null) {
+ return Collections.singletonList(value).iterator();
+ }
+diff -Nru spring-ws-spring-ws-2.1.1.RELEASE/support/src/main/java/org/springframework/ws/transport/xmpp/XmppMessageReceiver.java spring-ws-spring-ws-2.1.1.RELEASE-gil/support/src/main/java/org/springframework/ws/transport/xmpp/XmppMessageReceiver.java
+--- spring-ws-spring-ws-2.1.1.RELEASE/support/src/main/java/org/springframework/ws/transport/xmpp/XmppMessageReceiver.java 2012-09-18 12:22:28.000000000 +0200
++++ spring-ws-spring-ws-2.1.1.RELEASE-gil/support/src/main/java/org/springframework/ws/transport/xmpp/XmppMessageReceiver.java 2014-12-28 20:39:06.787044706 +0100
+@@ -16,9 +16,13 @@
+
+ package org.springframework.ws.transport.xmpp;
+
++import java.io.IOException;
++
+ import org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver;
+
+ import org.jivesoftware.smack.PacketListener;
++import org.jivesoftware.smack.SmackException;
++import org.jivesoftware.smack.SmackException.NotConnectedException;
+ import org.jivesoftware.smack.XMPPConnection;
+ import org.jivesoftware.smack.XMPPException;
+ import org.jivesoftware.smack.filter.PacketFilter;
+@@ -57,7 +61,7 @@
+ }
+
+ @Override
+- protected void onActivate() throws XMPPException {
++ protected void onActivate() throws XMPPException, SmackException, IOException {
+ if (!connection.isConnected()) {
+ connection.connect();
+ }
+@@ -88,7 +92,11 @@
+ logger.info("Shutting down XMPP receiver [" + connection.getUser() + "]");
+ }
+ if (connection.isConnected()) {
+- connection.disconnect();
++ try {
++ connection.disconnect();
++ } catch (NotConnectedException e) {
++ // Ignore
++ }
+ }
+ }
+
+diff -Nru spring-ws-spring-ws-2.1.1.RELEASE/support/src/main/java/org/springframework/ws/transport/xmpp/XmppReceiverConnection.java spring-ws-spring-ws-2.1.1.RELEASE-gil/support/src/main/java/org/springframework/ws/transport/xmpp/XmppReceiverConnection.java
+--- spring-ws-spring-ws-2.1.1.RELEASE/support/src/main/java/org/springframework/ws/transport/xmpp/XmppReceiverConnection.java 2012-09-18 12:22:28.000000000 +0200
++++ spring-ws-spring-ws-2.1.1.RELEASE-gil/support/src/main/java/org/springframework/ws/transport/xmpp/XmppReceiverConnection.java 2014-12-28 20:32:25.096201720 +0100
+@@ -28,6 +28,7 @@
+ import org.springframework.ws.transport.AbstractReceiverConnection;
+ import org.springframework.ws.transport.xmpp.support.XmppTransportUtils;
+
++import org.jivesoftware.smack.SmackException.NotConnectedException;
+ import org.jivesoftware.smack.XMPPConnection;
+ import org.jivesoftware.smack.packet.Message;
+
+@@ -136,6 +137,10 @@
+
+ @Override
+ protected void onSendAfterWrite(WebServiceMessage message) throws IOException {
+- connection.sendPacket(responseMessage);
++ try {
++ connection.sendPacket(responseMessage);
++ } catch (NotConnectedException e) {
++ throw new IOException(e);
++ }
+ }
+ }
+diff -Nru spring-ws-spring-ws-2.1.1.RELEASE/support/src/main/java/org/springframework/ws/transport/xmpp/XmppSenderConnection.java spring-ws-spring-ws-2.1.1.RELEASE-gil/support/src/main/java/org/springframework/ws/transport/xmpp/XmppSenderConnection.java
+--- spring-ws-spring-ws-2.1.1.RELEASE/support/src/main/java/org/springframework/ws/transport/xmpp/XmppSenderConnection.java 2012-09-18 12:22:28.000000000 +0200
++++ spring-ws-spring-ws-2.1.1.RELEASE-gil/support/src/main/java/org/springframework/ws/transport/xmpp/XmppSenderConnection.java 2014-12-28 20:32:56.286636447 +0100
+@@ -29,6 +29,7 @@
+ import org.springframework.ws.transport.xmpp.support.XmppTransportUtils;
+
+ import org.jivesoftware.smack.PacketCollector;
++import org.jivesoftware.smack.SmackException.NotConnectedException;
+ import org.jivesoftware.smack.XMPPConnection;
+ import org.jivesoftware.smack.filter.AndFilter;
+ import org.jivesoftware.smack.filter.PacketFilter;
+@@ -125,7 +126,11 @@
+ @Override
+ protected void onSendAfterWrite(WebServiceMessage message) throws IOException {
+ requestMessage.setFrom(connection.getUser());
+- connection.sendPacket(requestMessage);
++ try {
++ connection.sendPacket(requestMessage);
++ } catch (NotConnectedException e) {
++ throw new IOException(e);
++ }
+ }
+
+ /*
diff --git a/springframework-ws.spec b/springframework-ws.spec
index c77b8ec..55f760e 100644
--- a/springframework-ws.spec
+++ b/springframework-ws.spec
@@ -3,14 +3,14 @@
%global oname spring-ws
Name: springframework-ws
Version: 2.1.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Spring Web Services
License: ASL 2.0
URL: http://projects.spring.io/spring-ws/
-# latest release depend on springframework >= 3.2.2.RELEASE
+# latest release depend on springframework >= 3.2.9.RELEASE
Source0: https://github.com/spring-projects/%{oname}/archive/%{oname}-%{namedversi...
-
-BuildRequires: java-devel
+# Thanks to Florian Schmaus flo(a)geekplace.eu
+Patch0: springframework-ws-2.1.1-smack4.patch
BuildRequires: mvn(com.sun.xml.messaging.saaj:saaj-impl)
BuildRequires: mvn(commons-httpclient:commons-httpclient)
@@ -22,7 +22,9 @@ BuildRequires: mvn(javax.xml.soap:saaj-api)
BuildRequires: mvn(javax.xml.stream:stax-api)
BuildRequires: mvn(javax.mail:mail)
BuildRequires: mvn(jaxen:jaxen)
-BuildRequires: mvn(jivesoftware:smack)
+BuildRequires: mvn(org.igniterealtime.smack:smack-core) >= 4.0.6
+BuildRequires: mvn(org.igniterealtime.smack:smack-extensions)
+BuildRequires: mvn(org.igniterealtime.smack:smack-tcp)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.ws.commons.axiom:axiom-api)
BuildRequires: mvn(org.apache.ws.commons.axiom:axiom-impl)
@@ -214,6 +216,8 @@ jboss-servlet-api_3.0_spec" core
</execution>
</executions>'
+%patch0 -p1
+
sed -i 's/\r//' notice.txt
%build
@@ -232,6 +236,9 @@ sed -i 's/\r//' notice.txt
%doc license.txt notice.txt
%changelog
+* Tue Dec 30 2014 gil cattaneo <puntogil(a)libero.it> 2.1.1-4
+- add Smack 4 support
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 2.1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9 years, 6 months
[Bug 1093277] New: CVE-2014-0364 smack: IQ response spoofing [fedora-all]
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1093277
Bug ID: 1093277
Summary: CVE-2014-0364 smack: IQ response spoofing [fedora-all]
Product: Fedora
Version: 20
Component: smack
Keywords: Security, SecurityTracking
Severity: medium
Priority: medium
Assignee: puntogil(a)libero.it
Reporter: mmcallis(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: java-sig-commits(a)lists.fedoraproject.org,
puntogil(a)libero.it
Blocks: 1093276 (CVE-2014-0364)
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When creating a Bodhi update request, use the bodhi submission link noted
in the next comment(s). This will include the bug IDs of this tracking
bug as well as the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
Bodhi notes field when available.
NOTE: this issue affects multiple supported versions of Fedora. While only
one tracking bug has been filed, please correct all affected versions at
the same time. If you need to fix the versions independent of each other,
you may clone this bug as appropriate.
[bug automatically created by: add-tracking-bugs]
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1093276
[Bug 1093276] CVE-2014-0364 smack: IQ response spoofing
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=5tK249Hde4&a=cc_unsubscribe
9 years, 6 months
[mybatis] update to 3.2.8
by gil
commit 31467b8344069b6ed58fea7f70fb99aeb9ec7276
Author: gil <puntogil(a)libero.it>
Date: Fri Dec 26 18:49:51 2014 +0100
update to 3.2.8
mybatis.spec | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mybatis.spec b/mybatis.spec
index 2f9a35d..652a594 100644
--- a/mybatis.spec
+++ b/mybatis.spec
@@ -16,7 +16,7 @@ BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.commons:commons-ognl)
BuildRequires: mvn(org.apache.logging.log4j:log4j-core)
BuildRequires: mvn(org.javassist:javassist)
-BuildRequires: mvn(org.mybatis:mybatis-parent)
+BuildRequires: mvn(org.mybatis:mybatis-parent:pom:)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
9 years, 6 months