FS#20673 - please disallow upload invalid format release version package
Attached to Project:
AUR web interface
Opened by Daniel YC Lin (dlin) - Monday, 30 August 2010, 07:15 GMT
Last edited by Lukas Fleischer (lfleischer) - Thursday, 20 January 2011, 17:30 GMT
Opened by Daniel YC Lin (dlin) - Monday, 30 August 2010, 07:15 GMT
Last edited by Lukas Fleischer (lfleischer) - Thursday, 20 January 2011, 17:30 GMT
|
Details
I've upload a grub4dos PKGBUILD.
I used following method to generate pkgver _pkgver=0.4.5b _pkgdate=2010-08-12 pkgver=${_pkgver}_${_pkgdate//-/} # this method will failed on aur webpage I found everything is OK, but the web display the wrong version number as: 0.4.5b_2010-08-12//-/}-1 I suggest to added a blocker to stop user upload invalid version number package. That include '/', '}' char. Or more, it use a regular expression to check if it match the <version>-<release> format. |
This task depends upon
Closed by Lukas Fleischer (lfleischer)
Thursday, 20 January 2011, 17:30 GMT
Reason for closing: Duplicate
Additional comments about closing: Dupe of FS#15043 . Also, this is probably never gonna be implemented unless we
decide to write a full bash parser.
Thursday, 20 January 2011, 17:30 GMT
Reason for closing: Duplicate
Additional comments about closing: Dupe of
The variable used there can not use bash's variable functions.
The pkgver has such limitation.
I suggest add a check on upload php web page to prevent such problem.
This issue should be close.