Loading...
 
Skip to main content

Filegallery, Console batch upload; Displayed message about duplicate is wrong

Status
Open
Subject
Filegallery, Console batch upload; Displayed message about duplicate is wrong
Version
24.x
Category
  • Conflict of two features (each works well independently)
  • Consistency
Feature
Console / Command Line
File Gallery (elFinder or standard UI)
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Related-to
Description

This bug report has been created to emphasise the need for an option to manage duplicates when using the Tiki console to import files
Fixing it by really rejecting the upload of a duplicate file will be quit bad as it will make the automatisation of the upload unusable for many case (files can't be updated with a new version).

Using the Tiki Console you can import files from a batch upload folder.

Copy to clipboard
php7.4 console.php files:batchupload 5 --subdirToSubgal --createSubgals --confirm

You can automatise the task using the Tiki Scheduler.

Displayed message in the shell and the scheduler about duplicate is not true.

Copy to clipboard
error: Duplicate file found as `49456187_a.jpg`. Upload rejected. error: Duplicate file found as `49456187_b.jpg`. Upload rejected. error: Duplicate file found as `49456187_c.jpg`. Upload rejected. error: Duplicate file found as `49456187_d.jpg`. Upload rejected. error: Duplicate file found as `49456187_e.jpg`. Upload rejected. error: Duplicate file found as `49456187_f.jpg`. Upload rejected. error: Duplicate file found as `49456187_g.jpg`. Upload rejected. error: Duplicate file found as `49456187_h.jpg`. Upload rejected. error: Duplicate file found as `49456187_i.jpg`. Upload rejected.


But in reality the files are created and duplicates just accumulates with the same name without limit. (there 3 pages like this)
Image

Importance
1 low
Easy to solve?
5
Priority
5
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8160
Created
Sunday 31 July, 2022 07:06:10 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Sunday 31 July, 2022 07:10:16 UTC


Show PHP error messages