This issue has been created
There is 1 update.
 
 
Confluence / cid:jira-generated-image-avatar-37f9aefd-52b3-40cf-8d1f-837af9c4e311 CONFLUENCE-291 Open

Short link decoding fails for some links

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b23495cc-8f53-4c21-b86c-4d6d57646e1b Raphaël Jakse created this issue on 14/Oct/24 08:49
 
Summary: Short link decoding fails for some links
Issue Type: cid:jira-generated-image-avatar-37f9aefd-52b3-40cf-8d1f-837af9c4e311 Bug
Affects Versions: 9.57.0
Assignee: Unassigned
Components: URL Mapping, XML
Created: 14/Oct/24 08:49
Priority: cid:jira-generated-image-static-major-958d8ef8-5d97-4de5-ba43-8af8d130ac8d Major
Reporter: Raphaël Jakse
Description:

Failing links:

/x/1PfLP
/x/2a-iP
/x/3JeyP
/x/4PfLP
/x/5q-iP
/x/BfjLP
/x/FvjLP
/x/iNiyP
/x/kMbiP
/x/LRo3T
/x/UNTiP
/x/yTVmK

Stack trace:

java.lang.IllegalArgumentException: Last unit does not have enough valid bits
        at java.base/java.util.Base64$Decoder.decode0(Base64.java:868)
        at java.base/java.util.Base64$Decoder.decode(Base64.java:622)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceConverter.tinyPartToPageId(ConfluenceConverter.java:832)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceConverter.lambda$fixReference$4(ConfluenceConverter.java:907)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceConverter.tryPattern(ConfluenceConverter.java:809)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceConverter.fixReference(ConfluenceConverter.java:904)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceConverter.convertURL(ConfluenceConverter.java:958)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceConverter.convertURL(ConfluenceConverter.java:981)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceConverterListener.convert(ConfluenceConverterListener.java:322)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceConverterListener.convertLinkRef(ConfluenceConverterListener.java:383)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceConverterListener.endLink(ConfluenceConverterListener.java:390)
        at org.xwiki.rendering.listener.chaining.EventType$18.fireEvent(EventType.java:252)
        at org.xwiki.rendering.listener.QueueListener.consumeEvents(QueueListener.java:96)
        at org.xwiki.contrib.confluence.parser.xhtml.internal.wikimodel.ConfluenceXWikiGeneratorListener.endParagraph(ConfluenceXWikiGeneratorListener.java:670)
        at org.xwiki.rendering.wikimodel.impl.InternalWikiScannerContext.endParagraph(InternalWikiScannerContext.java:733)
        at org.xwiki.rendering.wikimodel.impl.WikiScannerContext.endParagraph(WikiScannerContext.java:396)
        at org.xwiki.rendering.wikimodel.xhtml.handler.ParagraphTagHandler.end(ParagraphTagHandler.java:55)
        at org.xwiki.contrib.confluence.parser.xhtml.internal.wikimodel.ConfluenceParagraphTagHandler.end(ConfluenceParagraphTagHandler.java:62)
        at org.xwiki.rendering.wikimodel.xhtml.handler.TagHandler.endElement(TagHandler.java:85)
        at org.xwiki.rendering.wikimodel.xhtml.impl.TagContext.endElement(TagContext.java:81)
        at org.xwiki.rendering.wikimodel.xhtml.impl.TagStack.endElement(TagStack.java:123)
        at org.xwiki.rendering.wikimodel.xhtml.impl.XhtmlHandler.endElement(XhtmlHandler.java:199)
        at java.xml/org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:558)
        at org.xwiki.rendering.wikimodel.xhtml.filter.XHTMLWhitespaceXMLFilter.endElement(XHTMLWhitespaceXMLFilter.java:190)
        at org.xwiki.contrib.confluence.parser.xhtml.internal.wikimodel.ConfluenceXHTMLWhitespaceXMLFilter.endElement(ConfluenceXHTMLWhitespaceXMLFilter.java:90)
        at java.xml/org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:558)
        at org.xwiki.rendering.wikimodel.xhtml.filter.AccumulationXMLFilter.endElement(AccumulationXMLFilter.java:86)
        at java.xml/org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:558)
        at org.xwiki.rendering.wikimodel.xhtml.filter.DTDXMLFilter.endElement(DTDXMLFilter.java:86)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at java.xml/org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:345)
        at org.xwiki.rendering.wikimodel.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:58)
        at java.xml/org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:345)
        at org.xwiki.rendering.wikimodel.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:58)
        at java.xml/org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:345)
        at org.xwiki.rendering.wikimodel.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:58)
        at org.xwiki.rendering.wikimodel.xhtml.XhtmlParser.parse(XhtmlParser.java:134)
        at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:141)
        at org.xwiki.contrib.confluence.parser.xhtml.internal.ConfluenceXHTMLParser.parse(ConfluenceXHTMLParser.java:302)
        at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:121)
        at org.xwiki.contrib.confluence.parser.xhtml.internal.ConfluenceXHTMLInputFilterStream.read(ConfluenceXHTMLInputFilterStream.java:118)
        at org.xwiki.contrib.confluence.parser.xhtml.internal.ConfluenceXHTMLInputFilterStream.read(ConfluenceXHTMLInputFilterStream.java:47)
        at org.xwiki.filter.input.AbstractBeanInputFilterStream.read(AbstractBeanInputFilterStream.java:79)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.parse(ConfluenceInputFilterStream.java:1964)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.convertToXWiki21(ConfluenceInputFilterStream.java:1933)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.beginPageRevision(ConfluenceInputFilterStream.java:1636)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.readPageRevision(ConfluenceInputFilterStream.java:1590)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendRevisions(ConfluenceInputFilterStream.java:1429)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendTerminalDoc(ConfluenceInputFilterStream.java:1337)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.readPage(ConfluenceInputFilterStream.java:1301)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendPage(ConfluenceInputFilterStream.java:626)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendPages(ConfluenceInputFilterStream.java:672)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.readPage(ConfluenceInputFilterStream.java:1310)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendPage(ConfluenceInputFilterStream.java:626)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendPages(ConfluenceInputFilterStream.java:672)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.readPage(ConfluenceInputFilterStream.java:1310)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendPage(ConfluenceInputFilterStream.java:626)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendPages(ConfluenceInputFilterStream.java:672)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.readPage(ConfluenceInputFilterStream.java:1310)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendPage(ConfluenceInputFilterStream.java:626)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendPages(ConfluenceInputFilterStream.java:672)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.readPage(ConfluenceInputFilterStream.java:1310)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendPage(ConfluenceInputFilterStream.java:626)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendConfluenceRootSpace(ConfluenceInputFilterStream.java:569)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.sendSpaces(ConfluenceInputFilterStream.java:433)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.readInternal(ConfluenceInputFilterStream.java:396)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:209)
        at org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:103)
        at org.xwiki.filter.input.AbstractBeanInputFilterStream.read(AbstractBeanInputFilterStream.java:79)
        at org.xwiki.filter.internal.job.FilterStreamConverterJob.runInternal(FilterStreamConverterJob.java:97)
        at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)
        at org.xwiki.job.AbstractJob.run(AbstractJob.java:223)
        at org.xwiki.filter.script.internal.ScriptFilterStreamConverterJob.run(ScriptFilterStreamConverterJob.java:75)
        at com.xwiki.confluencepro.internal.ConfluenceMigrationJob.runInternal(ConfluenceMigrationJob.java:166)
        at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)
        at org.xwiki.job.AbstractJob.run(AbstractJob.java:223)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)
 
 

1 update

 
cid:jira-generated-image-avatar-b23495cc-8f53-4c21-b86c-4d6d57646e1b Changes by Raphaël Jakse on 14/Oct/24 08:50
 
Assignee: Raphaël Jakse