Defect #26468

Using custom fields of type "File" leads to unsolvable error if filetype is not allowed

Added by Mischa Mundwiler 29 days ago. Updated 26 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Custom fields
Target version:3.4.3
Resolution:Fixed Affected version:3.4.1

Description

I have setup the following custom field using the "File" format with the restriction of allowed filetypes: doc, docx, pdf

If I create a new ticket with any of the three types everything is fine.

But if I upload a file of differnte file type I get the following message:

- CR-Dokument is invalid (Allowed extensions: doc, docx, pdf) -> this is OK

BUT: I cannot change the document anymore nor can I remove it. Therefore I am stuck in the dialog and the only possiblity is to cancel everyhting (compare attached screenshot).

Expected behavior: Upload another file or remove it should be possible.

Error-CustomDocument.png (257 KB) Mischa Mundwiler, 2017-07-18 13:44

Associated revisions

Revision 16835
Added by Jean-Philippe Lang 28 days ago

Fixed that remove upload icon is not visible after submitting the form (#26468).

History

#1 Updated by Jean-Philippe Lang 28 days ago

  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version set to 3.4.3
  • Resolution set to Fixed

Indeed, the icon to remove the file is not visible after submitting the form (even if it's not visible, you should be able to click on it just on the right of the field that holds the filename).
This should be fixed by r16835.

#2 Updated by Jean-Philippe Lang 26 days ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF