Re: tiny trouble using 'Recent build results' query page
Hi,
Following my previous email, here is joined a patch (using GIT) that is related
to small HTML rendering corrections and other changes related to my trouble.
But it is not clear to go to it related to the absence of 'suite' or an empty in
the HTTP query with the sanitize_params function. This tries to look also to
alternative 'dist' parameter and to also check value calling check_suite().
As a general remark, it is not clear the purpose of this parameter sanitizing to
prevent from SQL injection or to check value that are existing one and getting a
default?
Also the SQL query could be empty having bad values or nothing to deliver for
the 'good' parameters.
In brief, my problem is not yet solved.
Regards,
Patrice
Le lundi 06 mars 2017 à 20:43 +0100, Patrice Duroux a écrit :
> Dear Debian WB Team,
>
> Using the query page at https://buildd.debian.org/status/recent.php
> and selecting 'Suite: --any--' will send to the following URL:
> https://buildd.debian.org/status/recent.php?pkg=&a=amd64&suite=&limit=30
> that does not give the expected result as the one by:
> https://buildd.debian.org/status/recent.php?pkg=&a=amd64&limit=30
> Isn't it?
> Also the source code of the page is showing strange syntax for the first
> 'option' element (a whitespace is missing) and wouldn't it be better to use
> double quote in attribute value instead of single:
>
> <form action='recent.php' method='get'>
> <p>
> Package(s): <input size='30' placeholder='pkg1, pkg2, maintainer@debian.org'
> type='text' name='pkg' value='' /> Arch(s): <input
> placeholder='amd64,armel,all,...' type='text' name='a' value='' /> Suite:
> <select name='suite' id='suite'>
> <option value=''selected='selected'>--any--</option>
> <option value='sid'>sid</option>
> <option value='stretch'>stretch</option>
> <option value='stretch-backports'>stretch-backports</option>
> <option value='jessie'>jessie</option>
> <option value='jessie-kfreebsd'>jessie-kfreebsd</option>
> <option value='jessie-backports'>jessie-backports</option>
> <option value='wheezy-security'>wheezy-security</option>
> <option value='wheezy-backports'>wheezy-backports</option>
> <option value='wheezy-backports-sloppy'>wheezy-backports-sloppy</option>
> <option value='experimental'>experimental</option>
> </select>
>
> Regards,
> Patrice
usage: git [--version] [--help] [-C <path>] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
Ci-dessous les commandes Git habituelles dans diverses situations :
démarrer une zone de travail (voir aussi : git help tutorial)
clone Cloner un dépôt dans un nouveau répertoire
init Créer un dépôt Git vide ou réinitialiser un existant
travailler sur la modification actuelle (voir aussi : git help revisions)
add Ajouter le contenu de fichiers dans l'index
mv Déplacer ou renommer un fichier, un répertoire, ou un lien symbolique
reset Réinitialiser la HEAD courante à l'état spécifié
rm Supprimer des fichiers de la copie de travail et de l'index
examiner l'historique et l'état (voir aussi : git help revisions)
bisect Trouver par recherche binaire la modification qui a introduit un bogue
grep Afficher les lignes correspondant à un motif
log Afficher l'historique des validations
show Afficher différents types d'objets
status Afficher le statut de la copie de travail
agrandir, marquer et modifier votre historique
branch Lister, créer ou supprimer des branches
checkout Basculer de branche ou restaurer la copie de travail
commit Enregistrer les modifications dans le dépôt
diff Afficher les changements entre les validations, entre validation et copie de travail, etc
merge Fusionner deux ou plusieurs historiques de développement ensemble
rebase Réapplication des commits sur le sommet de l'autre base
tag Créer, lister, supprimer ou vérifier un objet d'étiquette signé avec GPG
collaborer (voir aussi : git help workflows)
fetch Télécharger les objets et références depuis un autre dépôt
pull Rapatrier et intégrer un autre dépôt ou une branche locale
push Mettre à jour les références distantes ainsi que les objets associés
'git help -a' et 'git help -g' listent les sous-commandes disponibles et
quelques concepts. Voir 'git help <commande>' ou 'git help <concept>'
pour en lire plus à propos d'une commande spécifique ou d'un concept.
Reply to: