Bug 85860 - Cannot view or download attachments.
Summary: Cannot view or download attachments.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: squirrelmail
Version: 8.0
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Gary Benson
QA Contact:
URL:
Whiteboard:
: 86043 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-03-09 17:50 UTC by Need Real Name
Modified: 2008-05-01 15:38 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-04-24 20:36:57 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2003:112 0 normal SHIPPED_LIVE : Updated squirrelmail packages fix cross-site scripting vulnerabilities 2003-04-24 04:00:00 UTC

Description Need Real Name 2003-03-09 17:50:09 UTC
Description of problem: 
 
Viewing a message with attachments does not show the attachments, even if the 
option to view attachments inline is selected, specifically selected the view attachment 
link also does not display the attachment.  Also, trying to download an attachment by 
clicking on the download link results in a parse error on line 337 of 
/usr/share/squirrelmail/src/download.php.  A quick view of this file reveals a simple 
bracketing error (I think). 
 
Version-Release number of selected component (if applicable): 
 
 
How reproducible: 
 
Always 
 
Steps to Reproduce: 
1. Install squirrelmail, view a message with an image attachment (gif, for example), the 
message is not displayed inline even if this option has been selected. 
2. Click on the view link beside the attachment at the bottom of the message, the 
resulting page dose not display the attachment as expected. 
3. Click on the download link to save the attachment to your computer, a parse error 
occurs on line 337 of /usr/share/squirrelmail/src/download.php. 
     
Actual results: 
 
As above 
 
Expected results: 
 
The attachment should be displayed when view is selected. The user should be 
prompted with a save as dialog when download is selected. 
 
Additional info: 
 
A patch to fix the download option is included here: 
*** /usr/share/squirrelmail/src/download.php.old        2003-03-09 
17:31:24.000000000 +0000 
--- /usr/share/squirrelmail/src/download.php    2003-03-09 17:19:49.000000000 
+0000 
*************** 
*** 334,340 **** 
          $suffix = $type1; 
      } 
 
!     $filename = 'untitled' . strip_tags($passed_ent_id) .$suffix); 
  } 
 
 
--- 334,340 ---- 
          $suffix = $type1; 
      } 
 
!     $filename = 'untitled' . strip_tags($passed_ent_id) .$suffix; 
  }

Comment 1 Gary Benson 2003-03-10 09:41:16 UTC

*** This bug has been marked as a duplicate of 82600 ***

Comment 2 Gary Benson 2003-03-13 09:36:45 UTC
Use 1.2.10-4 from rawhide which fixes this problem.

Comment 3 Gary Benson 2003-03-13 09:37:05 UTC
*** Bug 86043 has been marked as a duplicate of this bug. ***

Comment 4 Jim Mikles 2003-03-20 18:56:56 UTC
The download.php file in /usr/share/squirrelmail/src is damaged. The corredt
file can be extracted from the squirrelmail-1.2.11.tar.gz available at
squirrelmail.org.  The rpm file should be rebuilt!

Comment 5 Graham Freeman 2003-03-31 22:49:30 UTC
I'm having the exact same problem, whether the attachment is a multimegabyte PDF
or a 760-byte text file.

This is a disturbingly glaring error, and I'm surprised it got by QA.  File
attachments are an everyday part of using e-mail for many, many people.

When will a fix be issued?

-Graham Freeman




Comment 6 Graham Freeman 2003-03-31 22:51:18 UTC
Clarification of my question:  When will a fix be issued via RHN?  That's why I
pay my subscription money, after all.

-Graham Freeman


Comment 7 Gary Benson 2003-04-01 08:51:52 UTC
A fix will be issued over RHN at some stage.

Comment 8 Mark J. Cox 2003-04-24 20:36:58 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2003-112.html



Note You need to log in before you can comment on or make changes to this bug.