8
0

9 Commits

Author SHA256 Message Date
d9f099681b Accepting request 1255928 from Java:packages
bsc#1239973, CVE-2025-27553 and bsc#1239974, CVE-2025-30474

OBS-URL: https://build.opensuse.org/request/show/1255928
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-vfs2?expand=0&rev=4
2025-03-26 20:18:03 +00:00
f4acd49679 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-vfs2?expand=0&rev=13 2025-03-25 11:19:42 +00:00
f20c268c92 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-vfs2?expand=0&rev=12 2025-03-24 16:57:34 +00:00
b2e29b41c2 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-vfs2?expand=0&rev=11 2025-03-24 16:28:28 +00:00
1782bf6384 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-vfs2?expand=0&rev=10 2025-03-24 13:53:19 +00:00
66b7486f78 Accepting request 1205239 from Java:packages
Spec file cleanup

OBS-URL: https://build.opensuse.org/request/show/1205239
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-vfs2?expand=0&rev=3
2024-10-03 16:00:15 +00:00
5c7139df31 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-vfs2?expand=0&rev=8 2024-10-02 15:33:50 +00:00
037faead42 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-vfs2?expand=0&rev=7 2024-09-30 04:14:06 +00:00
b99e966cac OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-vfs2?expand=0&rev=6 2024-09-30 04:13:36 +00:00
5 changed files with 72 additions and 67 deletions

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Tue Mar 25 11:15:55 UTC 2025 - Fridrich Strba <fstrba@suse.com>
- Upgrade to upstream version 2.10.0
* Fixes bsc#1239973, CVE-2025-27553: Possible path traversal
issue when using NameScope.DESCENDENT
* Fixes bsc#1239974, CVE-2025-30474: Failing to find an FTP file
can reveal the URI's password in an error message
* For detailed list of all changes, see RELEASE-NOTES.txt file
distributed with the package
-------------------------------------------------------------------
Wed Oct 2 15:33:47 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Spec file cleanup
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 25 15:51:45 UTC 2023 - Fridrich Strba <fstrba@suse.com> Wed Oct 25 15:51:45 UTC 2023 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file # spec file for package apache-commons-vfs2
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,41 +18,40 @@
%global base_name vfs2 %global base_name vfs2
%global short_name commons-%{base_name} %global short_name commons-%{base_name}
%bcond_with tests %bcond_with cifs
%bcond_with hadoop %bcond_with mina
%bcond_without ftp
%bcond_without ssh %bcond_without ssh
Name: apache-%{short_name} Name: apache-%{short_name}
Version: 2.2 Version: 2.10.0
Release: 0 Release: 0
Summary: Commons Virtual File System Summary: Commons Virtual File System
License: Apache-2.0 License: Apache-2.0
Group: Development/Libraries/Java Group: Development/Libraries/Java
URL: http://commons.apache.org/vfs/ URL: https://commons.apache.org/vfs/
Source0: http://www.apache.org/dist/commons/vfs/source/%{short_name}-distribution-%{version}-src.tar.gz Source0: https://archive.apache.org/dist/commons/vfs/source/commons-vfs-%{version}-src.tar.gz
Source1: %{short_name}-build.tar.xz Source1: %{short_name}-build.tar.xz
BuildRequires: ant BuildRequires: ant
BuildRequires: apache-commons-collections4 BuildRequires: apache-commons-collections4
BuildRequires: apache-commons-compress BuildRequires: apache-commons-compress
BuildRequires: apache-commons-httpclient BuildRequires: apache-commons-httpclient
BuildRequires: apache-commons-io
BuildRequires: apache-commons-lang3
BuildRequires: apache-commons-logging BuildRequires: apache-commons-logging
BuildRequires: apache-commons-net > 2 BuildRequires: apache-commons-net > 2
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: javapackages-local BuildRequires: httpcomponents-client
Requires: mvn(commons-logging:commons-logging) BuildRequires: httpcomponents-core
BuildRequires: javapackages-local >= 6
BuildArch: noarch BuildArch: noarch
%if %{with hadoop} %if %{with cifs}
BuildRequires: mvn(org.apache.hadoop:hadoop-common) BuildRequires: jcifs
BuildRequires: mvn(org.apache.hadoop:hadoop-hdfs) %endif
%if %{with mina}
BuildRequires: mvn(org.apache.mina:mina-core)
%endif %endif
%if %{with ssh} %if %{with ssh}
BuildRequires: jsch BuildRequires: jsch
%endif %endif
%if %{with ftp}
%if %{with tests}
BuildRequires: mvn(org.apache.ftpserver:ftpserver-core)
%endif
%endif
%description %description
Commons VFS provides a single API for accessing various Commons VFS provides a single API for accessing various
@@ -99,68 +98,58 @@ This package contains javadoc for %{name}.
%prep %prep
%setup -q -n commons-vfs-%{version} -a1 %setup -q -n commons-vfs-%{version} -a1
%pom_remove_plugin :apache-rat-plugin
# Convert from dos to unix line ending
for file in LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt; do
sed -i.orig 's|\r||g' $file
touch -r $file.orig $file
rm $file.orig
done
# Disable unwanted module # Disable unwanted module
%pom_disable_module commons-vfs2-distribution %pom_disable_module commons-vfs2-distribution
# Fix ant gId # Fix ant gId
%pom_change_dep -r :ant org.apache.ant: %pom_change_dep -r :ant org.apache.ant:
# Upadate bouncycastle aId
%pom_change_dep -r :bcprov-jdk16 :bcprov-jdk15on
# Remove unwanted dependency jackrabbit-{standalone,webdav} # Remove webdav client
%pom_remove_dep -r org.apache.jackrabbit: %pom_remove_dep -r org.apache.jackrabbit:
%pom_disable_module commons-vfs2-jackrabbit1
%pom_disable_module commons-vfs2-jackrabbit2
rm -rf commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/webdav # Remove http5 client
%pom_remove_dep -r org.apache.httpcomponents.client5:httpclient5
# Use old version of sshd-core rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/http5
%pom_remove_dep -r :sshd-core rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/http5s
# hadoop has been retired
%if %{without hadoop}
%pom_remove_dep -r org.apache.hadoop
rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/hdfs
%endif
# not really needed
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :findbugs-maven-plugin
%if %{without ssh}
%pom_remove_dep -r :jsch
rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/sftp
rm commons-vfs2-examples/src/main/java/org/apache/commons/vfs2/libcheck/SftpCheck.java
%endif
# ftpserver is not available
%if %{without ftp} %if %{without ftp}
%pom_remove_dep -r :ftpserver-core %pom_remove_dep -r :ftpserver-core
rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/ftps rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/ftps
%endif %endif
%pom_remove_parent commons-vfs2 commons-vfs2-examples # jcifs not packaged and also export controlled in the US
%if %{without cifs}
%pom_remove_dep :jcifs
%endif
# mina is not available
%if %{without mina}
%pom_remove_dep :mina-core
%endif
%build %build
mkdir -p lib mkdir -p lib
build-jar-repository -s lib ant commons-httpclient commons-logging commons-compress commons-collections4 commons-net build-jar-repository -s lib \
%if %{with hadoop} ant \
build-jar-repository -s lib hadoop/common hadoop/hdfs commons-collections4 \
%endif commons-compress \
commons-httpclient \
commons-io \
commons-lang3 \
commons-logging \
commons-net \
httpcomponents/httpclient \
httpcomponents/httpcore
%if %{with ssh} %if %{with ssh}
build-jar-repository -s lib jsch build-jar-repository -s lib \
jsch
%endif %endif
%{ant} \ ant \
%if %{without tests}
-Dtest.skip=true \ -Dtest.skip=true \
%endif
package javadoc package javadoc
%install %install
@@ -172,9 +161,9 @@ install -pm 0644 %{short_name}-examples/target/%{short_name}-examples-%{version}
ln -sf %{short_name}-examples.jar %{buildroot}%{_javadir}/%{name}-examples.jar ln -sf %{short_name}-examples.jar %{buildroot}%{_javadir}/%{name}-examples.jar
# poms # poms
install -dm 0755 %{buildroot}%{_mavenpomdir} install -dm 0755 %{buildroot}%{_mavenpomdir}
install -pm 0644 %{short_name}/pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom %{mvn_install_pom} %{short_name}/pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom
%add_maven_depmap %{short_name}.pom %{short_name}.jar %add_maven_depmap %{short_name}.pom %{short_name}.jar
install -pm 0644 %{short_name}-examples/pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}-examples.pom %{mvn_install_pom} %{short_name}-examples/pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}-examples.pom
%add_maven_depmap %{short_name}-examples.pom %{short_name}-examples.jar -f examples %add_maven_depmap %{short_name}-examples.pom %{short_name}-examples.jar -f examples
# javadoc # javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/%{short_name}-examples install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/%{short_name}-examples
@@ -187,7 +176,7 @@ echo "ant commons-logging commons-vfs" > commons-vfs
install -p -m 644 commons-vfs %{buildroot}%{_sysconfdir}/ant.d/commons-vfs install -p -m 644 commons-vfs %{buildroot}%{_sysconfdir}/ant.d/commons-vfs
%files -f .mfiles %files -f .mfiles
%doc README.txt RELEASE-NOTES.txt %doc README.md RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt %license LICENSE.txt NOTICE.txt
%{_javadir}/%{name}.jar %{_javadir}/%{name}.jar

BIN
commons-vfs-2.10.0-src.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
commons-vfs2-build.tar.xz (Stored with Git LFS)

Binary file not shown.

BIN
commons-vfs2-distribution-2.2-src.tar.gz (Stored with Git LFS)

Binary file not shown.