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 233099 - referenced schema could not be loaded from https site
Summary: referenced schema could not be loaded from https site
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-19 23:11 UTC by chaoztc
Modified: 2015-09-17 14:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chaoztc 2013-07-19 23:11:20 UTC
If I reference a schema from an external https server with basic auth, the validation could not load it:

example:
<?xml version="1.0"?>
<node 1 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns="https://test.com" 
    xsi:schemaLocation="https://test.com https://test.com/test.xsd">

validate gives following errors:
XML validation started.

Checking file:/C:/Users/xxx/Downloads/test.xml...
Referenced entity at "https://test.com/test.xsd".
schema_reference.4: Failed to read schema document 'https://test.com/test.xsd', because 
1) could not find the document;
2) the document could not be read; 
3) the root element of the document is not <xsd:schema>. [2] 
cvc-elt.1: Cannot find the declaration of element 'issue'. [2] 



it defined via http it works:
<?xml version="1.0"?>
<node 1 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns="https://test.com" 
    xsi:schemaLocation="https://test.com http://test.com/test.xsd">

XML validation started.

Checking file:/C:/Users/if/Downloads/control%20(2).xml...
Referenced entity at "http://th.devel.dscc.at/pdf4dps-control/api/control2.xsd".
XML validation finished.

but the "https" xsd is reachable via webbrowser.
I have already tried to add the not self signed certificate to the jre keychain.

The same problem occurs also on OSX with Netbeans 7.3.1
Comment 1 Martin Balin 2015-09-17 14:14:01 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.