Uploaded tar.gz file in Wiki or Forum portlet is corrupted

Description

Upload a *.tar.gz attachment in the Wiki or Forum portlet. Then download the file. Downloaded file will be corrupt.

Here is a random example of the bug:

http://www.liferay.com/community/forums/-/message_boards/message/7669153

Download the tar.gz attachment, it is corrupt.

Environment

Tomcat 6.0 + MySQL 5. 6.0.x Revision 85973. Tomcat 6.0 + MySQL 5. 6.1.x Revision 85973. Tomcat 6.0 + MySQL 5. 5.2.x Revision 85973.

Activity

Show:

Pani Gui February 8, 2012 at 11:36 PM

PASSED Manual Testing using the following steps:

1. Add Wiki portlet to a page.
2. Create wiki front page.
3. Click Attachment.
4. Click Add Attachments button.
5. Use the classic uploader to upload a file with *tar.gz type.
6. Save.
7. Download the file.
8. Open the download file.

Reproduced on:
Tomcat 6.0 + MySQL 5. 6.0.12 EE.
Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: b33b66ad30dd027671873d00010673d9efcf306a.

The downloaded file is corrupt.

Fixed on:
Tomcat 6.0 + MySQL 5. 6.0.x GIT ID: 42a2ae4b307363ecfa126dd037a2952238aa9633.
Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: 6d6b8814da7c7295ed4cab8420e070793361f856.
Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: 71ce8e940ae12bae24e2a5e14cf3f836bb291915.

The downloaded file isn't corrupt and open correctly.

Michael Saechang February 8, 2012 at 4:25 PM

Committed on:
6.0.x GIT ID: 2a4cac79ed4468f59ebd6ae40517b0645c401592.
6.1.x GIT ID: 075a450c19e53959dfd4aa739d0d63a60baa92ac.
6.2.x GIT ID: 075a450c19e53959dfd4aa739d0d63a60baa92ac.

Drew Blessing January 24, 2012 at 8:02 PM

Hi Alex,

Thank you for your report. As part of the community verifier program I am taking a look at this issue.

I tried to reproduce this on Liferay 6.1 GA1 but could not.

Steps tried:

  1. Attach a sample tar.gz file to a wiki page

  2. Download the file from the wiki

  3. Untar the file on the local machine

The file came out as expected. Have you had an opportunity to test this on Liferay 6.1 GA1?

Paul Piao July 27, 2011 at 1:56 AM

Hi Alex,
Thank you for your report. I was able to reproduce this issue in Liferay Portal 6.0.6 GA. I have also tested this issue on trunk revision 85973 and I was also reproduce. I will update the this ticket to reflect the issue.

Fixed

Details

Assignee

Reporter

Branch Version/s

6.1.x
6.0.x

Backported to Branch

Committed

Git Pull Request

Components

Priority

Zendesk Support

Created July 20, 2011 at 8:01 PM
Updated June 24, 2023 at 9:40 AM
Resolved March 12, 2012 at 1:39 PM
Loading...