Re: [FBR] Hotfix pagure on src.fp.o

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 12, 2017 at 09:40:53AM +0200, Pierre-Yves Chibon wrote:
> Good Morning Everyone,
> 
> In order to fix https://pagure.io/releng/fedora-scm-requests/issue/1078 I would
> like to manually apply the following change to pagure on src.fp.o:
> 
> --- a/pagure/forms.py
> +++ b/pagure/forms.py
> @@ -31,7 +31,7 @@ import pagure.lib
> 
>  STRICT_REGEX = '^[a-zA-Z0-9-_]+$'
>  TAGS_REGEX = '^[a-zA-Z0-9-_, .]+$'
> -PROJECT_NAME_REGEX = '^[a-zA-z0-9_][a-zA-Z0-9-_]*$'
> +PROJECT_NAME_REGEX = '^[a-zA-z0-9_][a-zA-Z0-9-_\.]*$'
>  FALSE_VALUES = ('false', '', False, 'False', 0, '0')

Following up on this, it seems we also need to allow '+' (cf [1])

+1 to adjust the regex to:
PROJECT_NAME_REGEX = '^[a-zA-z0-9_][a-zA-Z0-9-_\.\+]*$'

Note: the 3.8 release makes this a configuration variable, so potentially easier
to adjust :)


Pierre


[1] https://pagure.io/releng/issue/7041

Attachment: signature.asc
Description: PGP signature

_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux