export files

Bug #1447107 reported by maite
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eventum
Fix Released
Low
Elan Ruusamäe

Bug Description

When I download a file from the eventum , rename and file extension .
 occurs only with Internet Explorer

Revision history for this message
Elan Ruusamäe (glen666) wrote :

unclear bugreport. could you describe more, attach screenshots etc?

Changed in eventum:
status: New → Invalid
Revision history for this message
maite (miate-91) wrote :

When I download files or excel file, I rename the file (I think that what makes name is the header)
 example :
 Item: Perido_No_Pago_Clientes.xlsx

What download :
 = _UTF - 8_B_UGVyaW9kb19Ob19QYWdvX0NsaWVudGVzLnhsc3g = _ =

description: updated
description: updated
Revision history for this message
Elan Ruusamäe (glen666) wrote :

what do you mean you rename the file?

what is the filename you upload?
what is eventum displaying as filename in issue view (post screenshot)
what is the filename saved in MSIE?
what is the filename saved in Firefox/Chrome?

Revision history for this message
maite (miate-91) wrote :

If you do click on a file to download , comes the name I have taught you before and do not let me open the file only save but I can not open it.

in Chrome or Firefox no problem. It only happens with Internet Explorer

The filename what I upload is : Periodo_No_Pago_Clientes.xlsx and the filename what download is " = _UTF - 8_B_UGVyaW9kb19Ob19QYWdvX0NsaWVudGVzLnhsc3g = _ ="

just you speak English ?

Revision history for this message
maite (miate-91) wrote :
Revision history for this message
maite (miate-91) wrote :
Revision history for this message
Jorge Jarrin Flores (jjarrinf-gmail) wrote : Re: [Bug 1447107] Re: export files

I speak english and spanish.

Entiendo que tu hablas español, voy a tratar de duplicar tu problema. Lo
que pasa es que en tu reporte de bug en Launchpad no se entiende lo que
quieres decir.

Saludos,
Jorge

2015-04-22 8:47 GMT-05:00 maite <email address hidden>:

> If you do click on a file to download , comes the name I have taught you
> before and do not let me open the file only save but I can not open it.
>
> in Chrome or Firefox no problem. It only happens with Internet Explorer
>
> The filename what I upload is : Periodo_No_Pago_Clientes.xlsx and the
> filename what download is " = _UTF -
> 8_B_UGVyaW9kb19Ob19QYWdvX0NsaWVudGVzLnhsc3g = _ ="
>
> just you speak English ?
>
> --
> You received this bug notification because you are subscribed to
> Eventum.
> https://bugs.launchpad.net/bugs/1447107
>
> Title:
> export files
>
> Status in Eventum:
> Invalid
>
> Bug description:
> When I download a file from the eventum , rename and file extension .
> occurs only with Internet Explorer
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/eventum/+bug/1447107/+subscriptions
>

--
================================================================================
190grCO2/Km = Generación de CO2 por Km de recorrido de mi auto
¿No sería mejor si primero intentamos resolverlo todo por e-mail, teléfono
o video conferencia?

Revision history for this message
Jorge Jarrin Flores (jjarrinf-gmail) wrote :

I can't duplicate the issue.

Procedure:

With an uploaded file in an issue, try to download using the link . Internet Explorer shows the Open/Save/Cancel dialog and the file is downloaded/opened.

Using Internet Explorer 9.0.8112 - Windows 7 Pro.

Revision history for this message
Elan Ruusamäe (glen666) wrote :

you either give incorrect information or something else is wrong

"Perido_No_Pago_Clientes.xlsx" is pure US-ASCII, there's no reason why it should be encoded to base64.

if i download with eventum 3.0.1, this is the http header in network console:

Content-Disposition:attachment; filename="Perido_No_Pago_Clientes.xlsx"; filename*=UTF-8''Perido_No_Pago_Clientes.xlsx

Revision history for this message
Elan Ruusamäe (glen666) wrote :

this is the code behind sending out download:

https://github.com/eventum/eventum/blob/v3.0.1/lib/eventum/class.attachment.php#L63-L103

if you don't mind hacking code, you can try experiment there

Revision history for this message
Elan Ruusamäe (glen666) wrote :

also you forgot two important facts about your setup:

- Eventum version
- Internet Explorer version

Revision history for this message
maite (miate-91) wrote :

Eventum versión : 2.3.3
Internet Explorer versión: 11, but sometimes 8

Revision history for this message
maite (miate-91) wrote :

Gracias Jorge por intentar repoducir mi problema, te lo explico, en la intraweb de mi empresa utilizamos Eventum para el control de incidencias. Cuando la gente sube una incidencia con un archivo adjunto luego a la hora de abrir(o descargar) ese adjunto me cambia el nombre del archivo y la extensión, dejándolo inservible. La única solución que he encontrado por ahora es descargarlo como lo hace el y una v3ez descargado cambiarle yo manualmente el nombre y el archivo, pero como comprenderás es un engorro teniendo en cuenta que es una empresa grande.

Sólo lo hace con Internet Explorer porque con Chrome o con Mozilla Firefox no tenemos ese problema, lo que pasa que el gestor esta situado con explorer.
gracias por adelantado

Revision history for this message
Elan Ruusamäe (glen666) wrote :

Eventum versión : 2.3.3, that's old!
try Eventum 3.0.1 then!

as i can see 2.3.3 has different code:
https://github.com/eventum/eventum/blob/release-2.3.3-final/lib/eventum/class.attachment.php#L60-L88

you could just try replacing whole function body, no warranties!

Revision history for this message
maite (miate-91) wrote :

that is an image of my problem

Revision history for this message
Elan Ruusamäe (glen666) wrote :
Revision history for this message
Elan Ruusamäe (glen666) wrote :

this was fixed in eventum v2.3.4

Changed in eventum:
assignee: nobody → Elan Ruusamäe (glen666)
importance: Undecided → Low
status: Invalid → Fix Released
Revision history for this message
maite (miate-91) wrote :

Can you upgrade directly or to do an update from 0 ?

In any case, there is a manual ?

Revision history for this message
Elan Ruusamäe (glen666) wrote :

each release contains docs/UPGRADE document

Revision history for this message
maite (miate-91) wrote :

It´s solved.

Replace this lines at the class.attachment.php in that method outputDowload():

    $filename = Mime_Helper::encodeQuotedPrintable($filename);
    header("Content-Disposition: {$disposition}; filename=\"{$filename}\"");

by this lines:

$filename = rawurlencode($filename);
header("Content-Disposition: {$disposition}; filename=\"{$filename}\"; filename*=UTF-8''{$filename}");

Revision history for this message
maite (miate-91) wrote :

Thanks!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.