From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id D2C2E3844035 for ; Wed, 15 Jul 2020 20:13:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D2C2E3844035 Received: by mail-ej1-x632.google.com with SMTP id lx13so3577815ejb.4 for ; Wed, 15 Jul 2020 13:13:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=KrVviU5r2t+kTMC6cJJWYAaBtXmf8iGMm8nL7gFlLNM=; b=BgMeHKfX6U3k3Ia0lRa3yRflACuaxJsN1jkMn80Xos+7/vwqBm35dMqh/ERkOv87ZP c2Ijw9v0d+NHFYNx+OEDNpCV8cMblzD6b3++NmgtrPhivw/KiiPLRp6UjyiQKvaBmnzG M29PB115x0MI43cczS0mxTUN76ZQP9FBvSppJnQd48u6/ScUztiQ1t2fZcl7w9e2yYRF P6h/6r9W5B09wCS0kALJ1aFslKAbe/rkjFllhYKIfCVvau5hnz6ThKnc7pZLX6u7urvi ppbyIVAz4hd7bgdBOxCStaAaA970Jn3QU8u8Z7ULFPCBL1xlJw73acMcnN9H3/gv3Lp+ ERvQ== X-Gm-Message-State: AOAM532orIoE4t8xYXoolwuFIYKVTJsjH9DWDyG66v+AKPse3YdfMUYO V52/Urq7TvJFnzj3mmUfH+96K7A2aA4= X-Google-Smtp-Source: ABdhPJw9IooOW3Snz1WxPHOZl9QBbcWIj0aHhyVM2r5lJUmPfr6UyxY5R2rrrQAzxbcTVDpuPJ10IQ== X-Received: by 2002:a17:906:cf91:: with SMTP id um17mr653313ejb.168.1594844031736; Wed, 15 Jul 2020 13:13:51 -0700 (PDT) Received: from [192.168.2.121] (pd9ed5fcd.dip0.t-ipconnect.de. [217.237.95.205]) by smtp.gmail.com with ESMTPSA id d20sm3144893edy.9.2020.07.15.13.13.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Jul 2020 13:13:50 -0700 (PDT) From: Marco Atzeri Subject: Broken search on webserver To: "cygwin@cygwin.com" Message-ID: Date: Wed, 15 Jul 2020 22:13:50 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2020 20:13:54 -0000 Problem: I want to search for libssh/libssh.h Using https://cygwin.com/packages/ If I put the name and press Go the URL is changed in https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh%2Flibssh.h&arch=x86_64 ^^^ and the output is Found 0 matches for libsshx2Flibssh.h ^^^ Instead if I modify directly the URL in: https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh/libssh.h&arch=x86_64 Found 3 matches for libssh/libssh.h .... I guess that the current incapability is due to spurious urlencode in cgi-bin2/package-grep.cgi that is modifing the $param_grep echo '
  • '$file' - '$desc'
  • ' Could someone double check my guess ? Regards Marco From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) by sourceware.org (Postfix) with ESMTPS id 8CA3E3858D38 for ; Thu, 16 Jul 2020 04:25:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8CA3E3858D38 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brian.inglis@systematicsw.ab.ca Received: from [192.168.1.104] ([24.64.172.44]) by shaw.ca with ESMTP id vvSvjDZE0YYpxvvSwjTPc1; Wed, 15 Jul 2020 22:25:51 -0600 X-Authority-Analysis: v=2.3 cv=OubUNx3t c=1 sm=1 tr=0 a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=CCpqsmhAAAAA:8 a=JZeu4sPTHj9YQVegERsA:9 a=QEXdDO2ut3YA:10 a=n3hVHUe6OSMA:10 a=yh9n4IyGzp4A:10 a=UoJsEcOwQkgA:10 a=iUVqKZeHeJ0A:10 a=sRI3_1zDfAgwuvI8zelB:22 a=ul9cdbp4aOFLsgKbc677:22 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: Cygwin package search and cygcheck -p urlencoding still broken on new web server To: cygwin@cygwin.com, Overseers mailing list References: From: Brian Inglis Autocrypt: addr=Brian.Inglis@SystematicSw.ab.ca; prefer-encrypt=mutual; keydata= mDMEXopx8xYJKwYBBAHaRw8BAQdAnCK0qv/xwUCCZQoA9BHRYpstERrspfT0NkUWQVuoePa0 LkJyaWFuIEluZ2xpcyA8QnJpYW4uSW5nbGlzQFN5c3RlbWF0aWNTdy5hYi5jYT6IlgQTFggA PhYhBMM5/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQW AgMBAh4BAheAAAoJEB62lxu92I8Y0ioBAI8xrggNxziAVmr+Xm6nnyjoujMqWcq3oEhlYGAO WacZAQDFtdDx2koSVSoOmfaOyRTbIWSf9/Cjai29060fsmdsDLg4BF6KcfMSCisGAQQBl1UB BQEBB0Awv8kHI2PaEgViDqzbnoe8B9KMHoBZLS92HdC7ZPh8HQMBCAeIfgQYFggAJhYhBMM5 /lbU970GBS2bZB62lxu92I8YBQJeinHzAhsMBQkJZgGAAAoJEB62lxu92I8YZwUBAJw/74rF IyaSsGI7ewCdCy88Lce/kdwX7zGwid+f8NZ3AQC/ezTFFi5obXnyMxZJN464nPXiggtT9gN5 RSyTY8X+AQ== Organization: Systematic Software Message-ID: <9c03bed5-da26-512c-3c31-ed6cd59f8043@SystematicSw.ab.ca> Date: Wed, 15 Jul 2020 22:25:49 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfEcK1O+tkX3EcNWXZ3sE2fSp9KH/d2JN/vEP7I1jdveSPTiaA1qeqULw4ayxj7E8Rv669GtW7sqmcgKiUJb0kcItaIgZDie6lGEANhJygfeTXzJxOpMA NxkbprN1NyyYnYDQriytW1CC+kEHenAf69yIlbHvuJDs2nVtE54Q35ASh+XI2yX27ehkBd1IS9eSTgKiToVg7UtDF1kI3gSoXmnrlj0aoiltnRFITAdrz4Gn X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2020 04:25:54 -0000 On 2020-07-15 14:13, Marco Atzeri via Cygwin wrote: > Problem: I want to search for >    libssh/libssh.h > Using https://cygwin.com/packages/ > If I put the name and press Go the URL is changed in > https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh%2Flibssh.h&arch=x86_64 > and the output is >    Found 0 matches for libsshx2Flibssh.h >                              ^^^ > Instead if I modify directly the URL in: > https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh/libssh.h&arch=x86_64 > Found 3 matches for libssh/libssh.h > .... > I guess that the current incapability is due to spurious urlencode in > cgi-bin2/package-grep.cgi > that is modifing the $param_grep > echo '
  • '$file' - '$desc'
  • ' > Could someone double check my guess ? No change since your report on May 2nd, and my cross-post to overseers: https://cygwin.com/pipermail/cygwin/2020-May/244684.html https://sourceware.org/pipermail/overseers/2020q2/017115.html where Frank suggested replacing badly urlencoded characters by ".": $ cygcheck -p libssh/libssh.h Found 0 matches for libsshx2flibssh.h $ cygcheck -p libssh.libssh.h Found 3 matches for libssh.libssh.h libssh-devel-0.7.3-1 - libssh-devel: SSH implementation library (installed binaries and support files) libssh-devel-0.7.5-1 - libssh-devel: SSH implementation library libssh-devel-0.8.7-1 - libssh-devel: SSH implementation library The previous break appears to have been fixed by or due to Achim: https://cygwin.com/pipermail/cygwin/2019-November/243112.html Ping Achim?! -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in IEC units and prefixes, physical quantities in SI.] From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by sourceware.org (Postfix) with ESMTPS id 60B92385700A for ; Thu, 16 Jul 2020 07:44:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 60B92385700A Received: by mail-ej1-x641.google.com with SMTP id p20so5505461ejd.13 for ; Thu, 16 Jul 2020 00:44:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=J2/0qGac2MmKQLcs2LrwqMxbBWXZungX+eiv33YR0Xw=; b=cEqFLeVUtH3VGi7PVYKg79HgKWO1wgXWt3jua7J9GnVHV7deXLZJpKl+PutzBp4/N4 IFyBXebAU/LJ13YLcb582y1BxcTO+CgQpRC+wU9N0G4Zdz3v8qS6XsNFlxzDbGi9i5Kr g5ob1ZW0seUS/XwhP37RGnmY9cwQhyVEQSjxXSdpndItzaE+cAj578dzktkwtCXrZ8Sx /Ztg9hnH4w+h6MH5ApAs+iyp9THTT0eiLUWhmvoewugI28kSSfKawIZ3L5d9Op5+R4Pn rmsZM03Sz4nnSSiHxMng/O7U+lYNELknrS0c4sA3INzd5tUe1p71f3H9y85k7mNNRfgv oxsQ== X-Gm-Message-State: AOAM532fUPqWzOrNdtxRz7i4YTkrQW36o5lm9vfWGuN/96LFZRJMeUgL 2yTWJkWiThFZT959yMA3oC9qGF/ftU0= X-Google-Smtp-Source: ABdhPJzx5R+iN10edHdsgbVyWm1081Ovqn3UNC6s27ETJuLlFH4jRlw9VfROFnHggQPOlsRSVkgUAw== X-Received: by 2002:a17:906:1492:: with SMTP id x18mr2431001ejc.545.1594885475131; Thu, 16 Jul 2020 00:44:35 -0700 (PDT) Received: from [192.168.2.121] (pd9ed5fcd.dip0.t-ipconnect.de. [217.237.95.205]) by smtp.gmail.com with ESMTPSA id r17sm4501116edw.68.2020.07.16.00.44.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jul 2020 00:44:34 -0700 (PDT) Subject: Re: Cygwin package search and cygcheck -p urlencoding still broken on new web server To: cygwin@cygwin.com References: <9c03bed5-da26-512c-3c31-ed6cd59f8043@SystematicSw.ab.ca> From: Marco Atzeri Message-ID: Date: Thu, 16 Jul 2020 09:44:33 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <9c03bed5-da26-512c-3c31-ed6cd59f8043@SystematicSw.ab.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2020 07:44:37 -0000 On 16.07.2020 06:25, Brian Inglis wrote: > On 2020-07-15 14:13, Marco Atzeri via Cygwin wrote: >> Problem: I want to search for >>    libssh/libssh.h >> Using https://cygwin.com/packages/ >> If I put the name and press Go the URL is changed in >> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh%2Flibssh.h&arch=x86_64 >> and the output is >>    Found 0 matches for libsshx2Flibssh.h >>                              ^^^ >> Instead if I modify directly the URL in: >> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh/libssh.h&arch=x86_64 >> Found 3 matches for libssh/libssh.h >> .... >> I guess that the current incapability is due to spurious urlencode in >> cgi-bin2/package-grep.cgi >> that is modifing the $param_grep >> echo '
  • '$file' - '$desc'
  • ' >> Could someone double check my guess ? > > No change since your report on May 2nd, and my cross-post to overseers: > > https://cygwin.com/pipermail/cygwin/2020-May/244684.html > > https://sourceware.org/pipermail/overseers/2020q2/017115.html > > where Frank suggested replacing badly urlencoded characters by ".": this works as the dot is not changed case $c in [a-zA-Z0-9.~_-]) printf "$c" ;; *) printf '%%%02X' "'$c" > $ cygcheck -p libssh/libssh.h > Found 0 matches for libsshx2flibssh.h > $ cygcheck -p libssh.libssh.h > Found 3 matches for libssh.libssh.h > libssh-devel-0.7.3-1 - libssh-devel: SSH implementation library (installed > binaries and support files) > libssh-devel-0.7.5-1 - libssh-devel: SSH implementation library > libssh-devel-0.8.7-1 - libssh-devel: SSH implementation library > > The previous break appears to have been fixed by or due to Achim: > > https://cygwin.com/pipermail/cygwin/2019-November/243112.html > > Ping Achim?! > the git logs says that only Frank and Jon have recently worked on cgi-bin2/package-grep.cgi I would like to doble check any possible modification before proposing a patch to change the web server... Regards Marco From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from re-prd-fep-044.btinternet.com (mailomta31-re.btinternet.com [213.120.69.124]) by sourceware.org (Postfix) with ESMTPS id 5655E384240C for ; Thu, 16 Jul 2020 13:42:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5655E384240C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=jon.turney@dronecode.org.uk Received: from re-prd-rgout-003.btmx-prd.synchronoss.net ([10.2.54.6]) by re-prd-fep-044.btinternet.com with ESMTP id <20200716134246.WZQB21348.re-prd-fep-044.btinternet.com@re-prd-rgout-003.btmx-prd.synchronoss.net>; Thu, 16 Jul 2020 14:42:46 +0100 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com X-Originating-IP: [31.51.206.31] X-OWM-Source-IP: 31.51.206.31 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeduiedrfeeggdeikecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepgfevledvjeffudfhvdehhfdutddthffhffeuvdeuuedtvdfgveeuhfduvefhuddvnecuffhomhgrihhnpegthihgfihinhdrtghomhdpfihikhhiphgvughirgdrohhrghenucfkphepfedurdehuddrvddtiedrfedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurdduuddungdpihhnvghtpeefuddrhedurddvtdeirdefuddpmhgrihhlfhhrohhmpeeojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhequceuqfffjgepkeeukffvoffkoffgpdhrtghpthhtohepoegthihgfihinhestgihghifihhnrdgtohhmqedprhgtphhtthhopeeomhgrrhgtohdrrghtiigvrhhisehgmhgrihhlrdgtohhmqe X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.111] (31.51.206.31) by re-prd-rgout-003.btmx-prd.synchronoss.net (5.8.340) (authenticated as jonturney@btinternet.com) id 5ED9C2FD07334D9D; Thu, 16 Jul 2020 14:42:46 +0100 Subject: Re: Cygwin package search and cygcheck -p urlencoding still broken on new web server To: The Cygwin Mailing List References: <9c03bed5-da26-512c-3c31-ed6cd59f8043@SystematicSw.ab.ca> From: Jon Turney Message-ID: Date: Thu, 16 Jul 2020 14:42:44 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, BODY_8BITS, FORGED_SPF_HELO, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2020 13:42:49 -0000 On 16/07/2020 08:44, Marco Atzeri via Cygwin wrote: > On 16.07.2020 06:25, Brian Inglis wrote: >> On 2020-07-15 14:13, Marco Atzeri via Cygwin wrote: >>> Problem: I want to search for >>>     libssh/libssh.h >>> Using https://cygwin.com/packages/ >>> If I put the name and press Go the URL is changed in >>> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh%2Flibssh.h&arch=x86_64 >>> >>> and the output is >>>     Found 0 matches for libsshx2Flibssh.h >>>                               ^^^ >>> Instead if I modify directly the URL in: >>> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh/libssh.h&arch=x86_64 I think that this is an invalid URL, that just happens to work, so it's correct that the link we produce is urlencoded. (See e.g. https://en.wikipedia.org/wiki/Query_string#URL_encoding) >>> Found 3 matches for libssh/libssh.h >>> .... >>> I guess that the current incapability is due to spurious urlencode in >>> cgi-bin2/package-grep.cgi >>> that is modifing the $param_grep >>> echo '
  • '$file' - >>> '$desc'
  • ' >>> Could someone double check my guess ? So it seems the urlencode is correct, but the urldecode isn't working. I've applied a one-character change which appears to fix things. > the git logs says that only Frank and Jon have recently worked on > >    cgi-bin2/package-grep.cgi > > I would like to double check any possible modification before proposing a > patch to change the web server... This was actually fairly easy to reproduce locally, once I realized what was going on: $ export url="libssh%2Flibssh.h" ; printf '%b' "${url//%/\x}" libsshx2Flibssh.h $ export url="libssh%2Flibssh.h" ; printf '%b' "${ur//%/\\x}" libssh/libssh.h From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id D34C83857C45 for ; Thu, 16 Jul 2020 18:48:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D34C83857C45 Received: by mail-ej1-x635.google.com with SMTP id p20so7667362ejd.13 for ; Thu, 16 Jul 2020 11:48:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kHDDA2sUWUDhFjcpeDvMczedFwBruD6kfEbM9Tun7oI=; b=mxCGYKGARetbG8TF9g2x9YamgDthDHs8P1FfzObb7w9VwD/BoxFwAn93KwPOUvbexy p71FC37QbxyA7Cx3f7Hg0YX0SVc42RuKTCGDz1Idh9D1kBpPtnF0W+Ryu2/uXvVYu3uL CwvY3j9YUPu8aHx9jUlDW3V+/kqU2aW9TlPA19pO+kbObj3t7YpvCaC+dZG05FeMeDUg QOGtj3Y1I0pjpBOXqINCtjhkp+sbrki8E5jXrD3v/IGpcxQl9B9ueR3UEmIl7hzBCYUW 48iJUthYDqC0ydkD7Oga0ccnZ7QfRuSpX4sTNoCfciHxPp6VFdvpbAEytm1Lz46PJ0Z8 3ypw== X-Gm-Message-State: AOAM530/uWyWXGPjJ6/kgGfXfO/BxJmk0Jj75z6FmqBwGw2fiZd1kHwp 6MjgRmRGwWJspmf0JiWDjbcsng2N2Tc= X-Google-Smtp-Source: ABdhPJxfYtBf98kC1XNaEi5DTNPixic5d7QbSZipf0RqhHvR9AEKv4fpUfLKnbYPNMOL44c57VYoDg== X-Received: by 2002:a17:906:4dd4:: with SMTP id f20mr5391890ejw.170.1594925321630; Thu, 16 Jul 2020 11:48:41 -0700 (PDT) Received: from [192.168.2.121] (pd9ed5fcd.dip0.t-ipconnect.de. [217.237.95.205]) by smtp.gmail.com with ESMTPSA id j21sm6101298edq.20.2020.07.16.11.48.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jul 2020 11:48:40 -0700 (PDT) Subject: Re: Cygwin package search and cygcheck -p urlencoding still broken on new web server To: The Cygwin Mailing List References: <9c03bed5-da26-512c-3c31-ed6cd59f8043@SystematicSw.ab.ca> From: Marco Atzeri Message-ID: Date: Thu, 16 Jul 2020 20:48:39 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2020 18:48:44 -0000 On 16.07.2020 15:42, Jon Turney wrote: > On 16/07/2020 08:44, Marco Atzeri via Cygwin wrote: >> On 16.07.2020 06:25, Brian Inglis wrote: >>> On 2020-07-15 14:13, Marco Atzeri via Cygwin wrote: >>>> Problem: I want to search for >>>>     libssh/libssh.h >>>> Using https://cygwin.com/packages/ >>>> If I put the name and press Go the URL is changed in >>>> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh%2Flibssh.h&arch=x86_64 >>>> >>>> and the output is >>>>     Found 0 matches for libsshx2Flibssh.h >>>>                               ^^^ >>>> Instead if I modify directly the URL in: >>>> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh/libssh.h&arch=x86_64 > > > I think that this is an invalid URL, that just happens to work, so it's > correct that the link we produce is urlencoded. > > (See e.g. https://en.wikipedia.org/wiki/Query_string#URL_encoding) > >>>> Found 3 matches for libssh/libssh.h >>>> .... >>>> I guess that the current incapability is due to spurious urlencode in >>>> cgi-bin2/package-grep.cgi >>>> that is modifing the $param_grep >>>> echo '
  • '$file' - >>>> '$desc'
  • ' >>>> Could someone double check my guess ? > > So it seems the urlencode is correct, but the urldecode isn't working. > > I've applied a one-character change which appears to fix things. > >> the git logs says that only Frank and Jon have recently worked on >> >>     cgi-bin2/package-grep.cgi >> >> I would like to double check any possible modification before proposing a >> patch to change the web server... > > This was actually fairly easy to reproduce locally, once I realized what > was going on: > > $ export url="libssh%2Flibssh.h" ; printf '%b' "${url//%/\x}" > libsshx2Flibssh.h > > $ export url="libssh%2Flibssh.h" ; printf '%b' "${ur//%/\\x}" > libssh/libssh.h Thanks Jon now the search works fine also with cygcheck -p From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.12]) by sourceware.org (Postfix) with ESMTPS id D2B993857C63 for ; Thu, 16 Jul 2020 20:22:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D2B993857C63 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brian.inglis@systematicsw.ab.ca Received: from [192.168.1.104] ([24.64.172.44]) by shaw.ca with ESMTP id wAOHjiloP62brwAOIjFP6H; Thu, 16 Jul 2020 14:22:02 -0600 X-Authority-Analysis: v=2.3 cv=LKf9vKe9 c=1 sm=1 tr=0 a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 a=IkcTkHD0fZMA:10 a=JZeu4sPTHj9YQVegERsA:9 a=QEXdDO2ut3YA:10 Reply-To: cygwin@cygwin.com Subject: Re: Cygwin package search and cygcheck -p urlencoding still broken on new web server To: cygwin@cygwin.com References: <9c03bed5-da26-512c-3c31-ed6cd59f8043@SystematicSw.ab.ca> From: Brian Inglis Autocrypt: addr=Brian.Inglis@SystematicSw.ab.ca; prefer-encrypt=mutual; keydata= mDMEXopx8xYJKwYBBAHaRw8BAQdAnCK0qv/xwUCCZQoA9BHRYpstERrspfT0NkUWQVuoePa0 LkJyaWFuIEluZ2xpcyA8QnJpYW4uSW5nbGlzQFN5c3RlbWF0aWNTdy5hYi5jYT6IlgQTFggA PhYhBMM5/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQW AgMBAh4BAheAAAoJEB62lxu92I8Y0ioBAI8xrggNxziAVmr+Xm6nnyjoujMqWcq3oEhlYGAO WacZAQDFtdDx2koSVSoOmfaOyRTbIWSf9/Cjai29060fsmdsDLg4BF6KcfMSCisGAQQBl1UB BQEBB0Awv8kHI2PaEgViDqzbnoe8B9KMHoBZLS92HdC7ZPh8HQMBCAeIfgQYFggAJhYhBMM5 /lbU970GBS2bZB62lxu92I8YBQJeinHzAhsMBQkJZgGAAAoJEB62lxu92I8YZwUBAJw/74rF IyaSsGI7ewCdCy88Lce/kdwX7zGwid+f8NZ3AQC/ezTFFi5obXnyMxZJN464nPXiggtT9gN5 RSyTY8X+AQ== Organization: Systematic Software Message-ID: <2d1e4b1d-8680-34bd-d630-380e1b125d1a@SystematicSw.ab.ca> Date: Thu, 16 Jul 2020 14:22:01 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfFU5HqA0NFfved8wK+horiMdobboRWE3wy0RzL1LjcH1mRR3je6YIvs9VGrkMKGLVNQHKkuMkGFUeey/258Ufbk9BMgPkeRV8yVHL4SaPc8chNu+fKcm Nfr5l8nlBauPxThHgMmiS16LeXL1y24s6IfeiW0kC9a5RLHfE/WVLf8aKAwMWWnVuBKGcvoquycNGA== X-Spam-Status: No, score=-8.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2020 20:22:04 -0000 On 2020-07-16 07:42, Jon Turney wrote: > On 16/07/2020 08:44, Marco Atzeri via Cygwin wrote: >> On 16.07.2020 06:25, Brian Inglis wrote: >>> On 2020-07-15 14:13, Marco Atzeri via Cygwin wrote: > So it seems the urlencode is correct, but the urldecode isn't working. > > I've applied a one-character change which appears to fix things. >> the git logs says that only Frank and Jon have recently worked on >> >>     cgi-bin2/package-grep.cgi >> >> I would like to double check any possible modification before proposing a >> patch to change the web server... > This was actually fairly easy to reproduce locally, once I realized what was > going on: > > $ export url="libssh%2Flibssh.h" ; printf '%b' "${url//%/\x}" > libsshx2Flibssh.h > > $ export url="libssh%2Flibssh.h" ; printf '%b' "${ur//%/\\x}" > libssh/libssh.h Doh! Good catch! Been an annoyance for months. I didn't realize cgi-bin scripts were visible under cygwin-htdocs/cgi-bin2. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in IEC units and prefixes, physical quantities in SI.]