Bug 2540984

Summary: perl-Dancer2-Plugin-REST-1.03-2.fc46 FTBFS: Failed test 'headers have content_type set to (?^:text/x-data-dumper)'
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Dancer2-Plugin-RESTAssignee: Emmanuel Seyman <emmanuel>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: emmanuel, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2503726    

Description Petr Pisar 2026-09-25 07:54:25 UTC
perl-Dancer2-Plugin-REST-1.03-2.fc46 fails to build in Fedora 46 because a test fails:

    # Failed test 'headers have content_type set to (?^:text/x-data-dumper)'
    # at t/02_prepare_serializer_for_format.t line 80.
    # +------------------+----+-------------------------+
    # | GOT              | OP | CHECK                   |
    # +------------------+----+-------------------------+
    # | application/json | =~ | (?^:text/x-data-dumper) |
    # +------------------+----+-------------------------+
    (If this table is too small, you can use the TABLE_TERM_SIZE=### env var to set a larger size, detected size is '74')
    
    # Failed test '$data has been encoded'
    # at t/02_prepare_serializer_for_format.t line 88.
    # +--------------+----+-------------------------+
    # | GOT          | OP | CHECK                   |
    # +--------------+----+-------------------------+
    # | {"foo":"42"} | eq | $VAR1 = {\n             |
    # |              |    |           'foo' => 42\n |
    # |              |    |         };\n            |
    # +--------------+----+-------------------------+
    (If this table is too small, you can use the TABLE_TERM_SIZE=### env var to set a larger size, detected size is '74')
    
# Failed test 'Subtest: (?^:text/x-data-dumper)'
# at t/02_prepare_serializer_for_format.t line 69.
# Looks like you failed 1 test of 6.
Failed 1/9 test programs. 1/44 subtests failed.

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/24037604>. The failure is triggered by upgrading perl-Dancer2 from 0:2.1.0-3.fc46 to 0:2.2.1-1.fc46.