Knowledge Center Search


 

Filename encoding is broken for Firefox

  [KB19198] Show KB Properties

  [KB19198] Hide KB Properties

Categories:
Knowledge Base ID: KB19198
Last Updated: 05 Oct 2010
Version: 1.0

Summary:
Filenames such as 日本語ファイル.log are saved as %E6%97%A5%E6%9C%AC%E8%AA%9E%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB.log when downloaded via rewrite/web access method for Firefox users.  Internet Explorer users are NOT affected.  Can the content-disposition headers be disabled?

Problem or Goal:
How to disable content-disposition header on rewrite engine?

All browsers decode content-disposition header but Firefox cannot. For a filename such as 日本語ファイル.log via Firefox is saved as %E6%97%A5%E6%9C%AC%E8%AA%9E%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB.log when downloaded via core/rewrite/web access method .

IVE uses content-disposition header for file downloads via the core rewrite web access feature.
For example, accessing a file in a rewritten url https://ive.com/,DanaInfo=test.com+download.txt will be saved as ",DanaInfo=test.com+download.txt". To avoid this we add content-disposition header so that a browser will save it as "download.txt"








Solution:

  1. Download rewrite-filter filter34204.pkg.encrypted
  2. Install filter on IVE admin console at Resource Policies > Rewriting > Filters > Add Filter.
  3. Modify URL and save changes.  See example below.




Cautions / Notes:
  • Disabling content-disposition on IVE rewrite engine affects Internet Explorer and other supported browsers, hence use it with caution.
  • Even after the filter is installed, the file name will append DanaInfo string. So Firefox will save as ,DanaInfo=confluence.jnpr.net+日本語ファイル.log instead of 日本語ファイル.log
  • For questions as to how to apply the Rewriting Filters license, refer to: KB10195 - Rewriting Filters – What, When and How

Purpose:
Configuration
Troubleshooting

Related Links:

 

 

ASK THE KB

Question or KB ID:


 


 

 
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.