Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
diff/view/blame not working
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Thorsten Kaufmann  
View profile  
 More options Jun 19 2012, 3:03 am
From: Thorsten Kaufmann <instinct...@googlemail.com>
Date: Tue, 19 Jun 2012 00:03:52 -0700 (PDT)
Local: Tues, Jun 19 2012 3:03 am
Subject: diff/view/blame not working

Hey there,

the topic is a tad misleading i guess, but i did not know how to describe
better in a subject. I am running gitblit go on ubuntu, and so far it seems
to run smooth and nice except for one thing.
I can click the view/diff/blame links on the summary page just fine. If i
click view, and then on any of the view/diff/blame links in the commit
view's "changed files" area i get a 404. The ones in
the tweak area work fine on the same page.

Any ideas what might cause this?

Regards,
Thorsten


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Moger  
View profile  
 More options Jun 19 2012, 7:43 am
From: James Moger <james.mo...@gmail.com>
Date: Tue, 19 Jun 2012 07:43:52 -0400
Local: Tues, Jun 19 2012 7:43 am
Subject: Re: diff/view/blame not working
Hmmm.  That is weird.  Are you running GO behind a proxy?  Can you
compare the links for a working diff and a broken diff?

I'm not sure what "tweak area" means.

-J

On Tue, Jun 19, 2012 at 3:03 AM, Thorsten Kaufmann


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thorsten Kaufmann  
View profile  
 More options Jun 19 2012, 8:14 am
From: Thorsten Kaufmann <instinct...@googlemail.com>
Date: Tue, 19 Jun 2012 05:14:54 -0700 (PDT)
Local: Tues, Jun 19 2012 8:14 am
Subject: Re: diff/view/blame not working

Damn. There is of course now "tweaks" area. It has the commit message as
title, and i didn't think enough.

What i was referring to is the upper area in this screenshot
http://gitblit.com/screenshots/06.png

It seems the link has a slash replaced with %2F in a quick look. But what
may cause that? I do run gitblit behind apache using
mod_proxy.

Regards,
Thorsten

it has view/diff for the "parent" field. These work. The ones next to the
files down in the "changed files" area don't.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Moger  
View profile  
 More options Jun 19 2012, 9:04 am
From: James Moger <james.mo...@gmail.com>
Date: Tue, 19 Jun 2012 09:04:14 -0400
Local: Tues, Jun 19 2012 9:04 am
Subject: Re: diff/view/blame not working
Wicket (the web framework used by Gitblit) replaces forward-slashes in
parameters with %2F.  It has to do this because it uses
forward-slashes to delimit parameters in mounted/pretty urls.

Example: http://localhost/param1/param2/param3

if param2 had a a '/' in it then Wicket will not be able to identify
param3. So Wicket replaces the '/' with %2F so the url will be:
http://localhost/param1/my%2Fparam%2F2/param3

Some proxy's really do not like %2F encoded values and they re-encode
those as / before forwarding on to Gitblit.  This breaks
Wicket/Gitblit.  When you are running behind a proxy you have to take
an extra step or two to make sure your urls work properly.

Pick one:
1. web.mountParameters = false
2. web.forwardSlashCharacter = !

For example the demo site runs on a JBoss instance behind one of
RedHat's proxy servers.  The demo uses web.forwardSlashCharacter = !
to get around proxy server interference.

e.g.
https://demo-gitblit.rhcloud.com/blob/gitblit.git/67d4f89b0cddb3de05c...

-J


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thorsten Kaufmann  
View profile  
 More options Jun 19 2012, 9:19 am
From: Thorsten Kaufmann <instinct...@googlemail.com>
Date: Tue, 19 Jun 2012 06:19:21 -0700 (PDT)
Local: Tues, Jun 19 2012 9:19 am
Subject: Re: diff/view/blame not working

I just took a look at the console interactively and i assume this is my
problem:

ERROR /srv/git/repositories/xxxxxxxxxxxxxxxxxxxxxx.git failed to retrieve
refs/heads/
org.eclipse.jgit.errors.MissingObjectException: Missing unknown
6955702ce31e18b97aa497309a91bc43f54fefc2

So it also seems to work for other repos. I got no idea how that might
happen tho.

Regards,
Thorsten


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thorsten Kaufmann  
View profile  
 More options Jun 19 2012, 9:40 am
From: Thorsten Kaufmann <instinct...@googlemail.com>
Date: Tue, 19 Jun 2012 06:40:10 -0700 (PDT)
Local: Tues, Jun 19 2012 9:40 am
Subject: Re: diff/view/blame not working

This only happened once now and i was not able to reproduce it. Switching
to ! as forward slash character works fine. Thanks a lot!

Now i just need to fix the ubuntu start script heh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »