Skip Menu |
 

This queue is for tickets about the Template-Extract CPAN distribution.

Report information
The Basics
Id: 129541
Status: new
Priority: 0/
Queue: Template-Extract

People
Owner: Nobody in particular
Requestors: jacklangsdorf [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, score=-0.54 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RDNS_NONE=0.793, SPF_SOFTFAIL=0.665] autolearn=no
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
Content-Type: multipart/mixed; boundary="000000000000d14ff40588a7781c"
Message-ID: <CAK_WbYjAFnD5-K57cqWTUt4mvc-d3UsUQyf4aHVJFoDDWQwvSw [...] mail.gmail.com>
X-Received: by 2002:a5d:4fd2:: with SMTP id h18mr13253269wrw.117.1557627751442; Sat, 11 May 2019 19:22:31 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -0.54
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 4E8AA2401C9 for <cpan-bug+Template-Extract [...] hipster.bestpractical.com>; Sat, 11 May 2019 22:22:45 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WELZuC90bVSQ for <cpan-bug+Template-Extract [...] hipster.bestpractical.com>; Sat, 11 May 2019 22:22:44 -0400 (EDT)
Received: from xx1.develooper.com (unknown [147.75.38.233]) by hipster.bestpractical.com (Postfix) with ESMTPS id 336C52400A4 for <bug-Template-Extract [...] rt.cpan.org>; Sat, 11 May 2019 22:22:44 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id E79417CF52 for <bug-Template-Extract [...] rt.cpan.org>; Sat, 11 May 2019 19:22:42 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id C663B7C100 for <bug-Template-Extract [...] rt.cpan.org>; Sat, 11 May 2019 19:22:41 -0700 (PDT)
Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id EA0027CF52 for <bug-Template-Extract [...] rt.cpan.org>; Sat, 11 May 2019 19:22:31 -0700 (PDT)
Received: by mail-wr1-f50.google.com with SMTP id f8so1882310wrt.1 for <bug-Template-Extract [...] rt.cpan.org>; Sat, 11 May 2019 19:22:32 -0700 (PDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
X-Google-SMTP-Source: APXvYqw2jV+hc78N43LBOx5BBjnVUMH67VZj2zAZqgSLbyl8By+EK2JeSv/JYU+7RDeO/OO9RA0DXNit1twEh84xFoA=
Delivered-To: cpan-bug+Template-Extract [...] hipster.bestpractical.com
Subject: bug: error with backreferences
Return-Path: <jacklangsdorf [...] gmail.com>
X-RT-Mail-Extension: template-extract
X-Original-To: cpan-bug+Template-Extract [...] hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=7eHyFy30rR5+0iqaIViXuH3FeXlWUsx/O24oaZKRvF4=; b=GjoBlE+tSpfRbAPHj0aN1X3k3JZnpbBwxvw/bIUIwQW5GIgLuiqdkLIVed2HWyR+aZ dgjdK7aKKQVSN6yl4qG4KpDHPiFeZ85/SvABoNP1No9oD2Gl8GMWfrDd8H3Qqq/HZeJJ 48lcS2Am54tMjDSFxVRkVn8Sx5inHokKp5JY8BnwkwKhkgJJWzrl1u0fuj1ZIznV8ADY 7ZxHm43jvKQR3cI1Mm6w5Yi8l1mJQikiRyhs0Y+rb4OodDxhyc9MBL00qr0a/7uBaEX3 z7RnrRCCqr/pwxPIXmURt9JKz8W+QQtVHso4t0vzJfcCcEvoIiI4XykKmCLFzJM+qOCV Nzgg==
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7eHyFy30rR5+0iqaIViXuH3FeXlWUsx/O24oaZKRvF4=; b=BALNdyiXxaUnwuNLzGv/3S4VAULQVSqiqNTdpirzy/RWg79ekIj8NpKkLKr53WhbaN obnTEEIvGcgxEVA+6rRcjLZ0S5FYfwPv277uyvPJjIT4o7lZ0UjHqlVFWzG2Nk08XeRn dKNSrPvhlwTwW3hyLwhboZtNffeEAJAgWjZTfEj2q3h07C4SPc0DY1qo9xGj17DNV6Fr n4eDFkKtj438KA/8A4oakqdvqL0Qfor2ryTzlcWTTXwywjewYfU4gVwRNd/ZpFIqYBXb pB+hytuCVg1HtaSlB5AJhuPyG+hB6CJpoPEKX8hhuIVYiZ6ycbk17u7bhqZn/y6hzBl/ Z5fg==
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_NO_HTTP 0.1, INVOICE_ATTACHMENT 0.1, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DATE_TZ_NA 0, DKIM_ALIGNS 0, DKIM_SIGNATURE 0, NO_CTA_URI_FOUND 0, NO_URI_FOUND 0, NO_URI_HTTPS 0, SPF_PASS 0, WEBMAIL_SOURCE 0, __BODY_TEXT_X4 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_MIXED 0, __DKIM_ALIGNS_1 0, __DKIM_ALIGNS_2 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __FUR_RDNS_GMAIL 0, __HAS_ATTACHMENT 0, __HAS_ATTACHMENT1 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HELO_GMAIL 0, __HEX28_LC_BOUNDARY 0, __HIGHBITS 0, __HTML_TAG_DIV 0, __INVOICE_MULTILINGUAL 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __PHISH_SPEAR_SUBJ_ALERT 0, __RDNS_WEBMAIL 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __X_GOOGLE_DKIM_SIGNATURE 0, __YOUTUBE_RCVD 0, __zen.spamhaus.org_ERROR '
Date: Sat, 11 May 2019 22:22:20 -0400
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2019.5.12.21516
To: bug-Template-Extract [...] rt.cpan.org
From: Jack Langsdorf <jacklangsdorf [...] gmail.com>
X-GM-Message-State: APjAAAXe63gR0KdiZ7KLjYz7+gEF/fTT1+J3pZ7EwZQvpB6HQtZegboQ sXG57FoK45xRNdrnLhCRtyHoWmsD2Ul+kR+/UQCEmruh
X-RT-Interface: Email
Content-Length: 0
Content-Type: multipart/alternative; boundary="000000000000d14ff10588a7781a"
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 825
Download (untitled) / with headers
text/plain 825b
Hello - I've found a bug in Template::Extract (using version 0.41; cpan says everything is up to date), where a value is returned that does not fit the template. The attached script demonstrates the error. The template used has one of its data fields more than once, and when some of the document looks like it fits the template in one place but actually fits in another (due to wildcards). Under some circumstances, it does not check using backreferences to make sure that the selected part of the document fits the template (i.e. that both instances of the data field match one another). Or it may be that it does check, but fails out and lands up returning the result anyway. I traced the error as far as Template/Extract/Run.pm sub _ext, but I don't understand what goes wrong at that point. - Jack Langsdorf
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1230
X-Attachment-ID: f_jvka3niv0
Content-Type: text/x-perl-script; charset="US-ASCII"; name="template_bug_demo.pl"
Content-Disposition: attachment; filename="template_bug_demo.pl"
Content-Transfer-Encoding: base64
Content-ID: <f_jvka3niv0>
X-RT-Original-Encoding: ascii
Content-Length: 632

Message body is not shown because sender requested not to inline it.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.