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 220006 - java.net.URISyntaxException: Illegal character in query at index 51: http://fonts.googleapis.com/css?family=Leckerli+One|Rokkitt:700,400|Luckiest+Guy
Summary: java.net.URISyntaxException: Illegal character in query at index 51: http://f...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-12 13:35 UTC by Petr Jiricka
Modified: 2012-10-17 02:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 193472


Attachments
stacktrace (2.77 KB, text/plain)
2012-10-12 13:35 UTC, Petr Jiricka
Details
stacktrace (2.77 KB, text/plain)
2012-10-15 13:05 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2012-10-12 13:35:53 UTC
Build: NetBeans IDE Dev (Build web-main-8850-on-20121012)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b11
OS: Mac OS X

User Comments:
pjiricka: Running the MexSantos application in the embedded browser.




Stacktrace: 
java.net.URISyntaxException: Illegal character in query at index 51: http://fonts.googleapis.com/css?family=Leckerli+One|Rokkitt:700,400|Luckiest+Guy
   at java.net.URI$Parser.fail(URI.java:2829)
   at java.net.URI$Parser.checkChars(URI.java:3002)
   at java.net.URI$Parser.parseHierarchical(URI.java:3092)
   at java.net.URI$Parser.parse(URI.java:3034)
   at java.net.URI.<init>(URI.java:595)
   at java.net.URL.toURI(URL.java:938)
Comment 1 Petr Jiricka 2012-10-12 13:35:55 UTC
Created attachment 125867 [details]
stacktrace
Comment 2 Petr Jiricka 2012-10-12 13:38:51 UTC
The code in the HTML page that triggers this is:

<link href='http://fonts.googleapis.com/css?family=Leckerli+One|Rokkitt:700,400|Luckiest+Guy' rel='stylesheet' type='text/css'>

This is 100% reproducible -> changing to P2.
Comment 3 Vladimir Riha 2012-10-15 13:05:15 UTC
Created attachment 125968 [details]
stacktrace

running this mexsantos in embedded browser (available in our wiki)
Comment 4 David Konecny 2012-10-15 22:50:42 UTC
URL.toURI complains about "|" in the URL. Instead of logging an error fallback on URL.toExternalForm(). Not sure how better I could fix this.
web-main#c7377e992c69
Comment 5 Quality Engineering 2012-10-17 02:04:36 UTC
Integrated into 'main-golden', will be available in build *201210170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c7377e992c69
User: David Konecny <dkonecny@netbeans.org>
Log: #220006 - java.net.URISyntaxException: Illegal character in query at index 51