This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 139755 - Possibly bogus XML schemas
Summary: Possibly bogus XML schemas
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks: 42686
  Show dependency tree
 
Reported: 2008-07-11 17:39 UTC by Jesse Glick
Modified: 2011-01-28 20:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
first part (5.21 KB, text/plain)
2008-07-11 19:38 UTC, Martin Krauskopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-07-11 17:39:57 UTC
ruby.railsprojects/src/org/netbeans/modules/ruby/railsprojects/resources/rails-project-private.xsd
ruby.railsprojects/src/org/netbeans/modules/ruby/railsprojects/resources/rails-project.xsd

are given the namespace "http://www.netbeans.org/ns/ruby-project{,-private}/1", inconsistent with the declaration in
RailsProjectType. You need to fix your XML schemas to match what your project actually stores in project.xml (and
private.xml). Then you need to register those schemas in ProjectXMLCatalog in your layer, as described in issue #42686.

Also

ruby.rakeproject/src/org/netbeans/modules/ruby/modules/project/rake/project-private.xsd
ruby.rakeproject/src/org/netbeans/modules/ruby/modules/project/rake/project.xsd

are just the schemas copied from project.ant. Perhaps these can be deleted? project.ant will as of issue #42686 perform
validation against schemas found in ProjectXMLCatalog; if you have your own project.ant replacement you may need to
duplicate this logic (in which case you probably do want to keep these copies somewhere so they will be available in
Ruby IDE).

There are also

ruby.project/src/org/netbeans/modules/ruby/rubyproject/resources/ruby-project-private.xsd
ruby.project/src/org/netbeans/modules/ruby/rubyproject/resources/ruby-project.xsd
ruby.rakeproject/src/org/netbeans/modules/ruby/modules/project/rake/rake-project-references.xsd
ruby.rakeproject/src/org/netbeans/modules/ruby/modules/project/rake/rake-project-references2.xsd

which you may consider registering in the same way.
Comment 1 Martin Krauskopf 2008-07-11 19:37:30 UTC
I'll fix the first part (attaching patch, will commit another day, have to leave today).

As I understand rake.project is copy-pasted ant.project with s/rake/ant. Likely we do not need a lot of code from
ant.project. Similarly for j2se vs ruby project. I do not know all the details of ant.project so I'm little reluctant to
start some large clean-up for 6.5.

The P2 (that is, the important part) is the first part, right?

One more question, how to propagate rails-project.xsd to http://www.netbeans.org/ns/rails-project/1.xsd as it is the
case for ruby-project.xsd (http://www.netbeans.org/ns/ruby-project/1.xsd). Does this work somehow automagically? Tor how
did you get there ruby-project/1.xsd? Thanks.
Comment 2 Martin Krauskopf 2008-07-11 19:38:05 UTC
Created attachment 64353 [details]
first part
Comment 3 Jesse Glick 2008-07-11 23:05:20 UTC
Yeah, I think it's the bad namespace which would be P2.

You can publish schemas by committing to www/www/ns (in CVS still).
Comment 4 Martin Krauskopf 2008-07-12 14:24:31 UTC
First part: #e0a5ba02ddc7
Comment 5 Quality Engineering 2008-07-17 04:53:10 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #324 build
Changeset: http://hg.netbeans.org/main/rev/e0a5ba02ddc7
User: Martin Krauskopf <mkrauskopf@netbeans.org>
Log: #139755: Possibly bogus XML schemas (first part)