Incorrect DTD for wstcref-Files
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- xml
- Domain
- tooling
Research direction
Start with platform/core.windows/src/org/netbeans/core/windows/resources/tc-ref2_2.dtd, linked in the issue, and compare its previousMode declaration with the generated tc-ref version 2.2 example. Validate the corrected DTD and sample persistence file with the ant xmlvalidate task; done means the generated file validates and the DTD parses according to the XML recommendation.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 939
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 24
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/netbeans
-
Contribution welcome kind:feature Platform
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
apache/netbeans#9614 · 2 comments ·
Maintainers usually reply within 1 day
-
kind:bug LSP needs:triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/netbeans#9548 · 1 comment ·
Maintainers usually reply within 1 day
-
Editor Java kind:feature needs:triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
The main Options dialog window has buttons with OK on the left instead of on the right on LinuxOpenkind:bug needs:triage os:linux os:macos Platform UI
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
kind:bug needs:triage
Difficulty 3/5 1-2 days Newbie friendliness 57/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Make branch and label autocomplete matching locale-independentPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
jenkinsci/gitlab-plugin#1950 ·
-
It's not necessary to copy the memory block in the readWrite() of org.h2.store.fs.mem.FileMemDataOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
h2database/h2database#4435 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
micronaut-projects/micronaut-core#13717 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ADORSYS-GIS/token-status-link#145 ·
Maintainers usually reply within 3 days