]> git.koha-community.org Git - koha.git/commit
Bug 20254: Do not ingest files with duplicate filenames
authorColin Campbell <colin.campbell@ptfs-europe.com>
Wed, 24 Jan 2018 09:20:12 +0000 (09:20 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 20 Aug 2019 14:03:49 +0000 (15:03 +0100)
commit8b98403cbed7ada5d30d00256ede2d2cd96ab269
tree52edc8903c833c1e7ce00546b2afc5e2c5879a2d
parentb8f382b82172b70166db48d572f767b06a4834ef
Bug 20254: Do not ingest files with duplicate filenames

If the supplier delivers the same file twice we are
unable to rename it on the second occurence causing us to download
and process it infinitely.

Check that downloaded filenames are unique against those
on file and reject processing if a duplicate.

This patch delays this check to the ingest stage so that the
same code is processed irrespective of transport

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Edifact/Transport.pm