Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAIL: test_single_namespace_single_path_leaf_names #67

Closed
danstender opened this issue Jan 19, 2017 · 5 comments
Closed

FAIL: test_single_namespace_single_path_leaf_names #67

danstender opened this issue Jan 19, 2017 · 5 comments

Comments

@danstender
Copy link

Hi,
we've got a test failure here in the Debian package:

======================================================================
FAIL: test_single_namespace_single_path_leaf_names (test.test_exempi.TestIteration)
Get just leaf names from a single path, single namespace.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<BUILDDIR>>/python-xmp-toolkit-2.0.1+git20140309.5437b0a/test/test_exempi.py", line 546, in test_single_namespace_single_path_leaf_names
    self.assertEqual(schemas, [NS_DC, NS_DC, NS_DC])
AssertionError: Lists differ: [u'http://purl.org/dc/elements... != ['http://purl.org/dc/elements/...

First differing element 1:
u''
'http://purl.org/dc/elements/1.1/'

- [u'http://purl.org/dc/elements/1.1/',
?  -

+ ['http://purl.org/dc/elements/1.1/',
-  u'',
-  u'http://www.w3.org/XML/1998/namespace']
+  'http://purl.org/dc/elements/1.1/',
+  'http://purl.org/dc/elements/1.1/']

----------------------------------------------------------------------
Ran 73 tests in 1.150s

FAILED (failures=1, skipped=3)

Buildlog: http://aws-logs.debian.net/2017/01/11/python-xmp-toolkit_2.0.1+git20140309.5437b0a-3_unstable.log
DS

@quintusdias
Copy link
Contributor

quintusdias commented Jan 20, 2017 via email

@hfiguiere
Copy link
Contributor

In Exempi 2.4.0 it return the following schemas: ['http://purl.org/dc/elements/1.1/', '', 'http://www.w3.org/XML/1998/namespace'] which looks what I'd expect. I'll check the difference between 2.3.0 and 2.4.0: the Adobe SDK version changed. Bonus: I'll add that to the exempi test suite.

Exempi bug is https://bugs.freedesktop.org/show_bug.cgi?id=99480

@hfiguiere
Copy link
Contributor

The change was introduced by Adobe in the "CS6" SDK. This is hfiguiere/exempi@81a4c6bc , in XMPCore/source/XMPIterator.cpp:573 which happened between 2.3.0 and 2.4.0

  • This actually fix a bug. (I found the expected values before to not be the right one)
  • This also (IMHO) break API/ABI since we no longer get the same result. Not sure what's the best approach, and I think fixing the buggy behaviour is more important.

@hfiguiere
Copy link
Contributor

I'll submit a fix to the test suite.

hfiguiere added a commit to hfiguiere/python-xmp-toolkit that referenced this issue Jan 22, 2017
hfiguiere added a commit to hfiguiere/python-xmp-toolkit that referenced this issue Jan 22, 2017
@danstender
Copy link
Author

danstender commented Jan 26, 2017 via email

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Jun 5, 2019
2.5.0 - 2019/01/06

- Upgrade XMPCore to Adobe XMP SDK CC 2016.07
  - Support for iOS in XMPFiles
  - New DOM based API’s are added in XMP Core to access metadata tree
    hierarchy. (not exposed yet in Exempi)
  - Added support XMP/metadata in utf-8 encoded uncompressed SVG files in XMPFiles.
  - Added support of GIF handler in XMPFiles.
  - Added support for reconciliation of iXML’s TRACK_LIST and its components to get
    microphone data.
  - Added support for IFDs of type 13 in TIFF.
  - Added support for MPEG4 videos shot from Google Nexus 5 camera.
  - Restructured the implementation of XDCAM Handler to support File Access Mode (FAM)
    and Simple Access Mode (SAM)
  - Added built-in support for iXML namespace in XMPCore.
  - Modified the alias tiff:ImageDescription for dc:description as language alternative
    array instead of simple property.
  - Lot of bug fixes in XMPFiles and XMPCore.
- Removed Exempi provided support for GIF in favour of Adobe's.

- New: API NS_XML constant

- Bug #5: Restrict the exported symbols. Only the symbols marked with API_EXPORT
  are exported by the shared library as to not allow another library to import the XMP
  SDK symbols.
  https://gitlab.freedesktop.org/libopenraw/exempi/issues/5
- Bug #105580: Access memory aligned on ARM.
  https://bugs.freedesktop.org/show_bug.cgi?id=105580

Internal:

- Added tests for Adobe SDK.
- Fixed warnings and other issues and Adobe SDK.
- Compile with much more warnings enabled.

2.4.5 - 2018/03/07

- Bug #105204: [CVE-2018-7730] fix a buffer overflow in the PSD parser.
- Bug #105205: [CVE-2018-7728] fix a buffer overflow in the TIFF parser.
- Bug #105206: [CVE-2018-7729] fix a buffer overflow in PostScript parser.
- Bug #105247: [CVE-2018-7731] fix a null dereference in WEBP parser.

2.4.4 - 2018/02/04

- Bug #102197: Properly initialize pointers in WEBP.
- Bug #102151: Fix an infinite loop in RIFF parser.
- Bug #102483: Fix an infinite loop in QuickTime parser.
- Bug #102484: Fix an infinite loop in ASF parser.
- Bug #104885: Adjust minimum version for gcc in documentation.

2.4.3 - 2017/08/03

- Bug #100397: Fix a buffer overrun, memcpy() on overlapping
  regions, use after free in the exception handling.
- Bug #101913: Fix a fatal assert with corrupt WEBP.
- Bug #101914: Fix a crash on a corrupt file.

2.4.2 - 2017/01/29

- Properly define BanAllEntityUsage.
  See https://bugzilla.redhat.com/show_bug.cgi?id=888765

2.4.1 - 2017/01/23

- Bug #99494: Restore error reporting.

Internal:

- Added test for xmp_parse()
- Renamed test3 to testiterator and more comprehensive test for
  iterator to detect thing like bug 99480

Release notes:

- In 2.4.0 the XMP iterator corrected behaviour when used for
  XMP_ITER_JUSTLEAFNAME: The returned values are now set to they
  actual schema NS instead of the top level one.
  This required fixed in third party packages:
  python-xmp-toolkit/python-xmp-toolkit#67
  This changes is the result of a bug fix in Adobe SDK.
  See bug #99480

2.4.0 - 2017/01/07

- Bug #89449: Upgrade XMPCore to Adobe XMP CC 2014.12.
  - New flag to optimize layout on MPEG4 files.
  - GoPro MPEG4 video files support.
  - Improved JPEG support.
  - iXML support in WAVE files.
  - Several bugs and memory leaks fixes.
  - Changes from Adobe XMP CC 2013.06.
    - Pluggable file handlers (not exposed yet in Exempi)
    - Support for Exif 2.3 properties
    - New RIFF file handler
    - Better Postscript support.
    - Lot of bug fixes.
- New API: added XMP_OPEN_OPTIMIZEFILELAYOUT for new SDK.
- Now require (partial) C++11 support to compile (gcc 4.4.7 tested)
- New: WebP format handler (contributed: Frankie Dintino, The Atlantic)

Internal:

- Exempi is now automatically build and the test run by Travis CI.
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this issue Jul 17, 2021
2.5.0

- Upgrade XMPCore to Adobe XMP SDK CC 2016.07
  - Support for iOS in XMPFiles
  - New DOM based API’s are added in XMP Core to access metadata tree
    hierarchy. (not exposed yet in Exempi)
  - Added support XMP/metadata in utf-8 encoded uncompressed SVG files in XMPFiles.
  - Added support of GIF handler in XMPFiles.
  - Added support for reconciliation of iXML’s TRACK_LIST and its components to get
    microphone data.
  - Added support for IFDs of type 13 in TIFF.
  - Added support for MPEG4 videos shot from Google Nexus 5 camera.
  - Restructured the implementation of XDCAM Handler to support File Access Mode (FAM)
    and Simple Access Mode (SAM)
  - Added inbuilt support for iXML namespace in XMPCore.
  - Modified the alias tiff:ImageDescription for dc:description as language alternative
    array instead of simple property.
  - Lot of bug fixes in XMPFiles and XMPCore.
- Removed Exempi provided support for GIF in favour of Adobe's.
- New: API NS_XML constant

Internal:

- Added tests for Adobe SDK.
- Fixed warnings and other issues and Adobe SDK.
- Compile with much more warnings enabled.

2.4.5 - 2018/03/07

- Bug #105204: [CVE-2018-7730] fix a buffer overflow in the PSD parser.
- Bug #105205: [CVE-2018-7728] fix a buffer overflow in the TIFF parser.
- Bug #105206: [CVE-2018-7729] fix a buffer overflow in PostScript parser.
- Bug #105247: [CVE-2018-7731] fix a null dereference in WEBP parser.

2.4.4 - 2018/02/04

- Bug #102197: Properly initialize pointers in WEBP.
- Bug #102151: Fix an infinite loop in RIFF parser.
- Bug #102483: Fix an infinite loop in QuickTime parser.
- Bug #102484: Fix an infinite loop in ASF parser.
- Bug #104885: Adjust minimum version for gcc in documentation.

2.4.3 - 2017/08/03

- Bug #100397: Fix a buffer overrun, memcpy() on overlapping
  regions, use after free in the exception handling.
- Bug #101913: Fix a fatal assert with corrupt WEBP.
- Bug #101914: Fix a crash on a corrupt file.

2.4.2 - 2017/01/29

- Properly define BanAllEntityUsage.
  See https://bugzilla.redhat.com/show_bug.cgi?id=888765

2.4.1 - 2017/01/23

- Bug #99494: Restore error reporting.

Internal:

- Added test for xmp_parse()
- Renamed test3 to testiterator and more comprehensive test for
  iterator to detect thing like bug 99480

Release notes:

- In 2.4.0 the XMP iterator corrected behaviour when used for
  XMP_ITER_JUSTLEAFNAME: The returned values are now set to they
  actual schema NS instead of the top level one.
  This required fixed in third party packages:
  python-xmp-toolkit/python-xmp-toolkit#67
  This changes is the result of a bug fix in Adobe SDK.
  See bug #99480

2.4.0 - 2017/01/07

- Bug #89449: Upgrade XMPCore to Adobe XMP CC 2014.12.
  - New flag to optimize layout on MPEG4 files.
  - GoPro MPEG4 video files support.
  - Improved JPEG support.
  - iXML support in WAVE files.
  - Several bugs and memory leaks fixes.
  - Changes from Adobe XMP CC 2013.06.
    - Pluggable file handlers (not exposed yet in Exempi)
    - Support for Exif 2.3 properties
    - New RIFF file handler
    - Better Postscript support.
    - Lot of bug fixes.
- New API: added XMP_OPEN_OPTIMIZEFILELAYOUT for new SDK.
- Now require (partial) C++11 support to compile (gcc 4.4.7 tested)
- New: WebP format handler (contributed: Frankie Dintino, The Atlantic)

Internal:

- Exempi is now automatically build and the test run by Travis CI.

2.3.0 - 2016/03/15

- New: API xmp_datetime_compare().
- New: API xmp_string_len() to get the length of the XmpString.
- Bug #94065:
  - New: API xmp_files_can_put_xmp_xmpstring() and xmp_files_can_put_xmp_cstr()
    variants.
  - New: API xmp_files_put_xmp_xmpstring() and xmp_files_put_xmp_cstr()
    variants.
  - New: API xmp_files_get_xmp_xmpstring() variant.
  - Test: check the status of the PDF handler.
- Bug #90380: Fix potential crash with corrupt TIFF file.
- Bug #14612: Better Solaris compilation fix.
- Fix header to pass -Wstrict-prototypes
evadot pushed a commit to evadot/freebsd-ports that referenced this issue Jul 22, 2021
2.5.0

- Upgrade XMPCore to Adobe XMP SDK CC 2016.07
  - Support for iOS in XMPFiles
  - New DOM based API’s are added in XMP Core to access metadata tree
    hierarchy. (not exposed yet in Exempi)
  - Added support XMP/metadata in utf-8 encoded uncompressed SVG files in XMPFiles.
  - Added support of GIF handler in XMPFiles.
  - Added support for reconciliation of iXML’s TRACK_LIST and its components to get
    microphone data.
  - Added support for IFDs of type 13 in TIFF.
  - Added support for MPEG4 videos shot from Google Nexus 5 camera.
  - Restructured the implementation of XDCAM Handler to support File Access Mode (FAM)
    and Simple Access Mode (SAM)
  - Added inbuilt support for iXML namespace in XMPCore.
  - Modified the alias tiff:ImageDescription for dc:description as language alternative
    array instead of simple property.
  - Lot of bug fixes in XMPFiles and XMPCore.
- Removed Exempi provided support for GIF in favour of Adobe's.
- New: API NS_XML constant

Internal:

- Added tests for Adobe SDK.
- Fixed warnings and other issues and Adobe SDK.
- Compile with much more warnings enabled.

2.4.5 - 2018/03/07

- Bug #105204: [CVE-2018-7730] fix a buffer overflow in the PSD parser.
- Bug #105205: [CVE-2018-7728] fix a buffer overflow in the TIFF parser.
- Bug #105206: [CVE-2018-7729] fix a buffer overflow in PostScript parser.
- Bug #105247: [CVE-2018-7731] fix a null dereference in WEBP parser.

2.4.4 - 2018/02/04

- Bug #102197: Properly initialize pointers in WEBP.
- Bug #102151: Fix an infinite loop in RIFF parser.
- Bug #102483: Fix an infinite loop in QuickTime parser.
- Bug #102484: Fix an infinite loop in ASF parser.
- Bug #104885: Adjust minimum version for gcc in documentation.

2.4.3 - 2017/08/03

- Bug #100397: Fix a buffer overrun, memcpy() on overlapping
  regions, use after free in the exception handling.
- Bug #101913: Fix a fatal assert with corrupt WEBP.
- Bug #101914: Fix a crash on a corrupt file.

2.4.2 - 2017/01/29

- Properly define BanAllEntityUsage.
  See https://bugzilla.redhat.com/show_bug.cgi?id=888765

2.4.1 - 2017/01/23

- Bug #99494: Restore error reporting.

Internal:

- Added test for xmp_parse()
- Renamed test3 to testiterator and more comprehensive test for
  iterator to detect thing like bug 99480

Release notes:

- In 2.4.0 the XMP iterator corrected behaviour when used for
  XMP_ITER_JUSTLEAFNAME: The returned values are now set to they
  actual schema NS instead of the top level one.
  This required fixed in third party packages:
  python-xmp-toolkit/python-xmp-toolkit#67
  This changes is the result of a bug fix in Adobe SDK.
  See bug #99480

2.4.0 - 2017/01/07

- Bug #89449: Upgrade XMPCore to Adobe XMP CC 2014.12.
  - New flag to optimize layout on MPEG4 files.
  - GoPro MPEG4 video files support.
  - Improved JPEG support.
  - iXML support in WAVE files.
  - Several bugs and memory leaks fixes.
  - Changes from Adobe XMP CC 2013.06.
    - Pluggable file handlers (not exposed yet in Exempi)
    - Support for Exif 2.3 properties
    - New RIFF file handler
    - Better Postscript support.
    - Lot of bug fixes.
- New API: added XMP_OPEN_OPTIMIZEFILELAYOUT for new SDK.
- Now require (partial) C++11 support to compile (gcc 4.4.7 tested)
- New: WebP format handler (contributed: Frankie Dintino, The Atlantic)

Internal:

- Exempi is now automatically build and the test run by Travis CI.

2.3.0 - 2016/03/15

- New: API xmp_datetime_compare().
- New: API xmp_string_len() to get the length of the XmpString.
- Bug #94065:
  - New: API xmp_files_can_put_xmp_xmpstring() and xmp_files_can_put_xmp_cstr()
    variants.
  - New: API xmp_files_put_xmp_xmpstring() and xmp_files_put_xmp_cstr()
    variants.
  - New: API xmp_files_get_xmp_xmpstring() variant.
  - Test: check the status of the PDF handler.
- Bug #90380: Fix potential crash with corrupt TIFF file.
- Bug #14612: Better Solaris compilation fix.
- Fix header to pass -Wstrict-prototypes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants