[Bug 39232] New: auto_rebase script can produce unexpected changes causing errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39232 Bug ID: 39232 Summary: auto_rebase script can produce unexpected changes causing errors Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: victor@tuxayo.net QA Contact: testopia@bugs.koha-community.org I tried it on Bug 23732. See auto_rebase-output attached. It errored on request.tt. But it still managed to commit. No conflict. After testing, the basic functionality of the patch still works. So that looked ok and I moved on with it. But now looking at the diff there was definitely an issue. 2024-10-28 version of the 1st patch: https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=173427&action=diff&collapsed=&headers=1&format=raw Same patch after auto rebase: https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178886&action=diff&collapsed=&headers=1&format=raw 33.87 KB => 207.02 KB Doing a diff between the two diffs shows massive additional changes in request.tt And they aren't in a part changed by the original patch. (so I rolled back to the old patch in the ticket) And the error the script got is in those additional changes «input class="multi_hold_item_checkbox» and the following </td> This is not in the original patch. I would have expected the error that started it all to be in the actual patch. So maybe it didn't start it all here. ----------- Looking at other changes on Reserves.pm: 2024-10-28 version of the 1st patch: https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=173427&action=diff#a/C4/Reserves.pm_sec8 Same patch after auto_rebase: https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178886&action=diff#a/C4/Reserves.pm_sec10 So now there are changes to sub _koha_notify_reserve and other subs after that. And they are removing things! All while they was no error reported in that file. So this plus the error on the <td> next to multi_hold_item_checkbox that is totally out of the original changes is suspicious. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39232 --- Comment #1 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Created attachment 178948 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178948&action=edit auto_rebase-output.txt -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39232 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|auto_rebase script can |auto_rebase script |produce unexpected changes |confusing handling of |causing errors |incorrect HTML structures Severity|major |normal -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39232 --- Comment #2 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Bug 23732 introduces stuff removed with bug 38714. +[% IF reserves_count >= Koha.Preference('maxreserves') %] + <span class="text-danger"> +[% ELSE %] + <span> +[% END %] + [% tx('{preference_name} preference:', { preference_name = '<em>maxreserves</em>' }) | $raw %] + <strong>[% Koha.Preference('maxreserves') | html %]</strong> +</span> So the problem is more about that it's not clear. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39232 --- Comment #3 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Because the error shows stuff not in the patch. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org