Project

General

Profile

Bug #1582

WFileResource: errors if suggestFileName and file is empty or not found

Added by Boris Nagaev almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
11/28/2012
Due date:
% Done:

0%

Estimated time:

Description

Hello!

WFileResource:

  • suggestFileName
  • mime type for application
  • file is empty or not found

Empty file was created using

touch empty-file.txt

Then Wt produces 416 (or 404 for not found) so that application state is lost.

For empty files empty downloadable attachment should be produced.

I am not sure about not found files. Maybe current behaviour is OK for them.

This bug is reproducable in Wt 3.2.3, but not in Wt 3.2.1


Files

fileres.cpp (706 Bytes) fileres.cpp Boris Nagaev, 11/28/2012 09:40 PM
#1

Updated by Wim Dumon almost 8 years ago

  • Status changed from New to Resolved

404 should be produced when file not found (what else?). 416 was wrong; a fix will be available in git version soon.

Best regards,

Wim.

#2

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed
  • Assignee set to Koen Deforche
  • Target version set to 3.3.0

Also available in: Atom PDF