Split from bug 21336
Created attachment 83196 [details] [review] Bug 21998: Add pattern parameter in Koha::Token Allow a pattern too in Koha::Token->generate. Only supported length. Does not affect CSRF calls. So tiny change without further impact. Test plan: Run t/Token.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
I am going to add mine bit of work here, stay tuned ;)
Created attachment 83347 [details] [review] Bug 21998: Add pattern parameter in Koha::Token Allow a pattern too in Koha::Token->generate. Only supported length. Does not affect CSRF calls. So tiny change without further impact. Test plan: Run t/Token.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Created attachment 83348 [details] [review] Bug 21998: Throw exception on bad pattern Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Created attachment 84401 [details] [review] Bug 21998: Throw exception on bad pattern Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Cross sign-offs ;)
ok 4 - Only uppercase letters Use of uninitialized value $ch in string ne at /usr/share/perl5/String/Random.pm line 141. ok 5 - Exception should be thrown when wrong pattern is used This warning from String::Random is annoying, but no problem..
Created attachment 85791 [details] [review] Bug 21998: Silent tests
(In reply to Jonathan Druart from comment #8) > Created attachment 85791 [details] [review] [review] > Bug 21998: Silent tests Thanks Jonathan
Created attachment 86665 [details] [review] Bug 21998: Add pattern parameter in Koha::Token Allow a pattern too in Koha::Token->generate. Only supported length. Does not affect CSRF calls. So tiny change without further impact. Test plan: Run t/Token.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Created attachment 86666 [details] [review] Bug 21998: Throw exception on bad pattern Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Created attachment 86667 [details] [review] Bug 21998: Silent tests Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Small enhancement with no noticeable effects and no regressions. False positive in the QA scripts about POD missing. Passing QA
Awesome work all! Pushed to master for 19.05
As a preparatory enhancement for GDPR work I've chosen to backport this one. Pushed to 18.11.x for 18.11.05
not backporting enhancement to 18.05.x