git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/RESEND] gitweb: Fix snapshots requested via PATH_INFO

From
Jakub Narebski <jnareb@gmail.com>
Date
Apr 20, 2009, 09:52 UTC
Message-ID
<m3iqkzps96.fsf@localhost.localdomain>
In-Reply-To
<200904151934.10253.jnareb@gmail.com>

I'm sorry for resend, but I forgot to quote non-ASCII in 'Cc:' and vger anti-SPAM filter rejected message...

Jakub Narebski <jnareb@gmail.com> writes:
Show 27 quoted lines
> On Wed, 15 April 2009, Junio C Hamano wrote:
>> Holger Weiß <holger@zedat.fu-berlin.de> writes:
>> 
>>> Fix the detection of the requested snapshot format, which failed for
>>> PATH_INFO URLs since the references to the hashes which describe the
>>> supported snapshot formats weren't dereferenced appropriately.
>>>
>>> Signed-off-by: Holger Weiß <holger@zedat.fu-berlin.de>
>>> ---
>>> I guess this one got lost.  Without this patch, snapshots won't work if
>>> Gitweb is configured to generate PATH_INFO URLs.  (Original Message-ID:
>>> <20090331161636.GV30233737@CIS.FU-Berlin.DE>).
>> 
>> The patch looks obviously correct; "our %known_snapshort_formats" maps a
>> name to a hashref, but the current code makes a nonsense assignment,
>> essentialy doing ($fmt, %opt) = ($name, $hashref), but what would I
>> know...  I am not using gitweb actively.
>> 
>> These lines come from 1ec2fb5 (gitweb: retrieve snapshot format from
>> PATH_INFO, 2008-11-02) by Guiseppe.
>> 
>> Judging from the "git shortlog -n -s --grep=PATH_INFO gitweb" output, I
>> think I should have heard from either Guiseppe and Jakub by now if this
>> patch is desired.  Pinging them...
> 
> This change looks correct, and is very much desired.  Thanks for
> catching this.
Ping!  This is quite straighforward bugfix for a new feature...
Show 5 quoted lines
> By the way, if there was check added for full path_info snapshot URL in
> existing t/t9500-gitweb-standalone-no-errors.sh it would caught this
> bug thanks to the
>   "Odd number of elements in hash assignment ..."
> warning that Perl throws in this case. 
... or are you waiting for test case?
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Jakub NarebskiNext: Junio C Hamano
Message 6 of 7 in “Re: [PATCH/RESEND] gitweb: Fix snapshots requested via PATH_INFO”
  1. Junio C HamanoApr 15, 2009
  2. Giuseppe BilottaApr 15, 2009
  3. Holger WeißApr 15, 2009
  4. Giuseppe BilottaApr 15, 2009
  5. Jakub NarebskiApr 15, 2009
  6. Jakub NarebskiApr 20, 2009
  7. Junio C HamanoApr 20, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.