From: Jakub Narebski <jnareb@gmail.com>
To: "Heiko W. Rupp" <hwr@pilhuhn.de>
Cc: git@vger.kernel.org
Subject: Re: GitWeb and atom feed links
Date: Mon, 13 Feb 2012 23:17:34 +0100 [thread overview]
Message-ID: <201202132317.35255.jnareb@gmail.com> (raw)
In-Reply-To: <F3741779-8DDA-4275-BB68-24D02297C702@pilhuhn.de>
Heiko W. Rupp wrote:
>
> when you e.g. look at http://git.kernel.org/?p=git/git.git;a=summary
> and then the lower right, there are two buttons for feeds.
Yes, [Atom] and [RSS], for different formats of the same feed.
> If you click on e.g. atom, you end up with an url of
> http://git.kernel.org/?p=git/git.git;a=atom
> where the output is not a feed in atom format, but plain html with
> tables etc.
>
> If you change the url to http://git.kernel.org/?p=git/git.git&a=atom
> the output is a correct atom feed (same for rss).
I don't know what is the source of bug you are seeing; I suspect some
trouble with output caching that git.kernel.org fork of gitweb has added,
but this isn't it. Those two forms of 'atom' URL are equivalent.
Wikipedia says in http://en.wikipedia.org/wiki/Query_string:
"* The query string is composed of a series of field-value pairs.
* The field-value pairs are each separated by an equals sign. The
equals sign may be omitted if the value is an empty string.
* The series of pairs is separated by the ampersand, '&' or
semicolon, ';'.
[...]
W3C recommends that all web servers support semicolon separators
in the place of ampersand separators.[4]"
[4]: http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2
"B.2.2 Ampersands in URI attribute values
----------------------------------------
The URI that is constructed when a form is submitted may be used as an
anchor-style link (e.g., the href attribute for the A element).
Unfortunately, the use of the "&" character to separate form fields
interacts with its use in SGML attribute values to delimit character
entity references. For example, to use the URI "http://host/?x=1&y=2"
as a linking URI, it must be written <A href="http://host/?x=1&y=2">
or <A href="http://host/?x=1&y=2">.
We recommend that HTTP server implementors, and in particular, CGI
implementors support the use of ";" in place of "&" to save authors
the trouble of escaping "&" characters in this manner."
CGI(3pm) says:
"-newstyle_urls
Separate the name=value pairs in CGI parameter query strings with semi-
colons rather than ampersands. For example:
?name=fred;age=24;favorite_color=3
Semicolon-delimited query strings are always accepted, and will be
emitted by self_url() and query_string(). newstyle_urls became the
default in version 2.64."
--
Jakub Narebski
Poland
prev parent reply other threads:[~2012-02-13 22:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-13 20:43 GitWeb and atom feed links Heiko W. Rupp
2012-02-13 22:17 ` Jakub Narebski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201202132317.35255.jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=hwr@pilhuhn.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).