[Koha-bugs] [Bug 17704] Fix OAI breakage when using HTTP::OAI 4.03+

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 10 14:07:46 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17704

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #36 from Kyle M Hall <kyle at bywatersolutions.com> ---
Unit test failures. Please let me know if it just that I'm doing something
wrong. I install HTTP::OAI 4.12 before running the tests.

t/db_dependent/OAI/Server.t ... 13/34
#   Failed test 'ListMetadataFormats'
#   at t/db_dependent/OAI/Server.t line 184.
# Comparing hash keys of $data
# Missing: 'request'
# PARAM:---
# verb: ListMetadataFormats
# EXPECTED:---
# ListMetadataFormats:
#   metadataFormat:
#   - metadataNamespace: http://www.openarchives.org/OAI/2.0/oai_dc/
#     metadataPrefix: oai_dc
#     schema: http://www.openarchives.org/OAI/2.0/oai_dc.xsd
#   - metadataNamespace: http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim
#     metadataPrefix: marc21
#     schema: http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
#   - metadataNamespace: http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim
#     metadataPrefix: marcxml
#     schema: http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
# request: http://localhost
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd
# RESPONSE:---
# ListMetadataFormats:
#   metadataFormat:
#   - metadataNamespace: http://www.openarchives.org/OAI/2.0/oai_dc/
#     metadataPrefix: oai_dc
#     schema: http://www.openarchives.org/OAI/2.0/oai_dc.xsd
#   - metadataNamespace: http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim
#     metadataPrefix: marc21
#     schema: http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
#   - metadataNamespace: http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim
#     metadataPrefix: marcxml
#     schema: http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd

#   Failed test 'ListIdentifiers without metadataPrefix'
#   at t/db_dependent/OAI/Server.t line 184.
# Comparing hash keys of $data
# Missing: 'error', 'request'
# PARAM:---
# verb: ListIdentifiers
# EXPECTED:---
# error:
#   code: badArgument
#   content: Required argument 'metadataPrefix' was undefined
# request: http://localhost
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd
# RESPONSE:---
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd

#   Failed test 'ListIdentifiers'
#   at t/db_dependent/OAI/Server.t line 184.
# Comparing hash keys of $data
# Missing: 'request'
# PARAM:---
# metadataPrefix: marcxml
# verb: ListIdentifiers
# EXPECTED:---
# ListIdentifiers:
#   header:
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:483
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:484
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:485
#   resumptionToken:
#     content: !!perl/hash:Test::Deep::Regexp
#       val: !!perl/regexp (?^u:^marcxml/3////0/0/\d+$)
#     cursor: 3
# request: http://localhost
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd
# RESPONSE:---
# ListIdentifiers:
#   header:
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:483
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:484
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:485
#   resumptionToken:
#     content: marcxml/3////0/0/486
#     cursor: '3'
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd

#   Failed test 'ListIdentifiers'
#   at t/db_dependent/OAI/Server.t line 184.
# Comparing hash keys of $data
# Missing: 'request'
# PARAM:---
# metadataPrefix: marcxml
# verb: ListIdentifiers
# EXPECTED:---
# ListIdentifiers:
#   header:
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:483
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:484
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:485
#   resumptionToken:
#     content: !!perl/hash:Test::Deep::Regexp
#       val: !!perl/regexp (?^u:^marcxml/3////0/0/\d+$)
#     cursor: 3
# request: http://localhost
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd
# RESPONSE:---
# ListIdentifiers:
#   header:
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:483
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:484
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:485
#   resumptionToken:
#     content: marcxml/3////0/0/486
#     cursor: '3'
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd

#   Failed test 'ListIdentifiers with resumptionToken 1'
#   at t/db_dependent/OAI/Server.t line 184.
# Comparing hash keys of $data
# Missing: 'request'
# PARAM:---
# resumptionToken: marcxml/3/1970-01-01T00:00:00Z/2023-03-10T23:59:59Z//0/0/486
# verb: ListIdentifiers
# EXPECTED:---
# ListIdentifiers:
#   header:
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:486
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:487
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:488
#   resumptionToken:
#     content: !!perl/hash:Test::Deep::Regexp
#       val: !!perl/regexp
(?^u:^marcxml/6/1970-01-01T00:00:00Z/2023-03-10T23:59:59Z//0/0/\d+$)
#     cursor: 6
# request: http://localhost
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd
# RESPONSE:---
# ListIdentifiers:
#   header:
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:486
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:487
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:488
#   resumptionToken:
#     content: marcxml/6/1970-01-01T00:00:00Z/2023-03-10T23:59:59Z//0/0/489
#     cursor: '6'
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd

#   Failed test 'ListIdentifiers with resumptionToken 2'
#   at t/db_dependent/OAI/Server.t line 184.
# Comparing hash keys of $data
# Missing: 'request'
# PARAM:---
# resumptionToken: marcxml/6/1970-01-01T00:00:00Z/2023-03-10T23:59:59Z//0/0/489
# verb: ListIdentifiers
# EXPECTED:---
# ListIdentifiers:
#   header:
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:489
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:490
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:491
#   resumptionToken:
#     content: !!perl/hash:Test::Deep::Regexp
#       val: !!perl/regexp
(?^u:^marcxml/9/1970-01-01T00:00:00Z/2023-03-10T23:59:59Z//0/0/\d+$)
#     cursor: 9
# request: http://localhost
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd
# RESPONSE:---
# ListIdentifiers:
#   header:
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:489
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:490
#   - datestamp: 2023-03-10T13:04:26Z
#     identifier: TEST:491
#   resumptionToken:
#     content: marcxml/9/1970-01-01T00:00:00Z/2023-03-10T23:59:59Z//0/0/492
#     cursor: '9'
# xmlns: http://www.openarchives.org/OAI/2.0/
# xmlns:xsi: http://www.w3.org/2001/XMLSchema-instance
# xsi:schemaLocation: http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd
Can't locate object method "generate" via package
"marcxml/9/1970-01-01T00:00:00Z/2023-03-10T23:59:59Z//0/0/492" (perhaps you
forgot to load "marcxml/9/1970-01-01T00:00:00Z/2023-03-10T23:59:59Z//0/0/492"?)
at /usr/local/share/perl/5.32.1/HTTP/OAI/PartialList.pm line 30.
# Looks like your test exited with 11 just after 18.
t/db_dependent/OAI/Server.t ... Dubious, test returned 11 (wstat 2816, 0xb00)
Failed 22/34 subtests
t/db_dependent/OAI/Sets.t ..... ok

Test Summary Report
-------------------
t/db_dependent/OAI/Server.t (Wstat: 2816 Tests: 18 Failed: 6)
  Failed tests:  13-18
  Non-zero exit status: 11
  Parse errors: Bad plan.  You planned 34 tests but ran 18.
Files=3, Tests=175,  3 wallclock secs ( 0.02 usr  0.00 sys +  2.44 cusr  0.21
csys =  2.67 CPU)
Result: FAIL

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list