Incorrect DTD for wstcref-Files
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- xml
- 領域
- tooling
調査の方向性
issue にリンクされている platform/core.windows/src/org/netbeans/core/windows/resources/tc-ref2_2.dtd から始め、その previousMode 宣言を生成された tc-ref バージョン 2.2 の例と比較します。修正した DTD と永続化のサンプルファイルを ant xmlvalidate タスクで検証します。完了とは、生成されたファイルが検証に合格し、DTD が XML 勧告に従って解析されることを意味します。
索引モデルが issue の本文から書いたものです。
説明
Apache NetBeans version
Apache NetBeans 23
What happened
The DTD for wstcref-Files of version 2.2 (https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/resources/tc-ref2_2.dtd) contains two errors:
-
The previousMode tag is required by the DTD, but not in the application runtime
-
The previousMode attribute list is not formed well according to the W3C Recommendation (see https://www.w3.org/TR/2006/REC-xml11-20060816/): The name attribute has no so called Attribute Default (#REQUIRED, #IMPLIED or definition)
Language / Project Type / NetBeans Component
NetBeans Platform DTDs
How to reproduce
To reproduce the first problem mentioned above simple try to validate the persistance files generated by the NetBeans platform (can be found in the ProgramData folder), e.g.:
<?xml version="1.0" encoding="UTF-8"?>
<tc-ref version="2.2">
<tc-id id="XXTopComponent" />
<state opened="false" />
</tc-ref>
As you can see, even the generated files do not contain a previousMode-tag, cause it is only needed for docking/sliding operations.
The second problem occurs if you want to validate any wstcref-File of version 2.2 using the ant xmlvalidate task, cause it cannot parse the DTD referenced due to the wong formed attribute list of the previousMode tag.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 10
JDK
17
Apache NetBeans packaging
Apache NetBeans platform
Anything else
No response
Are you willing to submit a pull request?
Yes
- 主要言語
- Java
- スター
- 3.1k
- フォーク
- 939
- 平均マージ
- 5日 15時間
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/netbeans のほかの issue
-
Contribution welcome kind:feature Platform
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/netbeans#9614 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
kind:bug LSP needs:triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/netbeans#9548 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Editor Java kind:feature needs:triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
The main Options dialog window has buttons with OK on the left instead of on the right on Linuxオープンkind:bug needs:triage os:linux os:macos Platform UI
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
kind:bug needs:triage
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
メンテナーはふだん 1 日以内に返信
apache/netbeans の issue をすべて見る
似ている issue
-
[Bug] Logo style setting missing and `classic` style not applied across multiple platforms (v3.1.0)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Stirling-Tools/Stirling-PDF#8382 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 4 日以内に返信
-
enhancement untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
opensearch-project/sql#5842 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
openhab/openhab-addons#21882 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
YunaiV/ruoyi-vue-pro#1273 ·
メンテナーはふだん 3 日以内に返信