> On 06/09/2015 11:54 PM, H. Peter Anvin via Syslinux wrote: > > The git daemon on zytor is now functional again, as I managed to carve > > out a little bit of time to dig into the selinux problem. Cloning git > > via either http://git.zytor.com/ or git://git.zytor.com/ > > > > However, the web interface is still broken. I'll see if I can fix it in > > the next few minutes, otherwise I'll probably have to pass. > > > > -hpa > > Alright, it looks like gitweb-caching is simply no longer maintained, so > I bit the bullet and switched git.zytor.com over to using cgit. It > seems to work for me, holler if it doesn't... > > -hpaHi Peter, Thank you. Moving from gitweb-caching to cgit causes most http(s) links that are already pointing to git.zytor.com to fail with the message "Invalid request". Such links might exist in bug reports, mailing lists, documentation, and wiki pages; certainly in those that are part of The Syslinux Project. Considering that gitweb is part of (or bundled with) the Git distribution archives, is it really necessary to move to cgit? Perhaps it is possible to simply keep (at least for now) the latest version available of gitweb-caching? Or perhaps there is a way to avoid the "Invalid request" message? Maybe by some (automatic) redirection to the adequate corresponding new "cgit" link? In the case of the official Syslinux wiki, we could manually update every failing link, but that doesn't help links already posted in prior emails (e.g. in the Syslinux Mailing List, in bugzilla.syslinux.org ...). And then there are other (external) sites, mailing lists, bug reports... @Warthog9, any suggestions? TIA, Ady.
On 06/10/2015 01:54 AM, Ady via Syslinux wrote:> > Hi Peter, > > Thank you. > > Moving from gitweb-caching to cgit causes most http(s) links that are > already pointing to git.zytor.com to fail with the message "Invalid > request". > > Such links might exist in bug reports, mailing lists, documentation, > and wiki pages; certainly in those that are part of The Syslinux > Project. > > Considering that gitweb is part of (or bundled with) the Git > distribution archives, is it really necessary to move to cgit? > > Perhaps it is possible to simply keep (at least for now) the latest > version available of gitweb-caching? >It doesn't work with current versions of Perl -- if you recall, it spewed out an error page. The noncaching version, which is the one included with git, brings even a beefy server with little traffic like terminus to its knees, which just isn't acceptable. So unless someone wants to keep gitweb-caching at least alive, it isn't an option.> Or perhaps there is a way to avoid the "Invalid request" message? Maybe > by some (automatic) redirection to the adequate corresponding new > "cgit" link?It certainly would be possible to do a redirection, if one can come up with a mapping from gitweb queries to cgit queries, which I don't know if someone has already done...> In the case of the official Syslinux wiki, we could manually update > every failing link, but that doesn't help links already posted in prior > emails (e.g. in the Syslinux Mailing List, in bugzilla.syslinux.org > ...). And then there are other (external) sites, mailing lists, bug > reports... > > @Warthog9, any suggestions? >
> > Or perhaps there is a way to avoid the "Invalid request" message? Maybe > > by some (automatic) redirection to the adequate corresponding new > > "cgit" link? > > It certainly would be possible to do a redirection, if one can come up > with a mapping from gitweb queries to cgit queries, which I don't know > if someone has already done... >Apparently, it has been done, (e.g. fedoraproject.org _partially_ did it). I have found: http://ao2.it/en/blog/2011/05/06/migrate-gitweb-cgit-url-rewrite-rules It mentions similar goals, of maintaining already-posted links as valid. Whether it is appropriate for our case, I don't know. The idea (well, what I would like to see) is that links already pointing to something like: http://git.zytor.com/?p=syslinux/syslinux.git;a=commit;h=<SOME_COMMIT> would *redirect* to: http://git.zytor.com/syslinux/syslinux.git/commit/?id=<SOME_COMMIT> for example and among others. Some other _examples_ for automatic *redirection* (and there might be others): From: http://git.zytor.com/?o=age to: http://git.zytor.com/?s=idle From: http://git.zytor.com/?p=users/<SOME_USER> to: http://git.zytor.com/users/<SOME_USER> When starting with http://git.zytor.com/ : From: ;a=commit to: /commit From: ;a=blob_plain;f=<SOME_FILE> to: /plain/<SOME_FILE> From: ;hb=HEAD to: ?id=HEAD (perhaps this is different with other tags?) From: ;h=<SOME_COMMIT> to: /?id=<SOME_COMMIT> TIA, Ady.