[opensuse-buildservice] Search results pages on build.opensuse.org are POST
Hi all, A bit of an issue with the search pages on http://build.opensuse.org is that they use the HTTP 'POST' method for the search query. This means than when using the 'back' button to return the list of search results, Firefox asks me if I want to re-post the query again, or cancel the request. The preferred approach is to use HTTP GET as it allows the browser to cache results, and makes web usability much better. Cheers JP --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Pye wrote:
A bit of an issue with the search pages on http://build.opensuse.org is that they use the HTTP 'POST' method for the search query. This means than when using the 'back' button to return the list of search results, Firefox asks me if I want to re-post the query again, or cancel the request. The preferred approach is to use HTTP GET as it allows the browser to cache results, and makes web usability much better.
John, seems you can also do HTTP GET (it hides in "Permanent link to this result"): http://software.opensuse.org/search?p=1&q=amarok&baseproject=openSUSE%3A10.3 A bookmarklet would look like this: http://software.opensuse.org/search?p=1&q=%s&baseproject=openSUSE%3A10.3 Always using HTTP GET instead of POST on the form would make it a little more straightforward though (just search, bookmark the result, and edit the bookmark to use a placeholder (%s) for a bookmarklet). About bookmarklets and bookmark keywords in Firefox: http://mozillanews.org/index.php3?article=55 (works in Konqueror too) And here for further details: http://dev-loki.blogspot.com/2007/11/opensuse-package-search-bookmarklets.ht... But OpenSearch support would be nice as well :) http://www.opensearch.org/Home http://en.wikipedia.org/wiki/OpenSearch I've quickly hacked openSearch configurations (XML) for the openSUSE Build Service (10.3 and 10.2): http://linux01.gwdg.de/~pbleser/files/opensearch/ (Packman and Webpin already have it on their site but I copied it there as well) Doesn't work with Konqueror as of now (which is quite sad as it's an open standard) but with Firefox, just go the the URL above and there you can add search engines to Firefox' search field (the search field should be highlighted with a drop-down arrow from where you can select which ones to add). Have a look at the openSearch XML files and the source of the page at the URL above to see how it's implemented (it's very simple, really). cheers - -- -o) Pascal Bleser http://linux01.gwdg.de/~pbleser/ /\\ <pascal.bleser@skynet.be> <guru@unixtech.be> _\_v The more things change, the more they stay insane. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFHMXn6r3NMWliFcXcRAvSHAJwKzpyPxiISsgkWGQIiuekYNNxutwCfXBvn WWR7X9RT7lDNO8eBNlZSh+c= =aMnp -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi Pascal Pascal Bleser wrote:
John Pye wrote:
A bit of an issue with the search pages on http://build.opensuse.org is that they use the HTTP 'POST' method for the search query. This means than when using the 'back' button to return the list of search results, Firefox asks me if I want to re-post the query again, or cancel the request. The preferred approach is to use HTTP GET as it allows the browser to cache results, and makes web usability much better.
John, seems you can also do HTTP GET (it hides in "Permanent link to this result"): http://software.opensuse.org/search?p=1&q=amarok&baseproject=openSUSE%3A10.3
My comment actually referred to the Build Service search, which I believe may be separate to the 'software.opensuse.org' search. But in any case, the problem seems to have been fixed in the new layout. The page https://build.opensuse.org/search uses method="GET" instead of "POST". But I note that there no longer is a search box on every page. I would personally like to see the search box brought back: there's plenty of room for it in the right-side of the page header, and it's a really useful feature, and it saves clicks.
A bookmarklet would look like this: http://software.opensuse.org/search?p=1&q=%s&baseproject=openSUSE%3A10.3
Always using HTTP GET instead of POST on the form would make it a little more straightforward though (just search, bookmark the result, and edit the bookmark to use a placeholder (%s) for a bookmarklet).
About bookmarklets and bookmark keywords in Firefox: http://mozillanews.org/index.php3?article=55 (works in Konqueror too)
And here for further details: http://dev-loki.blogspot.com/2007/11/opensuse-package-search-bookmarklets.ht...
But OpenSearch support would be nice as well :) http://www.opensearch.org/Home http://en.wikipedia.org/wiki/OpenSearch
I've quickly hacked openSearch configurations (XML) for the openSUSE Build Service (10.3 and 10.2): http://linux01.gwdg.de/~pbleser/files/opensearch/
I got an error: XML Parsing Error: not well-formed Location: http://linux01.gwdg.de/~pbleser/files/opensearch/openSUSE_Build_Service_10.3... Line Number 8, Column 55: template="http://software.opensuse.org/search?p=1&q={searchTerms}&baseproject=openSUSE%3A10.3"> --------------------------------------------------------------------^
(Packman and Webpin already have it on their site but I copied it there as well) Doesn't work with Konqueror as of now (which is quite sad as it's an open standard) but with Firefox, just go the the URL above and there you can add search engines to Firefox' search field (the search field should be highlighted with a drop-down arrow from where you can select which ones to add).
Have a look at the openSearch XML files and the source of the page at the URL above to see how it's implemented (it's very simple, really).
Cheers JP --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Pye wrote: [...]
I've quickly hacked openSearch configurations (XML) for the openSUSE Build Service (10.3 and 10.2): http://linux01.gwdg.de/~pbleser/files/opensearch/
I got an error:
XML Parsing Error: not well-formed Location: http://linux01.gwdg.de/~pbleser/files/opensearch/openSUSE_Build_Service_10.3... Line Number 8, Column 55: template="http://software.opensuse.org/search?p=1&q={searchTerms}&baseproject=openSUSE%3A10.3"> --------------------------------------------------------------------^
Thanks, fixed. cheers - -- -o) Pascal Bleser http://linux01.gwdg.de/~pbleser/ /\\ <pascal.bleser@skynet.be> <guru@unixtech.be> _\_v The more things change, the more they stay insane. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFHMfF3r3NMWliFcXcRArPrAJ0cdn6l3QcQ+yFlVg/lITbagXUwvgCfYUP4 epaUu0WJYEF+jYT4akvLNoE= =UHOC -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
John Pye wrote:
Hi Pascal
Pascal Bleser wrote:
A bit of an issue with the search pages on http://build.opensuse.org is that they use the HTTP 'POST' method for the search query. This means than when using the 'back' button to return the list of search results, Firefox asks me if I want to re-post the query again, or cancel the request. The preferred approach is to use HTTP GET as it allows the browser to cache results, and makes web usability much better. John, seems you can also do HTTP GET (it hides in "Permanent link to
John Pye wrote: this result"): http://software.opensuse.org/search?p=1&q=amarok&baseproject=openSUSE%3A10.3
My comment actually referred to the Build Service search, which I believe may be separate to the 'software.opensuse.org' search. But in any case, the problem seems to have been fixed in the new layout. The page https://build.opensuse.org/search uses method="GET" instead of "POST".
But I note that there no longer is a search box on every page. I would personally like to see the search box brought back: there's plenty of room for it in the right-side of the page header, and it's a really useful feature, and it saves clicks.
The search form was removed mainly because it caused problems when one tried to search when he wasn't logged in. POST parameters aren't preserved during the ichain login process, so the search always produced errors in this case. This is solved by switching to GET for the search forms (thanks for the hint by the way), now the parameters are part of the URL and are stored during logging in, so we can bring back the search form. Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Andreas Bauer
-
John Pye
-
Pascal Bleser