Importing attachments via CSV file fails with exception

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

  

要約


Attempting to import attachments via CSV results in error "An exception occurred dealing with attachment." 

原因

This is caused by the URLs in the CSV export from the source system pointing to secure resources. So when the target system runs a CSV import and tries to load the attachments via HTTP, it is redirected to the login page. The CSV importer follows the redirect and grabs the HTML content payload, and saves the attachment file with correct name, but with contents being HTML payload of the login page. Therefore, in order to make this work, we need to make that project accessible in a way that it doesn't require a login. 

ソリューション

We can do this by modifying the project permissions to give anonymous access to the source project so that a login isn't required. You can do this by: 

  1. Go to the source project, and click Project Settings > Permissions.
  2. Click Actions > Edit Permissions.
  3. Click Edit next to Browse Projects 
  4. Click the Group radio button, and then select Anyone on the web
  5. [許可] をクリックします。 

You should then be able to import as expected using the original method you were attempting.

(warning)You'll want to go back and remove that permission once the import is complete to avoid any security issues.


最終更新日 2020 年 5 月 8 日

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

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