Bug 2124537 - perl-HTML-FormFu-Element-reCAPTCHA-1.00-25.fc38 FTBFS: t/recaptcha.t fails with perl-HTML-Tiny-1.07-1.fc38
Summary: perl-HTML-FormFu-Element-reCAPTCHA-1.00-25.fc38 FTBFS: t/recaptcha.t fails wi...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-HTML-Tiny
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Emmanuel Seyman
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F38FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-09-06 12:51 UTC by Petr Pisar
Modified: 2022-09-09 10:26 UTC (History)
4 users (show)

Fixed In Version: perl-HTML-Tiny-1.08-1.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-09 10:26:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2124499 0 unspecified CLOSED perl-Captcha-reCAPTCHA-0.99-6.fc38 FTBFS: t/10.get_html.t fails with perl-HTML-Tiny-1.07-1.fc38 2022-09-06 12:55:34 UTC

Description Petr Pisar 2022-09-06 12:51:59 UTC
perl-HTML-FormFu-Element-reCAPTCHA-1.00-25.fc38 fails to build in Fedora 38 because a test fails:

#   Failed test 'stringified form'
#   at t/recaptcha.t line 29.
#          got: '<form action="" method="post">
# <div>
# <span class="elements">
# <script type="text/javascript">
# //<![CDATA[
# var RecaptchaOptions = {};
# //]]>
# </script>
# <script src="http://www.google.com/recaptcha/api/challenge?k=xxx" type="text/javascript"></script>
# <noscript><iframe frameborder="0" height="300" src="http://www.google.com/recaptcha/api/noscript?k=xxx" width="500" /><textarea cols="40" name="recaptcha_challenge_field" rows="3"></textarea><input name="recaptcha_response_field" type="hidden" value="manual_challenge" /></noscript>
# </span>
# </div>
# </form>
# '
#     expected: '<form action="" method="post">
# <div>
# <span class="elements">
# <script type="text/javascript">
# //<![CDATA[
# var RecaptchaOptions = {};
# //]]>
# </script>
# <script src="http://www.google.com/recaptcha/api/challenge?k=xxx" type="text/javascript"></script>
# <noscript><iframe frameborder="0" height="300" src="http://www.google.com/recaptcha/api/noscript?k=xxx" width="500"></iframe><textarea cols="40" name="recaptcha_challenge_field" rows="3"></textarea><input name="recaptcha_response_field" type="hidden" value="manual_challenge" /></noscript>
# </span>
# </div>
# </form>
# '
# Looks like you failed 1 test of 1.
t/recaptcha.t .................. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

This is triggered by upgrading perl-HTML-Tiny from 1.05-40.fc37 to 1.07-1.fc38. The reason is that HTML-Tiny-1.07 changed a serialization of empty iframe elements to a single tag.

Comment 1 Petr Pisar 2022-09-06 12:55:35 UTC
For your reference, I fixed a similar issue in perl-Captcha-reCAPTCHA (bug #2124499).

Comment 2 Petr Pisar 2022-09-07 12:50:38 UTC
This will be probably fixed on HTML-Tiny side in 1.08 version.


Note You need to log in before you can comment on or make changes to this bug.