Forums / General / Problem with open file downloaded using IE

Problem with open file downloaded using IE

Author Message

Dariusz Wlodarczyk

Wednesday 21 June 2006 3:08:24 pm

I have a problem opening file downloaded using Internet Explorer. The temporary file (in Temporary Internet Files) is saved without extension, and the application (for example MSWord, AdobeReader) write message that the file is not found.

For example i download:

sample_filename.doc

but in the temp folder see:

sample_filename[1].

With other browsers I don't have this problem and SaveAs option in IE work properly too. Only opening file from IE works bad :(

Any help because I have no idea how to solve this?

<i>
ezp 3.6.8
php 4.3.9
</i>

Xavier Dutoit

Sunday 25 June 2006 9:31:20 am

Hi,

One of my user reported me an identical result (pdf).

I'll check what's inside the temporary folder.

What's your IE version ?

http://www.sydesy.com

Dariusz Wlodarczyk

Sunday 25 June 2006 12:07:00 pm

I test this on IE 6

Xavier Dutoit

Monday 26 June 2006 12:29:51 am

Ok,

My client has IE too with SP2. Looks like it's related.

I take for granted that you're tested with Firefox and it works like a charm, haven't you ?

X+

http://www.sydesy.com

Dariusz Wlodarczyk

Monday 26 June 2006 6:16:47 am

Yes exactly!

I think this problem is connected with something in apache configuration too, beacuse this problems starts for me when my client chcange hosting provider. But other systems (not builded on ezpublish) still working correctly with all browsers after this change.

Xavier Dutoit

Wednesday 28 June 2006 3:55:22 am

Hi,

Any news on your side ? I've the problem both with an apache2 and and apache1.3 site. one in php4.3 the other on php4.4.

This is what I get (FF linux with liveheader extension)

GET /content/download/2152/9698/file/Brochure%20Curriculum%20FR.pdf HTTP/1.1

Host: www.example.org

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060406 Firefox/1.5.0.4 (Debian-1.5.dfsg+1.5.0.4-1)

Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

Referer: http://www.example.org/fr/domaines_d_action/management_europeen_responsable/publications/un_programme_d_etudes_pour_le_management_europeen_responsable_mer

Cookie: eZSESSIDeurocadres=ecb373e5352232f3cefaacb85e3b6853



HTTP/1.x 200 OK

Date: Wed, 28 Jun 2006 10:51:13 GMT

Server: Apache/1.3.33 (Debian GNU/Linux) mod_perl/1.29 PHP/4.4.2-0.dotdeb.1 DAV/1.0.3

X-Powered-By: eZ publish

Expires: Wed, 28 Jun 2006 11:01:13GMT

Last-Modified: Wed, 28 Jun 2006 10:51:13 GMT

Content-Language: eng-GB

Content-Length: 167967

content-disposition: attachment; filename="Brochure Curriculum FR.pdf"

Content-Transfer-Encoding: binary

Accept-Ranges: bytes

Keep-Alive: timeout=15, max=99

Connection: Keep-Alive

Content-Type: application/pdf


http://www.sydesy.com

Dariusz Wlodarczyk

Wednesday 28 June 2006 11:55:18 am

Today hosting provider of my client upgraded php from 4.3.9 to 4.4.2. So after this I must made upgrade of ezpublish from 3.6.8 to 3.8.1 and problem was gone. Now all working ok (in all browsers), but i'm not sure the upgrading of php was only thing made by provider... maybe they change something more in apache configuration...

So my problem was ended and I wish the same for you ;)

Eirik Alfstad Johansen

Wednesday 25 October 2006 6:41:11 am

Hi,

I had a similar problem, and it was solved by replacing my old rewrite rule with the one recommended by eZ.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Xavier Dutoit

Wednesday 25 October 2006 7:07:30 am

Hi,

Cold thread, thanks for joining.

Indeed, I had the "all in one line" version.

I'll try this and let you know.

        Rewriterule ^/var/storage/.* - [L]
        Rewriterule ^/var/[^/]+/storage/.* - [L]
        RewriteRule ^/var/cache/texttoimage/.* - [L]
        RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
        Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
        Rewriterule ^/share/icons/.* - [L]
        Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
        Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
        RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
        RewriteRule ^/favicon\.ico - [L]
        RewriteRule ^/robots\.txt - [L]
        # Uncomment the following lines when using popup style debug.
        # RewriteRule ^/var/cache/debug\.html.* - [L]
        # RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
        RewriteRule .* /index.php
 

http://www.sydesy.com

Xavier Dutoit

Thursday 26 October 2006 2:12:35 am

Small correction:

       Rewriterule ^/design/[^/]+/(stylesheets|images|javascripts)/.* - [L]

(javascripts instead of javascript)

First reports: it seems to work better. Why is unclear for me and to be honest, it doesn't make sense. Waiting for more reports...

X+

http://www.sydesy.com

eZ debug

Timing: Jan 18 2025 11:23:06
Script start
Timing: Jan 18 2025 11:23:06
Module start 'content'
Timing: Jan 18 2025 11:23:07
Module end 'content'
Timing: Jan 18 2025 11:23:07
Script end

Main resources:

Total runtime1.1600 sec
Peak memory usage4,096.0000 KB
Database Queries217

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 589.2656181.6563
Module start 'content' 0.00840.9708 770.9219678.8828
Module end 'content' 0.97930.1806 1,449.8047348.4375
Script end 1.1599  1,798.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00500.4330210.0002
Check MTime0.00150.1284210.0001
Mysql Total
Database connection0.00140.117710.0014
Mysqli_queries1.035889.29592170.0048
Looping result0.00270.23112150.0000
Template Total1.123196.820.5616
Template load0.00260.225520.0013
Template processing1.120596.593420.5602
Template load and register function0.00010.009010.0001
states
state_id_array0.00240.205710.0024
state_identifier_array0.00230.201920.0012
Override
Cache load0.00220.1914620.0000
Sytem overhead
Fetch class attribute can translate value0.00150.126740.0004
Fetch class attribute name0.00130.1098130.0001
XML
Image XML parsing0.00190.161340.0005
class_abstraction
Instantiating content class attribute0.00000.0037200.0000
General
dbfile0.00310.2684390.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
10content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 42
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs