Project Import fail with com.atlassian.jira.exception.ParseException: Invalid label

お困りですか?

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

コミュニティに質問

プラットフォームについて: 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 は除く

 

 

問題

Trying to perform Project Import will fail with Invalid label error and the following appears in the atlassian-jira.log

2016-11-03 07:27:37,825 JiraTaskExectionThread-2 WARN XXXXX 440x1935x1 XXXXXX 172.18.16.192 /secure/admin/ProjectImportSelectProject.jspa [imports.project.handler.ChainedSaxHandler] Encountered a parsing exception.
com.atlassian.jira.exception.ParseException: Invalid label 'something:  123456' specified.

診断

データベース

  • Checking the source instance database for labels information with the following will show the affected label with blank space

    select * from label;

XML Backup

  • Unzipping the .zip file and run the following on the entities.xml will list the affected label with blank space

    grep '<Label' entities.xml

原因

There is a blank space in one of the label value which is not expected. No space is allowed in a label.

回避策

Manually remove the affected label from the database or from the entities.xml

  • From database
    • Create a database backup
    • delete the line that has the affected label
  • From entities.xml
    • Create a copy of entities.xml
    • delete the line that has the affected label eg: grep -v 'something:\ 123456' entities_copy.xml

最終更新日 2016 年 11 月 16 日

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

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