Unable to download attachment with specific extension

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

 

問題

User seeing the following error when downloading an attachment

診断

環境

  • User using IIS

Example of File extensions

  • .cs
  • .csproj
  • .sitemap
  • .mdf
  • .config

 

原因

This problem appears if you are using IIS as a proxy server in front of Confluence and the file you are trying to download contains a specific "filtered" extension. By default, IIS contains a filter named "Request Filtering" which prohibit access to specific files and folders.

回避策

If the file contains an extension in the list above, it's possible to allow it for download executing the following commands:

  1. To allow downloading a file present in the in the file extensions list (i.e. '.config')

    1. Open an administrator command prompt on the server hosting IIS
    
    2. Execute the following command 
    
    appcmd set config "Web app name" /section:requestFiltering
    /-fileExtensions.[fileextension='.config']
  2. To allow downloading a file present in the hidden segments list (i.e. 'web.config')

    1. open an administrator command prompt on the server hosting IIS
    2. execute the following command
    
     appcmd set config "Web app name" /section:requestFiltering
    /-hiddenSegments.[segment='web.config']

 

 

最終更新日 2016 年 4 月 7 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.