This commit is contained in:
Gwyn Ciesla 2022-11-10 10:29:06 -06:00
parent f9adca4528
commit 0d291f6ecf
3 changed files with 30 additions and 3 deletions

View File

@ -1 +1 @@
SHA512 (xmlgraphics-commons-2.7-src.tar.gz) = 7d3993fc920767512f94edef3342757f0ffc9c9dbad80695fe3d77b0ec162380d9b467682ae41238e7ee719601709edb41b2dab06c385dfd9fa898577d8d2c22
SHA512 (xmlgraphics-commons-2.8-src.tar.gz) = 3e6c397a7444c4ce1d1aeda96a7c9abfd3d8d57a0997d7d6ae2be36303dd17550b7b92fd86eac832566bbeefccdd06619e31c0d907cd6b953a8eb934d7fa618b

21
test.patch Normal file
View File

@ -0,0 +1,21 @@
--- xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/image/loader/CorruptImagesTestCase.java 2022/10/06 12:37:37 1904425
+++ xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/image/loader/CorruptImagesTestCase.java 2022/11/10 08:15:05 1905215
@@ -36,9 +36,14 @@
ImageSessionContext sessionContext = imageContext.newSessionContext();
ImageManager manager = imageContext.getImageManager();
-
- ImageInfo imageInfo = manager.preloadImage(uri, sessionContext);
- assertEquals(imageInfo.getMimeType(), "image/png");
+ try {
+ ImageInfo imageInfo = manager.preloadImage(uri, sessionContext);
+ //IOException should continue to raw png
+ assertEquals(imageInfo.getMimeType(), "image/png");
+ } catch (Exception e) {
+ //Otherwise should throw exception
+ assertEquals(e.getMessage(), "pos < flushedPos!");
+ }
}
}

View File

@ -1,12 +1,13 @@
Name: xmlgraphics-commons
Version: 2.7
Release: 4%{?dist}
Version: 2.8
Release: 1%{?dist}
Epoch: 0
Summary: XML Graphics Commons
License: ASL 2.0
URL: http://xmlgraphics.apache.org/
Source0: http://archive.apache.org/dist/xmlgraphics/commons/source/xmlgraphics-commons-%{version}-src.tar.gz
Patch0: test.patch
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
@ -37,6 +38,8 @@ This package contains API documentation for %{name}.
%prep
%setup -q %{name}-%{version}
%patch0 -p3
find -name "*.jar" -delete
# Disable plugins not needed for RPM build
@ -68,6 +71,9 @@ find -name "*.jar" -delete
%license LICENSE NOTICE
%changelog
* Wed Nov 09 2022 Gwyn Ciesla <gwync@protonmail.com> - 0:2.8-1
- 2.8
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild