List for cgit developers and users
 help / color / mirror / Atom feed
* cgit can't display certain file hashes
@ 2015-09-18 17:23 terrence.j.dunnigan
  2015-09-18 17:51 ` john
  0 siblings, 1 reply; 3+ messages in thread
From: terrence.j.dunnigan @ 2015-09-18 17:23 UTC (permalink / raw)


From time to time our cgit server (0.10.1) won't display a particular version of a file.

Say we have a file src.cpp in the repo repo.git. It has been modified five times, and the five file hashes are aaa, bbb, ccc, ddd, and eee.  Aaa is the first commit and eee is the most recent commit.

We use this URL to display certain versions of the file: https://cgit/repo.git/blob/src.cpp?id=eee.

For whatever reason, all hashes are displaying except the penultimate commit, ddd.

https://cgit/repo.git/blob/src.cpp?id=eee displays the file just fine.
https://cgit/repo.git/blob/src.cpp?id=ddd displays an error message "No repositories found".

The commit exists in the repo - I can see the file hash ddd listed via the command git ls-tree, so I'm very confused why cgit isn't able to display the file.

I know our version of cgit is an older version - was this a bug fixed in subsequent releases?

Any help that you can provide would be most appreciated.

Thanks,

Terry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20150918/2e521d69/attachment.html>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* cgit can't display certain file hashes
  2015-09-18 17:23 cgit can't display certain file hashes terrence.j.dunnigan
@ 2015-09-18 17:51 ` john
  2015-09-22 21:14   ` terrence.j.dunnigan
  0 siblings, 1 reply; 3+ messages in thread
From: john @ 2015-09-18 17:51 UTC (permalink / raw)


On Fri, Sep 18, 2015 at 05:23:32PM +0000, Dunnigan, Terrence J wrote:
> From time to time our cgit server (0.10.1) won't display a particular
> version of a file.
> 
> Say we have a file src.cpp in the repo repo.git. It has been modified
> five times, and the five file hashes are aaa, bbb, ccc, ddd, and eee.
> Aaa is the first commit and eee is the most recent commit.
> 
> We use this URL to display certain versions of the file:
> https://cgit/repo.git/blob/src.cpp?id=eee.
> 
> For whatever reason, all hashes are displaying except the penultimate
> commit, ddd.
> 
> https://cgit/repo.git/blob/src.cpp?id=eee displays the file just fine.
> https://cgit/repo.git/blob/src.cpp?id=ddd displays an error message
> "No repositories found".
> 
> The commit exists in the repo - I can see the file hash ddd listed via
> the command git ls-tree, so I'm very confused why cgit isn't able to
> display the file.
> 
> I know our version of cgit is an older version - was this a bug fixed
> in subsequent releases?

Do you have caching enabled?  By default "static" content accessed with
a fixed SHA-1 will be cached forever; I recommend changing
"cache-static-ttl" to something like 15 to see if that makes a
difference.

A recent commit c5975ae (ui-shared: cache errors for "dynamic TTL",
2015-08-14) changed this so that anything that results in an error will
use the "dynamic" cache timeout, but there has not been a release since
this went in.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* cgit can't display certain file hashes
  2015-09-18 17:51 ` john
@ 2015-09-22 21:14   ` terrence.j.dunnigan
  0 siblings, 0 replies; 3+ messages in thread
From: terrence.j.dunnigan @ 2015-09-22 21:14 UTC (permalink / raw)


Thanks John, that has helped.

Terry

-----Original Message-----
From: John Keeping [mailto:john at keeping.me.uk] 
Sent: Friday, September 18, 2015 12:52 PM
To: Dunnigan, Terrence J
Cc: cgit at lists.zx2c4.com
Subject: Re: cgit can't display certain file hashes

On Fri, Sep 18, 2015 at 05:23:32PM +0000, Dunnigan, Terrence J wrote:
> From time to time our cgit server (0.10.1) won't display a particular 
> version of a file.
> 
> Say we have a file src.cpp in the repo repo.git. It has been modified 
> five times, and the five file hashes are aaa, bbb, ccc, ddd, and eee.
> Aaa is the first commit and eee is the most recent commit.
> 
> We use this URL to display certain versions of the file:
> https://cgit/repo.git/blob/src.cpp?id=eee.
> 
> For whatever reason, all hashes are displaying except the penultimate 
> commit, ddd.
> 
> https://cgit/repo.git/blob/src.cpp?id=eee displays the file just fine.
> https://cgit/repo.git/blob/src.cpp?id=ddd displays an error message 
> "No repositories found".
> 
> The commit exists in the repo - I can see the file hash ddd listed via 
> the command git ls-tree, so I'm very confused why cgit isn't able to 
> display the file.
> 
> I know our version of cgit is an older version - was this a bug fixed 
> in subsequent releases?

Do you have caching enabled?  By default "static" content accessed with a fixed SHA-1 will be cached forever; I recommend changing "cache-static-ttl" to something like 15 to see if that makes a difference.

A recent commit c5975ae (ui-shared: cache errors for "dynamic TTL",
2015-08-14) changed this so that anything that results in an error will use the "dynamic" cache timeout, but there has not been a release since this went in.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-22 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-18 17:23 cgit can't display certain file hashes terrence.j.dunnigan
2015-09-18 17:51 ` john
2015-09-22 21:14   ` terrence.j.dunnigan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).