t/db_dependent/www/regressions.t .. # Failed test '302 for biblionumber with matching URI' # at t/db_dependent/www/regressions.t line 105. # got: '404' # expected: '302' # Failed test '302 for itemnumber with matching URI' # at t/db_dependent/www/regressions.t line 109. # got: '404' # expected: '302' # Failed test '302 for biblionumber with matching URI' # at t/db_dependent/www/regressions.t line 120. # got: '404' # expected: '302' # Failed test '302 for itemnumber with matching URI' # at t/db_dependent/www/regressions.t line 124. # got: '404' # expected: '302' # Failed test '302 for biblionumber with matching URI' # at t/db_dependent/www/regressions.t line 135. # got: '404' # expected: '302' # Failed test '302 for itemnumber with matching URI' # at t/db_dependent/www/regressions.t line 139. # got: '404' # expected: '302' # Looks like you failed 6 tests of 36. t/db_dependent/www/regressions.t .. 1/1 # Failed test 'open redirection vulnerabilities in tracklinks' # at t/db_dependent/www/regressions.t line 141.
Created attachment 95928 [details] [review] Bug 24144: (bug 23836 follow-up) Fix regressions.t tests Bug 24144 changes the behavior for tracklinks.pl but did not adjust the tests. We must then expect 404 if the pref is turned off. Also mock_preference cannot work (we are hitting the web server and so need to set the value in DB and flush the L1 caches)
Created attachment 95929 [details] [review] Bug 24144: (bug 23836 follow-up) Fix regressions.t tests Bug 23836 changes the behavior for tracklinks.pl but did not adjust the tests. We must then expect 404 if the pref is turned off. Also mock_preference cannot work (we are hitting the web server and so need to set the value in DB and flush the L1 caches) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Thanks for the quick fix Jonathan, Passing QA and Pushing
Nice work everyone! Pushed to master for 20.05
backported to 19.11.x for 19.11.01
backported to 19.05.x for 19.05.06