Support of single quotation marks in Nexus url parser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Support of single quotation marks in Nexus url parser

Nykky Markku

Hi!

 

Is it so that Nexus does not support single quotation marks (‘) in href-attributes of an <a> HTML tag while parsing remote repository web pages?

I have a web page containing some rpm-files and the page contains couple of links in form like: <a href=’http://example.com’>Example</a>.

 

I get an error in Nexus Manager:

 

“org.sonatype.nexus.rest.NexusApplication - Unhandled exception or error intercepted

java.lang.StringIndexOutOfBoundsException: String index out of range: -6

                at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:872) ~[na:1.7.0_55]

                at java.lang.StringBuilder.substring(StringBuilder.java:72) ~[na:1.7.0_55]

                at org.sonatype.nexus.plugins.rrb.parsers.HtmlRemoteRepositoryParser.getLinkUrl(HtmlRemoteRepositoryParser.java:173) ~[na:na]

                at org.sonatype.nexus.plugins.rrb.parsers.HtmlRemoteRepositoryParser.extractLinks(HtmlRemoteRepositoryParser.java:110) ~[na:na]

…”

 

when Nexus tries to parse the page and I think that the exception is thrown because Nexus cannot find double quotation mark from the url and so there is a negative index for StringBuilder’s substring-method and thus it throws the above-mentioned exception.

 

Br,

 

Markku