Skip Menu |
 

This queue is for tickets about the Path-Ancestor CPAN distribution.

Report information
The Basics
Id: 122341
Status: new
Priority: 0/
Queue: Path-Ancestor

People
Owner: Nobody in particular
Requestors: jan.bottek [...] 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=-1.333 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, 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/alternative; boundary="001a114760c81df93705536dc815"
Message-ID: <CALXiCo8bR_b7F_yk-VnhKfpcZ12uqY9_Xr4xBVxXyx8ntnWrQw [...] mail.gmail.com>
X-Received: by 10.36.43.198 with SMTP id h189mr33987137ita.19.1499105857490; Mon, 03 Jul 2017 11:17:37 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.333
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 9F62D2402F7 for <cpan-bug+Path-Ancestor [...] hipster.bestpractical.com>; Mon, 3 Jul 2017 14:17:43 -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 Pc7silfGErgA for <cpan-bug+Path-Ancestor [...] hipster.bestpractical.com>; Mon, 3 Jul 2017 14:17:42 -0400 (EDT)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 52289240132 for <bug-Path-Ancestor [...] rt.cpan.org>; Mon, 3 Jul 2017 14:17:42 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 9034E11D872 for <bug-Path-Ancestor [...] rt.cpan.org>; Mon, 3 Jul 2017 11:17:41 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id D362D11DE11 for <bug-Path-Ancestor [...] rt.cpan.org>; Mon, 3 Jul 2017 11:17:39 -0700 (PDT)
Received: from mail-it0-f42.google.com (mail-it0-f42.google.com [209.85.214.42]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 09FA511D872 for <bug-Path-Ancestor [...] rt.cpan.org>; Mon, 3 Jul 2017 11:17:38 -0700 (PDT)
Received: by mail-it0-f42.google.com with SMTP id m84so60510910ita.0 for <bug-Path-Ancestor [...] rt.cpan.org>; Mon, 03 Jul 2017 11:17:38 -0700 (PDT)
Received: by 10.79.147.70 with HTTP; Mon, 3 Jul 2017 11:17:36 -0700 (PDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Delivered-To: cpan-bug+Path-Ancestor [...] hipster.bestpractical.com
Subject: Path Ancestor match a false Ancestor with the following example
Return-Path: <jan.bottek [...] gmail.com>
X-RT-Mail-Extension: path-ancestor
X-Original-To: cpan-bug+Path-Ancestor [...] 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=azKqgTlimkC0j/prvPYaBEJay7qhc0yODIcYr5/9Q0c=; b=GShPwaKI1gMFQ6qDdr0VbFAX3k+MO39g6k0DkC+xxpCU0YATwUxtxHjUyJq+gO3MsB WlcOasR39SlGS0L9P/+61c6xUuIDHm/X29JbK0vjjexUTXLBj173nV/IAsTWh9c7jyZJ 42W70kOkCabb1hsYWNXTcBtkVDiqQa+SOPlHxb1hJ+Jasmh4HlDH4U3MuzQC2/n0njRs Nwqonhd8GQ3rkW/2L8gyUwVBhVD1NX1gKmSwY9diQVEs8SCBBkavWNkb4cqV+JPmKBJ9 yVVjYauGQInte51GHSih98kDfgUOZg2y0m4S7Kzhoy6jKfqETBOOwPYU1BACipGsLF2p P4sg==
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=azKqgTlimkC0j/prvPYaBEJay7qhc0yODIcYr5/9Q0c=; b=JwloEzoPudgiQ80fiRWQ3V7l4qVb7zcFtMejEJ9SFTRI8zwZPK6TSMv8NsuiR1sD28 BczG8go6NSqacLdK58i3vTNRYo4XH1s1gjm+9yVBW7kFH0RqRM9Pg7xvozIqUucMkJjk /+DCpyDmgrAtgVKmLj04tjxKGFX9Zs4t1FA8M/qYRvz9qpwKGxAHM2HAR+EhFla8Ajgc HvthToalaTmE9Nb6xxfidvu/KIJxnub8iOE1SjYY1y8ff48BUjeptYq5croluVgdx/Kw FNQke7aZCi801UDgnSeefvBOfTI63y1vOBaAWN9TcShcI6H/Cwed/koN5hCiWF33zPzw qUyw==
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_NO_HTTP 0.1, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, NO_CTA_URI_FOUND 0, NO_URI_FOUND 0, NO_URI_HTTPS 0, SPF_PASS 0, WEBMAIL_SOURCE 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HELO_GMAIL 0, __HEX28_LC_BOUNDARY 0, __HIGHBITS 0, __HTML_TAG_DIV 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_HTTP_RECEIVED 0, __PHISH_SPEAR_STRUCTURE_1 0, __RDNS_GMAIL 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __YOUTUBE_RCVD 0, __zen.spamhaus.org_ERROR '
Date: Mon, 3 Jul 2017 20:17:36 +0200
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.7.3.180315
To: bug-Path-Ancestor [...] rt.cpan.org
From: Jan Bottek <jan.bottek [...] gmail.com>
X-GM-Message-State: AKS2vOwwiAAiGe5iXMdlw/S1mlO1Gka+e1Hl9m789Z/giCmemUZyITWJ AISsd10oNEJ7fV7IeffSRLQ6iYUAMCW+
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 836
Download (untitled) / with headers
text/plain 836b
Hi Mike Schilli, with the following example, the great Path::Ancestor module will match a wrong Ancestor path ----------------------------------------------------------- use strict; use warnings; use Path::Ancestor qw(longest_common_ancestor); my @pathes = ("/foo/bar/baz", "/foo/bar/baz/moo", "/foo/bar1/qasa" ); # possible solution my $ancestor = longest_common_ancestor( @pathes ); print "Wrong: $ancestor"; print "\n"; @pathes = reverse sort @pathes; $ancestor = longest_common_ancestor( @pathes ); print "with Ancestor patch: $ancestor"; ----------------------------------------------------------- Stupid patch from my site was to reverse/sort the entry pathes. What do you think about it? Thx in Advance. Kind regards. Jan Bottek
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1350


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.