Problem with xls attachments

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
master7
Posts: 4
Joined: 15 Oct 2010, 07:22

Problem with xls attachments

Post by master7 »

Hi.

After update to version 1.2.3 I noticed that there is a problem witch downloading .xls attachments.
Attachments in my Mantis are stored in files. When I try to download .xls file from my server via FTP everything is ok, but when I try to open it via Mantis there is a problem. It's not opening properly.

Any suggestions?

Regards.
Master7
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with xls attachments

Post by atrol »

master7 wrote:there is a problem. It's not opening properly.
What does this mean? Any error message?
Please use Search before posting and read the Manual
master7
Posts: 4
Joined: 15 Oct 2010, 07:22

Re: Problem with xls attachments

Post by master7 »

atrol wrote:
master7 wrote:there is a problem. It's not opening properly.
What does this mean? Any error message?
When I'm opening file (or opening downloaded file from Mantis) in Excell it's look like in attachment.
There is some message error at the begining.

Code: Select all

<p style="color:red">SYSTEM WARNING: finfo::finfo() [<a href='finfo.finfo'>finfo.finfo</a>]: Failed to load magic database at '/usr/share/misc/magic'.</p><p style="color:red">SYSTEM WARNING: finfo::file() [<a href='finfo.file'>finfo.file</a>]: The invalid fileinfo object.</p><p style="color:red">SYSTEM WARNING: Cannot modify header information - headers already sent by (output started at /var/www/usterka/core/error_api.php:202)</p>
In Fact this error message is added into a .xls file, at the beginning of this file. When I remove manually this erros message (ex. by Notepad), then I can open it normally via Excell.
Attachments
xls_file.jpg
xls_file.jpg (191.59 KiB) Viewed 7457 times
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with xls attachments

Post by atrol »

Please use Search before posting and read the Manual
master7
Posts: 4
Joined: 15 Oct 2010, 07:22

Re: Problem with xls attachments

Post by master7 »

atrol wrote:To fixt it have a look at http://www.mantisbt.org/bugs/view.php?id=11728
Thanks a lot, I corected this.

regards.
Master7
walsh_e
Posts: 2
Joined: 15 Mar 2011, 15:56

Re: Problem with xls attachments

Post by walsh_e »

I have a similar issue but in my case it seems like when I try to download an excel file or image file they're corrupted. I've attached one of the corrupt image files. In my case I migrated the system across from one hosting company to the other. I upgraded to the 1.2.4 version of Mantis and I imported the database successfully than migrated the file folders via FTP and changed the paths in the project page. however all attachments are now unreadable is there some encrypting hash that's used?
Attachments
129299-27012011062356-16843014-0-1.jpg
129299-27012011062356-16843014-0-1.jpg (106.58 KiB) Viewed 7197 times
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with xls attachments

Post by atrol »

walsh_e wrote: migrated the file folders via FTP
Did you set FTP to binary mode?
Please use Search before posting and read the Manual
Post Reply