On Sat, Apr 20, 2019 at 8:40 PM Antonio <anto...@vieiro.net> wrote:

> Hi there,
>
> I see, so you mean that http://netbeans.apache.org is redirecting to
> https://netbeans.apache.org (i.e. http to httpS protocol), right?
>
>
Mostly, yes, but just with netbeans.org currently. See, for example, the
systemID of the DTD used here:
https://github.com/apache/incubator-netbeans/blob/0f2e98d513deaedccef831ee9cfc08d09f3650b6/ide/languages.manifest/src/org/netbeans/modules/languages/manifest/DefaultPreferences.xml
it is:
http://www.netbeans.org/dtds/EditorPreferences-1_0.dtd

And doing wget http://www.netbeans.org/dtds/EditorPreferences-1_0.dtd
currently shows (for me) a redirect to:
http://netbeans.org/dtds/EditorPreferences-1_0.dtd
and then to:
https://netbeans.org/dtds/EditorPreferences-1_0.dtd

And IIRC java.net.URL won't follow the redirect from http to https, which
would explain why the online resolution fails.


> AFAIK all ASF servers will do that redirection, from plain http to
> https, so it's probably a good idea to have the DTDs in-place.
>
> Another option would be to add _all_ DTDs to a well-known directory in
> our build structure, and use the existing catalog.xml file there to
> resolve them for all modules.
>

Not sure I understand here. The DTDs are (hopefully all) in the repository.
For example:
https://github.com/apache/incubator-netbeans/blob/0f2e98d513deaedccef831ee9cfc08d09f3650b6/ide/editor.settings.lib/src/org/netbeans/modules/editor/settings/storage/preferences/EditorPreferences-1_0.dtd

They are even (hopefully) registered in the respective XML layers. The
reason why the system IDs are used instead of using the local copies is
that many tests run without module system, so they don't see the
registration. (Which, frankly, should be solveable as well, if one would
try hard enough.)

Jan


>
> BTW, DTDs uploaded to the website have already an APLv2 license.
>
> Cheers,
> Antonio
>
>
> El 20/04/2019 a las 19:07, Jan Lahoda escribió:
> > On Thu, Apr 18, 2019 at 9:26 AM Antonio <anto...@vieiro.net> wrote:
> >
> >> https://github.com/apache/incubator-netbeans-website/pull/352
> >
> >
> > Thanks Antonio!
> >
> > Unfortunately, it seems this didn't help with the (java.completion)
> tests.
> > (Part of the issue might be that, AFAIK, java.net.URL does not redirect
> > across protocols.) I've sumitted a PR that is changing the
> java.completion
> > tests to use the local copies of the DTDs instead of trying to download
> > them:
> > https://github.com/apache/incubator-netbeans/pull/1206
> >
> > Comments are welcome, but I'd like to merge that soon.
> >
> > Jan
> >
> >
> >>
> >> El 18/04/2019 a las 6:47, Jaroslav Tulach escribió:
> >>> FYI: reported as https://issues.apache.org/jira/browse/NETBEANS-2429
> >>> -jt
> >>>
> >>>
> >>> st 17. 4. 2019 v 17:13 odesílatel Wade Chandler <
> wadechand...@apache.org
> >>>
> >>> napsal:
> >>>
> >>>> This is here too for extra reference; a couple Jira issues were setup
> >> for
> >>>> it too; in case anything in there helps:
> >>>>
> >>>>
> >>
> https://cwiki.apache.org/confluence/display/NETBEANS/New+NetBeans+Web+Site+Planning#NewNetBeansWebSitePlanning-RelocateDTDsandNS(XMLSchemas)
> >>>> <
> >>>>
> >>
> https://cwiki.apache.org/confluence/display/NETBEANS/New+NetBeans+Web+Site+Planning#NewNetBeansWebSitePlanning-RelocateDTDsandNS(XMLSchemas)
> >>>>>
> >>>>
> >>>> It would be helpful to understand what the process for publishing
> those
> >>>> was before. Was there some build which did this automatically to the
> >> site
> >>>> previously, or were these manual steps with infrequent changes? Either
> >> way
> >>>> seems doable, but wondering if automated if the script or what ever is
> >>>> still around which we could change up to use git pushes.
> >>>>
> >>>> Wade
> >>>>
> >>>>
> >>>>
> >>>>> On Apr 16, 2019, at 10:35 PM, Wade Chandler <wadechand...@apache.org
> >
> >>>> wrote:
> >>>>>
> >>>>> dtds here too
> >>>>>
> >>>>>
> >>>>
> >>
> https://github.com/wadechandler/netbeans-static-site/tree/master/src/content/dtds
> >>>> <
> >>>>
> >>
> https://github.com/wadechandler/netbeans-static-site/tree/master/src/content/dtds
> >>>>>
> >>>>>
> >>>>> Wade
> >>>>>
> >>>>> On Tue, Apr 16, 2019, 22:28 Wade Chandler <wadechand...@apache.org
> >>>> <mailto:wadechand...@apache.org>> wrote:
> >>>>> These are probably in the original site copies I made; many files
> >> there;
> >>>>>
> >>>>>
> >>>>
> >>
> https://github.com/wadechandler/netbeans-static-site/tree/master/src/content/ns
> >>>> <
> >>>>
> >>
> https://github.com/wadechandler/netbeans-static-site/tree/master/src/content/ns
> >>>>>
> >>>>>
> >>>>> It seems we should be able to publish then plus new updates.
> >>>>>
> >>>>> Wade
> >>>>>
> >>>>>
> >>>>> On Tue, Apr 16, 2019, 16:35 Antonio <anto...@vieiro.net <mailto:
> >>>> anto...@vieiro.net>> wrote:
> >>>>> Hi,
> >>>>>
> >>>>> Yep, too bad we can't have that backup server.
> >>>>>
> >>>>> Meanwhile we're collecting those missing links here:
> >>>>>
> >>>>
> >>
> https://cwiki.apache.org/confluence/display/NETBEANS/netbeans.org+migration
> >>>> <
> >>>>
> >>
> https://cwiki.apache.org/confluence/display/NETBEANS/netbeans.org+migration
> >>>>>
> >>>>>
> >>>>> Jan, can you please add your findings to that page?
> >>>>>
> >>>>> Thanks,
> >>>>> Antonio
> >>>>>
> >>>>> El 16/04/2019 a las 21:37, Geertjan Wielenga escribió:
> >>>>>> Yes, none of this is news at all. We tried rerouting, didn’t work as
> >>>>>> expected, side effects, so it’s being rolled back now, may take a
> day
> >>>> or so
> >>>>>> and it will be OK again.
> >>>>>>
> >>>>>> Then, now that we know of several problematic areas such as this
> one,
> >>>> we
> >>>>>> can investigate each case and see how to solve it.
> >>>>>>
> >>>>>> Gj
> >>>>>>
> >>>>>>
> >>>>>> On Tue, 16 Apr 2019 at 15:22, Jan Lahoda <lah...@gmail.com <mailto:
> >>>> lah...@gmail.com>> wrote:
> >>>>>>
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> (As noted by a friend of mine.) Many modules in NetBeans use DTDs
> or
> >>>> XSDs
> >>>>>>> to validate XMLs. The appropriate DTDs and XSDs are available not
> >> only
> >>>>>>> inside the IDE, but also published on the web. Presumably with the
> >>>> recent
> >>>>>>> change to use netbeans.apache.org <http://netbeans.apache.org/>
> >>>> instead of www.netbeans.org <http://www.netbeans.org/>, (some of)
> >>>>>>> these became unavailable. This can cause  problems when doing
> online
> >>>>>>> validation of XMLs. That may happen e.g. in tests.
> >>>>>>>
> >>>>>>> As far as I can tell, these were under the "dtd" and "ns"
> directories
> >>>> under
> >>>>>>> (www.)netbeans.org <http://netbeans.org/>.
> >>>>>>>
> >>>>>>> One thing to note is that "netbeans.org <http://netbeans.org/>"
> >>>> still appears to use the old
> >>>>>>> server. So:
> >>>>>>> https://netbeans.org/dtds/EditorFontsColors-1_0.dtd <
> >>>> https://netbeans.org/dtds/EditorFontsColors-1_0.dtd>
> >>>>>>>
> >>>>>>> still appears to work OK, while:
> >>>>>>> https://www.netbeans.org/dtds/EditorFontsColors-1_0.dtd <
> >>>> https://www.netbeans.org/dtds/EditorFontsColors-1_0.dtd>
> >>>>>>>
> >>>>>>> does not.
> >>>>>>>
> >>>>>>> I think we need to publish the DTDs and XSDs again on our pages,
> but
> >>>> it
> >>>>>>> would be awesome if we could use the old server until that is done.
> >>>> Would a
> >>>>>>> redirect from:
> >>>>>>> https://www.netbeans.org/dtds/ <https://www.netbeans.org/dtds/>
> >>>>>>> to:
> >>>>>>> https://netbeans.org/dtds/ <https://netbeans.org/dtds/>
> >>>>>>>
> >>>>>>> work for now? (And the same for "https://www.netbeans.org/ns/ <
> >>>> https://www.netbeans.org/ns/>".) After we
> >>>>>>> (re-)publish the DTDs and XSDs, we could change the DNS for
> >>>> netbeans.org <http://netbeans.org/>
> >>>>>>> as
> >>>>>>> well?
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>>        Jan
> >>>>>>>
> >>>>>>
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail:
> dev-unsubscr...@netbeans.incubator.apache.org
> >>>> <mailto:dev-unsubscr...@netbeans.incubator.apache.org>
> >>>>> For additional commands, e-mail:
> >> dev-h...@netbeans.incubator.apache.org
> >>>> <mailto:dev-h...@netbeans.incubator.apache.org>
> >>>>>
> >>>>> For further information about the NetBeans mailing lists, visit:
> >>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists <
> >>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> >> For additional commands, e-mail: dev-h...@netbeans.apache.org
> >>
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>
> >>
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Reply via email to