Commit Graph

2902 Commits

Author SHA1 Message Date
Wainui Witika-Park 240e17db07
Update release notes for 22.11.38 release
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2026-05-28 12:25:10 +12:00
Jacob O'Mara a5b6cbe1a8
Update release notes for 22.11.37 release
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
2026-04-23 14:43:54 +01:00
Lucas Gass 7f101ad1fb
Update release notes for 22.11.36 release 2026-04-21 11:46:19 +12:00
Wainui Witika-Park 26b9527810
Update release notes for 22.11.35 release
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2026-02-24 14:38:08 +13:00
Lucas Gass 16f058e0ab
Fix release notes 2026-01-29 19:40:51 +13:00
Wainui Witika-Park 3627ecbbf7
Update release notes for 22.11.34 release
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2026-01-29 19:40:51 +13:00
Aleisha Amohia 7e7fc48773
Update release notes for 22.11.33 release
Signed-off-by: Aleisha Amohia <aleisha@catalyst.net.nz>
2025-12-05 12:19:52 +13:00
Wainui Witika-Park 32e9471970
Update release notes for 22.11.32 release
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2025-10-30 11:43:10 +13:00
Wainui Witika-Park 34c55f59e4
Update release notes for 22.11.31 release
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2025-09-26 13:57:01 +12:00
David Cook d4431c19a6
Bug 40748: Check for HTTP URLs and skip shell when using system()
This change checks for HTTP(S) URLs and skips the shell when using
system() so that shell metacharacters aren't interpreted.

Test plan:
0. Apply the patch
1. Insert the following into the Babeltheque_url_update system preference:
$(whoami > /tmp/rce.log)
2. koha-shell kohadev
3. perl misc/cronjobs/social_data/update_social_data.pl
4. Note the script says the following:
$(whoami > /tmp/rce.log) is not a HTTP URL. Aborting.
5. Note also that /tmp/rce.log is not created
6. Change Babeltheque_url_update syspref to something like the following:
http://localhost:8080
7. perl misc/cronjobs/social_data/update_social_data.pl
8. Note that the wget succeeds but the bunzip2 fails (as expected) since
we haven't fetched a bzipped file
9. Try to create a payload that passes the HTTP URL test with shell
metacharacters and note that they're not interpetted and instead
just used as part of a URL string.

Signed-off-by: Jake Deery <jake.deery@openfifth.co.uk>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
2025-09-26 13:57:00 +12:00
Jake Deery fe969087f3
Bug 40748: Fix RCE in update_social_data.pl
This patch fixes an identified RCE in the update_social_data.pl
social_data, which when executed, allows an attacker to run arbitrary
code on the system's shell.

TO TEST:

a)  In the Babeltheque_url_update syspref, wrap any bash in $(), and then
run the update_social_data.pl script.
    *)  For example, $(whoami >
/tmp/rce.log) will output to a file the username the perl script is
running as.
APPLY PATCH
b)  Run the update_social_data.pl script again. The string is now
meta-escaped, and the RCE no longer works.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
2025-09-26 13:56:51 +12:00
Wainui Witika-Park 8b2d721b07
Update release notes for 22.11.30 release
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2025-08-26 19:45:08 +12:00
Wainui Witika-Park 6408adbbde
Update release notes for 22.11.29 release
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2025-07-25 11:54:04 +12:00
Wainui Witika-Park c37c1361fb
Update release notes for 22.11.28 release
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
2025-06-26 12:12:32 +12:00
Wainui Witika-Park da085848ad Bug 31143: (Follow-up) Add description to fix_invalid_dates.pl
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
2025-06-23 05:54:44 +00:00
Nick Clemens 999caa300a Bug 31143: (QA follow-up) Tidy
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
2025-06-23 05:54:44 +00:00
Nick Clemens da6d9be0f7 Bug 31143: (QA follow-up) move script to maintenance
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
2025-06-23 05:54:44 +00:00
wainuiwitikapark 72733596ff Bug 31143: Fix/identify all cases where '0000-00-00' may still remain in the database
This patch identifies date fields in the database (timestamp, datetime, date) that are 0000-00-00 and sets them to NULL

Test plan -

Examples of setting up some 0000-00-00 date fields:

e.g. Borrowers table
update borrowers set dateexpiry="0000-00-00" where borrowernumber=49;

e.g. Items table
update items set datelastseen="0000-00-00" where itemnumber=12;

To identify the cases:
1) Set up some 0000-00-00 date fields
2) Run the misc/maintenance/search_for_data_inconsistencies.pl script
3) Run fix_invalid_dates.pl -v

To fix the cases:
1) Run fix_invalid_dates.pl -c -v
2) Notice the value has changed from 0000-00-00 to NULL

e.g. Borrowers table
select dateexpiry from borrowers where borrowernumber=49;

e.g. Items table
select datelastseen from items where itemnumber=12;

Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
2025-06-23 05:54:44 +00:00
Fridolin Somers 9728b4f78c Bug 34091: Fix typo log-modules in help for cleanupdatabase.pl
This parameter is actually --log-module.

Test plan :
Run misc/cronjobs/cleanup_database.pl -h
Confirm you see --log-module

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
2025-06-23 02:26:28 +00:00
Paul Derscheid b9160c9ea1 Update release notes for 22.11.27 release
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com>
2025-05-27 14:45:37 +00:00
Jesse Maseto f4e693c908 Update release notes for 22.11.26 release
Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com>

	new file:   misc/release_notes/release_notes_22.11.26.html
	new file:   misc/release_notes/release_notes_22_11_26.md
2025-04-24 17:04:45 +00:00
Paul Derscheid 270b3caf09
Correct generated release notes for 22.11.25
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-03-24 19:41:54 +01:00
JesseM d46bf54042 generate release notes for 22.11.25
Signed-off-by: JesseM <jesse@bywatersolutions.com>
2025-03-24 16:15:04 +00:00
Paul Derscheid 5116f99179
Correct release notes for 22.11.24 release
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-03-03 15:03:32 +01:00
JesseM 44070a1697 generate release notes for 22.11.24
Signed-off-by: JesseM <jesse@bywatersolutions.com>
2025-02-26 17:28:39 +00:00
JesseM 2ec86ee2df generate release notes for 22.11.23
Signed-off-by: JesseM <jesse@bywatersolutions.com>
2025-01-09 17:40:56 +00:00
Lucas Gass 0f7a17530d Generate release notes for the 22.11.22 release 2024-11-07 23:36:17 +00:00
Kyle M Hall 4c81c3262e Bug 33339: Prevent Formula Injection (CSV Injection) in CSV files
The system is vulnerable to Formula Injection attacks as the data
stored within the database and exported as CSV/Excel is not being
sanitized or validated against implanted formula payloads

This patch modifies all uses of Text::CSV and derived classes to pass
the "formula" parameter with value of "empty" which replaces formulas
by empty string.

Test Plan:
1) Apply this patch
2) For guided_reports.pl, attempt to export CSV where you've set a column to a formula somehow
   ( such as "=1+3" )
3) Export that CSV file
4) Note the formula has not been exported
5) Repeat this plan for the remaining scripts that export CSV files
   where users can define the outputted data

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Fixed two conflicts. I have tested that this works as advertised on:
- Reports (Download > Comma separated text (.csv)) [Text::CSV::Encoded]
- Circulation > Overdues > Download file of all overdues [Text::CSV_XS]
- misc/export_borrowers.pl [Text::CSV]
This covers all modules used, and both GUI and command line.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
[EDIT] Change none to empty in the commit message ! None is the default,
doing nothing. Empty clears the formulas.
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
(cherry picked from commit 96152682bf)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-11-07 23:29:11 +00:00
Frédéric Demians 86e2c8f2a8 Update release notes for 22.11.21 release
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2024-10-07 20:00:42 +02:00
Katrin Fischer a79a80fdf9
Update release notes for 22.11.20 release
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-08-14 08:24:54 +02:00
Tomas Cohen Arazi 6d921f2120
Update release notes for 22.11.20 release
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2024-08-13 11:54:06 -03:00
Frédéric Demians 3ce9462d57 Update release notes for 22.11.19 release
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2024-07-26 09:01:37 +02:00
Frédéric Demians 1ff5bc54e7 Update release notes for 22.11.18 release 2024-06-18 17:18:59 +02:00
Frédéric Demians 99b47d0872 Update release notes for 22.11.17 release
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2024-05-10 08:08:24 +00:00
Frédéric Demians eec863243e Update release notes for 22.11.16 release 2024-03-25 11:04:54 +00:00
Fridolin Somers 02fbf0412a Bug 36323: Move koha_perl_deps.pl to misc/devel
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit e865f1e1ae67266e822be2690dc5610b22cdded1)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 5aaa696afed47906b3f25e440c9a9243dbc1d489)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2024-03-25 08:03:56 +00:00
Frédéric Demians 26b9e2ed43 Update release notes for 22.11.15 release
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2024-02-27 08:02:23 +01:00
Frédéric Demians ccd357e14d Update release notes for 22.11.14 release
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2024-01-29 10:26:33 +01:00
Frédéric Demians d65f55f740 HTML release notes version
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2024-01-02 09:34:11 +01:00
Frédéric Demians 60ea9276da Ultra minor fix on release notes 2023-12-31 10:30:24 +01:00
Frédéric Demians 13cb29427f Release notes for 22.11.13 (dec 2023)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2023-12-30 09:46:33 +01:00
Pedro Amorim c6b7abab73 Update release notes for 22.11.12 release
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
2023-11-28 13:45:56 -01:00
Koha translators 8901b3dd7b Bug 35174: Remove .po files from Koha 2023-11-22 09:36:09 +01:00
Pedro Amorim 2e99040bfe Rmaint fix: Revert bug 35148 as it needs 31453 not in 22.11.x 2023-11-15 12:41:10 -01:00
Katrin Fischer 1a04d21a71 Bug 34704: Remove regex for adding additional line breaks to print templates
This makes sure that we don't change the line breaking for either
HTML nor plain text print notices.
For plain text, the <pre> is used to keep the line breaks as defined
in the notices template.
For HTML we require on the line breaks added by block elements in the
HTML notice, not adding any additional ones like before.
This gives the full control of the formatting to the notice editor.

To test:
* Make sure your patron doesn't have an email address
* Make sure to check the hold filled notice in messaging preferences
* Place a old on any item
* Checkin the item
* Confirm hold
* Verify notices tab shows the Hold (print) notice
* ./misc/cronjobs/gather_print_notices.pl ./ --html
* Verify the generated file has the HTML output wrapped in pre.
* Reformat the HOLD print notice to be HTML by setting the checkbox.
  Mmake sure to add some empty lines for (they should not print later)
  and some <br>, <p>, <div>  - They should be reflected in the notice later.
* Repeat test.
* All should be well :)

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4c15ad658d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit e0eb511d59)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
2023-11-14 13:49:43 -01:00
Tomas Cohen Arazi 5027f0c8c1 Bug 30024: Make link_bibs_to_authorities.pl rely on LinkerRelink
This patch makes the trivial change of making the linker script rely on
LinkerRelink instead of CatalogModuleRelink, which is confusing and
incorrect (according to both sysprefs descriptions).

To test:
1. Verify that relinking is now tied to the right syspref

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4310e13a64)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 234e00b1d6)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
2023-11-14 13:41:06 -01:00
Thibaud Guillot 5ae7da9352 Bug 29811: Add timestamp option on authority record type
According to the timestamp option for bibs record type I added the
timestamp option for authority records.
Timestamp is already present in database on field "modification_time"

Test Plan :
1 - Be sure to have authority record type for easiest test create one
2 - Execute script export_records.pl in your koha/misc directory and
choose a date (example yesterday if you just created an authority
right now).(see export_records.pl -h for help)
3 - Timestamp option has no effect on authority record type
4 - Execute script again but choose the date of tomorrow for example
5 - Same result
6 - Apply this patch
7 - Play again steps 2 and 4
8 - On step 2 you will see only your authorities created today (because
script show you authority has changes since the date you choose in
option) and for step 4 you must see an empty file.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 24ee60cb62)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit e5d014de8c)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
2023-11-13 15:28:47 +00:00
Marcel de Rooy 74439523cf Bug 35141: (QA follow-up) Increment the bad count
Also move earlier print to warn for consistency.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
(cherry picked from commit 3439185bb0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit c3fda28fc5)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
2023-11-13 15:22:16 +00:00
Nick Clemens 760c48886a Bug 35141: Prevent link_bibs_to_authorities from dying on invalid metadata
When fetching the record we need to eval in case of exception

To test:
1 - Apply first patch
2 - perl misc/link_bibs_to_authorities.pl
3 - Note it dies on parser error at record 369
4 - Apply this patch
5 - perl misc/link_bibs_to_authorities.pl
6 - The process completes - with warning thrown on record 369

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
(cherry picked from commit 706641e747)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit ed2bb9534a)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
2023-11-13 15:22:15 +00:00
Nick Clemens a552631cd7 Bug 35141: Catch ES search exceptions in link_bibs_to_authorities, warn, and continue
This patch simplay adds an eval and a warning to link_bibs_to_authorities to catch any errors while searching and continue linking.

To test:
1 - edit /etc/kohia/sites/kohadev/koha-conf.xml and add to elasticsearch stanza
    <request_timeout>0</request_timeout>
2 - perl misc/link_bibs_to_authorities.pl
3 - It dies immediately
4 - Apply patch
5 - perl misc/link_bibs_to_authorities.pl
6 - Now it tries every record, throwing warnings along the way, but completes

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
(cherry picked from commit 22c0be31c7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 07cf6fccc0)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
2023-11-13 15:22:15 +00:00