threads / discuss / 26554

Gitweb complains "404 - No such project" when following links from Gmail

Subject: Gitweb complains "404 - No such project" when following links from Gmail

## tl;dr

2 messages between Feb 19, 2011 and Feb 19, 2011.

replies: 1people: 2as markdown or json

Jesse Wilson· Feb 19, 2011, 01:12 UTC · lore
Gitweb experts,

I've seen the following error on all git web deployments I've tried, including the Linux Kernel and Android:

    /android/git /
   404 - No such project

Reproduce this by following this this link from the Gmail web app: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/hardware/SensorManager.java

Pasting the same link into a browser's address bar yields a valid page. Even reloading it yields a valid page.

Any ideas? I couldn't find the bug tracker for gitweb.

Thanks, Jesse

Shawn Pearce· Feb 19, 2011, 01:18 UTC · re: Jesse Wilson · lore

Re: Gitweb complains "404 - No such project" when following links from Gmail

On Fri, Feb 18, 2011 at 17:12, Jesse Wilson <jessewilson@google.com> wrote:
Show 11 quoted lines
> I've seen the following error on all git web deployments I've tried,
> including the Linux Kernel and Android:
>
>    /android/git /
>   404 - No such project
>
> Reproduce this by following this this link from the Gmail web app:
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/hardware/SensorManager.java
>
> Pasting the same link into a browser's address bar yields a valid
> page. Even reloading it yields a valid page.

I think the issue is Gmail encodes the ";" as %3B. This confuses gitweb. IMHO, its a bug in Gmail, Gmail shouldn't be encoding ; as %3B when it creates the anchor.

-- 
Shawn.

← back to recent threads