XLSX ingest fails when first worksheet row has no spans attribute
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
まず、XLSXFileReaderと、ワークシートの最初の行のspans属性を読み取るコードを見つけます。属性がない場合にリーダーがどのように処理するかを確認し、関連するXLSX取り込みテストを見つけて実行します。spansがなくても、それ以外は有効なXLSXが正常に取り込まれ、既存のXLSX取り込み動作も引き続きテストでカバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Dataverse 6.11 fails to ingest an otherwise valid XLSX file when the first worksheet row does not contain the optional spans attribute (file may have been exported?).
The original XLSX fails to ingest. Opening the same file in Microsoft Excel and saving it as a new XLSX causes it to ingest successfully. Saving it as CSV also works. The column names and data do not appear to be the problem.
Error
Null r attribute in the first row element!
Null spans attribute in the first row element!
Ingest failure (IO Exception): Could not parse Excel/XLSX spreadsheet.
Cannot invoke "String.indexOf(int)" because "spansAttribute" is null.
Cause
The original worksheet XML contains a first row like:
<row r="1">
It does not contain a spans attribute such as:
<row r="1" spans="1:12">
The spans attribute is optional in XLSX/SpreadsheetML. XLSXFileReader checks whether it is null but then calls spansAttribute.indexOf(':'), resulting in the exception.
Steps to reproduce
- Create or upload an XLSX whose first worksheet row omits the spans attribute.
- Upload it to a dataset and allow tabular ingest to run.
- Observe that ingest fails with the exception above.
- Open the same file in Microsoft Excel, save it as a new XLSX, and upload it again.
- Observe that the rewritten XLSX ingests successfully.
Environment
Dataverse 6.11
I did look through open issues and I don't think this one is mentioned yet, but I could have missed it.
- 主要言語
- Java
- スター
- 1.1k
- フォーク
- 571
- 平均マージ
- 1日 18時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
IQSS/dataverse のほかの issue
-
API `/api/dataverses/{identifier}/dataset/linkingDataverses?alreadyLinking=true` returns at most 1 collection対応中かも @vera が 3 日前に担当しました。 オープンType: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Return to Author unreachable when a dataset in review has incomplete metadata対応中かも @ErykKul が 16 日前に担当しました。 オープンType: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
IQSS/dataverse#12837 · コメント 2 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Language controlled vocabulary displays 'Logudorese Sardinian, Croatian' instead of 'Croatian'対応中かも @dpavlin が 19 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
IQSS/dataverse#12818 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Release Size: 30
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
commons-app/apps-android-commons#7275 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
liberation-data/drivine4j#682 ·
メンテナーはふだん 1 日以内に返信
-
Document and enforce pull request review guidelines対応中かも @dashorst が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
`Time.at(t, in: nil)` returns UTC instead of the local time (or the time zone of `t`), unlike CRubyオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
hermes-queue
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
chrisalunlloyd2-sudo/mindpalace#349 ·
メンテナーはふだん 1 日以内に返信