Project

General

Profile

Actions

Bug #1582

closed

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

Added by Boris Nagaev almost 12 years ago. Updated almost 12 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
Actions #1

Updated by Wim Dumon almost 12 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.

Actions #2

Updated by Koen Deforche almost 12 years ago

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

Also available in: Atom PDF