Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing a diagram from URL doesn't work properly #27

Closed
ane-gabriela opened this issue Feb 27, 2019 · 0 comments

Comments

@ane-gabriela
Copy link

commented Feb 27, 2019

Preconditions: Have a diagram URL eg. create a diagram with draw.io and Export it as URL.

Steps to reproduce:

  1. Edit a diagram page
  2. Click on File > Import from > URL...
  3. Paste the diagram URL
  4. Import it

Expected results: The diagram is imported.

Actual results: Diagram is not imported and when clicking on the Loading message in View mode an error page appears.

NOTE : Same result on draw.io

Environment: Windows 10, XWiki 10.11.3 with MySQL 5.7 and Edge 18

drawioresultimportfromurl
resultimportfromurl
clickingonthemessage

`HTTP ERROR 500
Problem accessing /xwiki/bin/view/Diagram/Diagram%201/%3C!--[if%20IE]%3E%3Cmeta%20http-equiv=%22X-UA-Compatible%22%20content=%22IE=5,IE=9%22%20%3E%3C![endif]--%3E%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%20%20%20%20%3Ctitle%3EFlowchart%20Maker%20&%20Online%20Diagram%20Software%3C/title%3E%20%20%20%20%3Cmeta%20charset=%22utf-8%22/%3E%20%20%20%20%3Cmeta%20http-equiv=%22Content-Type%22%20content=%22text/html;%20charset=UTF-8%22%3E%20%20%20%20%3Cmeta%20name=%22Description%22%20content=%22draw.io%20is%20free%20online%20diagram%20software%20for%20making%20flowcharts,%20process%20diagrams,%20org%20charts,%20UML,%20ER%20and%20network%20diagrams%22%3E%20%20%20%20%3Cmeta%20name=%22Keywords%22%20content=%22diagram,%20online,%20flow%20chart,%20flowchart%20maker,%20uml,%20erd%22%3E%20%20%20%20%3Cmeta%20itemprop=%22name%22%20content=%22draw.io%20-%20free%20flowchart%20maker%20and%20diagrams%20online%22%3E%20%3Cmeta%20itemprop=%22description%22%20content=%22draw.io%20is%20a%20free%20online%20diagramming%20application%20%20and%20flowchart%20maker%20.%20You%20can%20use%20it%20to%20create%20UML,%20entity%20relationship,%20%20org%20charts,%20BPMN%20and%20BPM,%20database%20schema%20and%20networks.%20Also%20possible%20are%20telecommunication%20network,%20workflow,%20flowcharts,%20maps%20overlays%20and%20GIS,%20electronic%20%20%20circuit%20and%20social%20network%20diagrams.%22%3E%20%3Cmeta%20itemprop=%22image%22%20content=%22https://lh4.googleusercontent.com/-cLKEldMbT_E/Tx8qXDuw6eI/AAAAAAAAAAs/Ke0pnlk8Gpg/w500-h344-k/BPMN%2Bdiagram%2Brc2f.png%22%3E%20%20%20%20%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%3E%20%3Cmeta%20name=%22msapplication-config%22%20content=%22images/browserconfig.xml%22%3E%20%20%20%20%3Cmeta%20name=%22mobile-web-app-capable%22%20content=%22yes%22%3E%20%3Cmeta%20name=%22theme-color%22%20content=%22. Reason:
Server Error

Caused by:
javax.servlet.ServletException: javax.servlet.ServletException: Invalid URL [http://localhost:8080/xwiki/bin/view/Diagram/Diagram%201/%3C!--[if%20IE]%3E%3Cmeta%20http-equiv=%22X-UA-Compatible%22%20content=%22IE=5,IE=9%22%20%3E%3C![endif]--%3E%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%20%20%20%20%3Ctitle%3EFlowchart%20Maker%20&%20Online%20Diagram%20Software%3C/title%3E%20%20%20%20%3Cmeta%20charset=%22utf-8%22/%3E%20%20%20%20%3Cmeta%20http-equiv=%22Content-Type%22%20content=%22text/html;%20charset=UTF-8%22%3E%20%20%20%20%3Cmeta%20name=%22Description%22%20content=%22draw.io%20is%20free%20online%20diagram%20software%20for%20making%20flowcharts,%20process%20diagrams,%20org%20charts,%20UML,%20ER%20and%20network%20diagrams%22%3E%20%20%20%20%3Cmeta%20name=%22Keywords%22%20content=%22diagram,%20online,%20flow%20chart,%20flowchart%20maker,%20uml,%20erd%22%3E%20%20%20%20%3Cmeta%20itemprop=%22name%22%20content=%22draw.io%20-%20free%20flowchart%20maker%20and%20diagrams%20online%22%3E%20%3Cmeta%20itemprop=%22description%22%20content=%22draw.io%20is%20a%20free%20online%20diagramming%20application%20%20and%20flowchart%20maker%20.%20You%20can%20use%20it%20to%20create%20UML,%20entity%20relationship,%20%20org%20charts,%20BPMN%20and%20BPM,%20database%20schema%20and%20networks.%20Also%20possible%20are%20telecommunication%20network,%20workflow,%20flowcharts,%20maps%20overlays%20and%20GIS,%20electronic%20%20%20circuit%20and%20social%20network%20diagrams.%22%3E%20%3Cmeta%20itemprop=%22image%22%20content=%22https://lh4.googleusercontent.com/-cLKEldMbT_E/Tx8qXDuw6eI/AAAAAAAAAAs/Ke0pnlk8Gpg/w500-h344-k/BPMN%2Bdiagram%2Brc2f.png%22%3E%20%20%20%20%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%3E%20%3Cmeta%20name=%22msapplication-config%22%20content=%22images/browserconfig.xml%22%3E%20%20%20%20%3Cmeta%20name=%22mobile-web-app-capable%22%20content=%22yes%22%3E%20%3Cmeta%20name=%22theme-color%22%20content=%22]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:530)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.servlet.ServletException: Invalid URL [http://localhost:8080/xwiki/bin/view/Diagram/Diagram%201/%3C!--[if%20IE]%3E%3Cmeta%20http-equiv=%22X-UA-Compatible%22%20content=%22IE=5,IE=9%22%20%3E%3C![endif]--%3E%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%20%20%20%20%3Ctitle%3EFlowchart%20Maker%20&%20Online%20Diagram%20Software%3C/title%3E%20%20%20%20%3Cmeta%20charset=%22utf-8%22/%3E%20%20%20%20%3Cmeta%20http-equiv=%22Content-Type%22%20content=%22text/html;%20charset=UTF-8%22%3E%20%20%20%20%3Cmeta%20name=%22Description%22%20content=%22draw.io%20is%20free%20online%20diagram%20software%20for%20making%20flowcharts,%20process%20diagrams,%20org%20charts,%20UML,%20ER%20and%20network%20diagrams%22%3E%20%20%20%20%3Cmeta%20name=%22Keywords%22%20content=%22diagram,%20online,%20flow%20chart,%20flowchart%20maker,%20uml,%20erd%22%3E%20%20%20%20%3Cmeta%20itemprop=%22name%22%20content=%22draw.io%20-%20free%20flowchart%20maker%20and%20diagrams%20online%22%3E%20%3Cmeta%20itemprop=%22description%22%20content=%22draw.io%20is%20a%20free%20online%20diagramming%20application%20%20and%20flowchart%20maker%20.%20You%20can%20use%20it%20to%20create%20UML,%20entity%20relationship,%20%20org%20charts,%20BPMN%20and%20BPM,%20database%20schema%20and%20networks.%20Also%20possible%20are%20telecommunication%20network,%20workflow,%20flowcharts,%20maps%20overlays%20and%20GIS,%20electronic%20%20%20circuit%20and%20social%20network%20diagrams.%22%3E%20%3Cmeta%20itemprop=%22image%22%20content=%22https://lh4.googleusercontent.com/-cLKEldMbT_E/Tx8qXDuw6eI/AAAAAAAAAAs/Ke0pnlk8Gpg/w500-h344-k/BPMN%2Bdiagram%2Brc2f.png%22%3E%20%20%20%20%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%3E%20%3Cmeta%20name=%22msapplication-config%22%20content=%22images/browserconfig.xml%22%3E%20%20%20%20%3Cmeta%20name=%22mobile-web-app-capable%22%20content=%22yes%22%3E%20%3Cmeta%20name=%22theme-color%22%20content=%22]
at org.xwiki.resource.servlet.RoutingFilter.constructExtendedURL(RoutingFilter.java:190)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:97)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1629)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
... 14 more
Caused by: org.xwiki.resource.CreateResourceReferenceException: Invalid URL [http://localhost:8080/xwiki/bin/view/Diagram/Diagram%201/%3C!--[if%20IE]%3E%3Cmeta%20http-equiv=%22X-UA-Compatible%22%20content=%22IE=5,IE=9%22%20%3E%3C![endif]--%3E%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%20%20%20%20%3Ctitle%3EFlowchart%20Maker%20&%20Online%20Diagram%20Software%3C/title%3E%20%20%20%20%3Cmeta%20charset=%22utf-8%22/%3E%20%20%20%20%3Cmeta%20http-equiv=%22Content-Type%22%20content=%22text/html;%20charset=UTF-8%22%3E%20%20%20%20%3Cmeta%20name=%22Description%22%20content=%22draw.io%20is%20free%20online%20diagram%20software%20for%20making%20flowcharts,%20process%20diagrams,%20org%20charts,%20UML,%20ER%20and%20network%20diagrams%22%3E%20%20%20%20%3Cmeta%20name=%22Keywords%22%20content=%22diagram,%20online,%20flow%20chart,%20flowchart%20maker,%20uml,%20erd%22%3E%20%20%20%20%3Cmeta%20itemprop=%22name%22%20content=%22draw.io%20-%20free%20flowchart%20maker%20and%20diagrams%20online%22%3E%20%3Cmeta%20itemprop=%22description%22%20content=%22draw.io%20is%20a%20free%20online%20diagramming%20application%20%20and%20flowchart%20maker%20.%20You%20can%20use%20it%20to%20create%20UML,%20entity%20relationship,%20%20org%20charts,%20BPMN%20and%20BPM,%20database%20schema%20and%20networks.%20Also%20possible%20are%20telecommunication%20network,%20workflow,%20flowcharts,%20maps%20overlays%20and%20GIS,%20electronic%20%20%20circuit%20and%20social%20network%20diagrams.%22%3E%20%3Cmeta%20itemprop=%22image%22%20content=%22https://lh4.googleusercontent.com/-cLKEldMbT_E/Tx8qXDuw6eI/AAAAAAAAAAs/Ke0pnlk8Gpg/w500-h344-k/BPMN%2Bdiagram%2Brc2f.png%22%3E%20%20%20%20%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%3E%20%3Cmeta%20name=%22msapplication-config%22%20content=%22images/browserconfig.xml%22%3E%20%20%20%20%3Cmeta%20name=%22mobile-web-app-capable%22%20content=%22yes%22%3E%20%3Cmeta%20name=%22theme-color%22%20content=%22]
at org.xwiki.url.ExtendedURL.(ExtendedURL.java:122)
at org.xwiki.resource.servlet.RoutingFilter.constructExtendedURL(RoutingFilter.java:188)
... 32 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 63: http://localhost:8080/xwiki/bin/view/Diagram/Diagram%201/%3C!--[if%20IE]%3E%3Cmeta%20http-equiv=%22X-UA-Compatible%22%20content=%22IE=5,IE=9%22%20%3E%3C![endif]--%3E%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%20%20%20%20%3Ctitle%3EFlowchart%20Maker%20&%20Online%20Diagram%20Software%3C/title%3E%20%20%20%20%3Cmeta%20charset=%22utf-8%22/%3E%20%20%20%20%3Cmeta%20http-equiv=%22Content-Type%22%20content=%22text/html;%20charset=UTF-8%22%3E%20%20%20%20%3Cmeta%20name=%22Description%22%20content=%22draw.io%20is%20free%20online%20diagram%20software%20for%20making%20flowcharts,%20process%20diagrams,%20org%20charts,%20UML,%20ER%20and%20network%20diagrams%22%3E%20%20%20%20%3Cmeta%20name=%22Keywords%22%20content=%22diagram,%20online,%20flow%20chart,%20flowchart%20maker,%20uml,%20erd%22%3E%20%20%20%20%3Cmeta%20itemprop=%22name%22%20content=%22draw.io%20-%20free%20flowchart%20maker%20and%20diagrams%20online%22%3E%20%3Cmeta%20itemprop=%22description%22%20content=%22draw.io%20is%20a%20free%20online%20diagramming%20application%20%20and%20flowchart%20maker%20.%20You%20can%20use%20it%20to%20create%20UML,%20entity%20relationship,%20%20org%20charts,%20BPMN%20and%20BPM,%20database%20schema%20and%20networks.%20Also%20possible%20are%20telecommunication%20network,%20workflow,%20flowcharts,%20maps%20overlays%20and%20GIS,%20electronic%20%20%20circuit%20and%20social%20network%20diagrams.%22%3E%20%3Cmeta%20itemprop=%22image%22%20content=%22https://lh4.googleusercontent.com/-cLKEldMbT_E/Tx8qXDuw6eI/AAAAAAAAAAs/Ke0pnlk8Gpg/w500-h344-k/BPMN%2Bdiagram%2Brc2f.png%22%3E%20%20%20%20%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%3E%20%3Cmeta%20name=%22msapplication-config%22%20content=%22images/browserconfig.xml%22%3E%20%20%20%20%3Cmeta%20name=%22mobile-web-app-capable%22%20content=%22yes%22%3E%20%3Cmeta%20name=%22theme-color%22%20content=%22
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.(Unknown Source)
at java.net.URL.toURI(Unknown Source)
at org.xwiki.url.ExtendedURL.(ExtendedURL.java:120)
... 33 more
Caused by:
javax.servlet.ServletException: Invalid URL [http://localhost:8080/xwiki/bin/view/Diagram/Diagram%201/%3C!--[if%20IE]%3E%3Cmeta%20http-equiv=%22X-UA-Compatible%22%20content=%22IE=5,IE=9%22%20%3E%3C![endif]--%3E%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%20%20%20%20%3Ctitle%3EFlowchart%20Maker%20&%20Online%20Diagram%20Software%3C/title%3E%20%20%20%20%3Cmeta%20charset=%22utf-8%22/%3E%20%20%20%20%3Cmeta%20http-equiv=%22Content-Type%22%20content=%22text/html;%20charset=UTF-8%22%3E%20%20%20%20%3Cmeta%20name=%22Description%22%20content=%22draw.io%20is%20free%20online%20diagram%20software%20for%20making%20flowcharts,%20process%20diagrams,%20org%20charts,%20UML,%20ER%20and%20network%20diagrams%22%3E%20%20%20%20%3Cmeta%20name=%22Keywords%22%20content=%22diagram,%20online,%20flow%20chart,%20flowchart%20maker,%20uml,%20erd%22%3E%20%20%20%20%3Cmeta%20itemprop=%22name%22%20content=%22draw.io%20-%20free%20flowchart%20maker%20and%20diagrams%20online%22%3E%20%3Cmeta%20itemprop=%22description%22%20content=%22draw.io%20is%20a%20free%20online%20diagramming%20application%20%20and%20flowchart%20maker%20.%20You%20can%20use%20it%20to%20create%20UML,%20entity%20relationship,%20%20org%20charts,%20BPMN%20and%20BPM,%20database%20schema%20and%20networks.%20Also%20possible%20are%20telecommunication%20network,%20workflow,%20flowcharts,%20maps%20overlays%20and%20GIS,%20electronic%20%20%20circuit%20and%20social%20network%20diagrams.%22%3E%20%3Cmeta%20itemprop=%22image%22%20content=%22https://lh4.googleusercontent.com/-cLKEldMbT_E/Tx8qXDuw6eI/AAAAAAAAAAs/Ke0pnlk8Gpg/w500-h344-k/BPMN%2Bdiagram%2Brc2f.png%22%3E%20%20%20%20%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%3E%20%3Cmeta%20name=%22msapplication-config%22%20content=%22images/browserconfig.xml%22%3E%20%20%20%20%3Cmeta%20name=%22mobile-web-app-capable%22%20content=%22yes%22%3E%20%3Cmeta%20name=%22theme-color%22%20content=%22]
at org.xwiki.resource.servlet.RoutingFilter.constructExtendedURL(RoutingFilter.java:190)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:97)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1629)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:530)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xwiki.resource.CreateResourceReferenceException: Invalid URL [http://localhost:8080/xwiki/bin/view/Diagram/Diagram%201/%3C!--[if%20IE]%3E%3Cmeta%20http-equiv=%22X-UA-Compatible%22%20content=%22IE=5,IE=9%22%20%3E%3C![endif]--%3E%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%20%20%20%20%3Ctitle%3EFlowchart%20Maker%20&%20Online%20Diagram%20Software%3C/title%3E%20%20%20%20%3Cmeta%20charset=%22utf-8%22/%3E%20%20%20%20%3Cmeta%20http-equiv=%22Content-Type%22%20content=%22text/html;%20charset=UTF-8%22%3E%20%20%20%20%3Cmeta%20name=%22Description%22%20content=%22draw.io%20is%20free%20online%20diagram%20software%20for%20making%20flowcharts,%20process%20diagrams,%20org%20charts,%20UML,%20ER%20and%20network%20diagrams%22%3E%20%20%20%20%3Cmeta%20name=%22Keywords%22%20content=%22diagram,%20online,%20flow%20chart,%20flowchart%20maker,%20uml,%20erd%22%3E%20%20%20%20%3Cmeta%20itemprop=%22name%22%20content=%22draw.io%20-%20free%20flowchart%20maker%20and%20diagrams%20online%22%3E%20%3Cmeta%20itemprop=%22description%22%20content=%22draw.io%20is%20a%20free%20online%20diagramming%20application%20%20and%20flowchart%20maker%20.%20You%20can%20use%20it%20to%20create%20UML,%20entity%20relationship,%20%20org%20charts,%20BPMN%20and%20BPM,%20database%20schema%20and%20networks.%20Also%20possible%20are%20telecommunication%20network,%20workflow,%20flowcharts,%20maps%20overlays%20and%20GIS,%20electronic%20%20%20circuit%20and%20social%20network%20diagrams.%22%3E%20%3Cmeta%20itemprop=%22image%22%20content=%22https://lh4.googleusercontent.com/-cLKEldMbT_E/Tx8qXDuw6eI/AAAAAAAAAAs/Ke0pnlk8Gpg/w500-h344-k/BPMN%2Bdiagram%2Brc2f.png%22%3E%20%20%20%20%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%3E%20%3Cmeta%20name=%22msapplication-config%22%20content=%22images/browserconfig.xml%22%3E%20%20%20%20%3Cmeta%20name=%22mobile-web-app-capable%22%20content=%22yes%22%3E%20%3Cmeta%20name=%22theme-color%22%20content=%22]
at org.xwiki.url.ExtendedURL.(ExtendedURL.java:122)
at org.xwiki.resource.servlet.RoutingFilter.constructExtendedURL(RoutingFilter.java:188)
... 32 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 63: http://localhost:8080/xwiki/bin/view/Diagram/Diagram%201/%3C!--[if%20IE]%3E%3Cmeta%20http-equiv=%22X-UA-Compatible%22%20content=%22IE=5,IE=9%22%20%3E%3C![endif]--%3E%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%20%20%20%20%3Ctitle%3EFlowchart%20Maker%20&%20Online%20Diagram%20Software%3C/title%3E%20%20%20%20%3Cmeta%20charset=%22utf-8%22/%3E%20%20%20%20%3Cmeta%20http-equiv=%22Content-Type%22%20content=%22text/html;%20charset=UTF-8%22%3E%20%20%20%20%3Cmeta%20name=%22Description%22%20content=%22draw.io%20is%20free%20online%20diagram%20software%20for%20making%20flowcharts,%20process%20diagrams,%20org%20charts,%20UML,%20ER%20and%20network%20diagrams%22%3E%20%20%20%20%3Cmeta%20name=%22Keywords%22%20content=%22diagram,%20online,%20flow%20chart,%20flowchart%20maker,%20uml,%20erd%22%3E%20%20%20%20%3Cmeta%20itemprop=%22name%22%20content=%22draw.io%20-%20free%20flowchart%20maker%20and%20diagrams%20online%22%3E%20%3Cmeta%20itemprop=%22description%22%20content=%22draw.io%20is%20a%20free%20online%20diagramming%20application%20%20and%20flowchart%20maker%20.%20You%20can%20use%20it%20to%20create%20UML,%20entity%20relationship,%20%20org%20charts,%20BPMN%20and%20BPM,%20database%20schema%20and%20networks.%20Also%20possible%20are%20telecommunication%20network,%20workflow,%20flowcharts,%20maps%20overlays%20and%20GIS,%20electronic%20%20%20circuit%20and%20social%20network%20diagrams.%22%3E%20%3Cmeta%20itemprop=%22image%22%20content=%22https://lh4.googleusercontent.com/-cLKEldMbT_E/Tx8qXDuw6eI/AAAAAAAAAAs/Ke0pnlk8Gpg/w500-h344-k/BPMN%2Bdiagram%2Brc2f.png%22%3E%20%20%20%20%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%3E%20%3Cmeta%20name=%22msapplication-config%22%20content=%22images/browserconfig.xml%22%3E%20%20%20%20%3Cmeta%20name=%22mobile-web-app-capable%22%20content=%22yes%22%3E%20%3Cmeta%20name=%22theme-color%22%20content=%22
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.(Unknown Source)
at java.net.URL.toURI(Unknown Source)
at org.xwiki.url.ExtendedURL.(ExtendedURL.java:120)
... 33 more
Caused by:
org.xwiki.resource.CreateResourceReferenceException: Invalid URL [http://localhost:8080/xwiki/bin/view/Diagram/Diagram%201/%3C!--[if%20IE]%3E%3Cmeta%20http-equiv=%22X-UA-Compatible%22%20content=%22IE=5,IE=9%22%20%3E%3C![endif]--%3E%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%20%20%20%20%3Ctitle%3EFlowchart%20Maker%20&%20Online%20Diagram%20Software%3C/title%3E%20%20%20%20%3Cmeta%20charset=%22utf-8%22/%3E%20%20%20%20%3Cmeta%20http-equiv=%22Content-Type%22%20content=%22text/html;%20charset=UTF-8%22%3E%20%20%20%20%3Cmeta%20name=%22Description%22%20content=%22draw.io%20is%20free%20online%20diagram%20software%20for%20making%20flowcharts,%20process%20diagrams,%20org%20charts,%20UML,%20ER%20and%20network%20diagrams%22%3E%20%20%20%20%3Cmeta%20name=%22Keywords%22%20content=%22diagram,%20online,%20flow%20chart,%20flowchart%20maker,%20uml,%20erd%22%3E%20%20%20%20%3Cmeta%20itemprop=%22name%22%20content=%22draw.io%20-%20free%20flowchart%20maker%20and%20diagrams%20online%22%3E%20%3Cmeta%20itemprop=%22description%22%20content=%22draw.io%20is%20a%20free%20online%20diagramming%20application%20%20and%20flowchart%20maker%20.%20You%20can%20use%20it%20to%20create%20UML,%20entity%20relationship,%20%20org%20charts,%20BPMN%20and%20BPM,%20database%20schema%20and%20networks.%20Also%20possible%20are%20telecommunication%20network,%20workflow,%20flowcharts,%20maps%20overlays%20and%20GIS,%20electronic%20%20%20circuit%20and%20social%20network%20diagrams.%22%3E%20%3Cmeta%20itemprop=%22image%22%20content=%22https://lh4.googleusercontent.com/-cLKEldMbT_E/Tx8qXDuw6eI/AAAAAAAAAAs/Ke0pnlk8Gpg/w500-h344-k/BPMN%2Bdiagram%2Brc2f.png%22%3E%20%20%20%20%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%3E%20%3Cmeta%20name=%22msapplication-config%22%20content=%22images/browserconfig.xml%22%3E%20%20%20%20%3Cmeta%20name=%22mobile-web-app-capable%22%20content=%22yes%22%3E%20%3Cmeta%20name=%22theme-color%22%20content=%22]
at org.xwiki.url.ExtendedURL.(ExtendedURL.java:122)
at org.xwiki.resource.servlet.RoutingFilter.constructExtendedURL(RoutingFilter.java:188)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:97)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1629)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:530)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.URISyntaxException: Illegal character in path at index 63: http://localhost:8080/xwiki/bin/view/Diagram/Diagram%201/%3C!--[if%20IE]%3E%3Cmeta%20http-equiv=%22X-UA-Compatible%22%20content=%22IE=5,IE=9%22%20%3E%3C![endif]--%3E%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%20%20%20%20%3Ctitle%3EFlowchart%20Maker%20&%20Online%20Diagram%20Software%3C/title%3E%20%20%20%20%3Cmeta%20charset=%22utf-8%22/%3E%20%20%20%20%3Cmeta%20http-equiv=%22Content-Type%22%20content=%22text/html;%20charset=UTF-8%22%3E%20%20%20%20%3Cmeta%20name=%22Description%22%20content=%22draw.io%20is%20free%20online%20diagram%20software%20for%20making%20flowcharts,%20process%20diagrams,%20org%20charts,%20UML,%20ER%20and%20network%20diagrams%22%3E%20%20%20%20%3Cmeta%20name=%22Keywords%22%20content=%22diagram,%20online,%20flow%20chart,%20flowchart%20maker,%20uml,%20erd%22%3E%20%20%20%20%3Cmeta%20itemprop=%22name%22%20content=%22draw.io%20-%20free%20flowchart%20maker%20and%20diagrams%20online%22%3E%20%3Cmeta%20itemprop=%22description%22%20content=%22draw.io%20is%20a%20free%20online%20diagramming%20application%20%20and%20flowchart%20maker%20.%20You%20can%20use%20it%20to%20create%20UML,%20entity%20relationship,%20%20org%20charts,%20BPMN%20and%20BPM,%20database%20schema%20and%20networks.%20Also%20possible%20are%20telecommunication%20network,%20workflow,%20flowcharts,%20maps%20overlays%20and%20GIS,%20electronic%20%20%20circuit%20and%20social%20network%20diagrams.%22%3E%20%3Cmeta%20itemprop=%22image%22%20content=%22https://lh4.googleusercontent.com/-cLKEldMbT_E/Tx8qXDuw6eI/AAAAAAAAAAs/Ke0pnlk8Gpg/w500-h344-k/BPMN%2Bdiagram%2Brc2f.png%22%3E%20%20%20%20%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%3E%20%3Cmeta%20name=%22msapplication-config%22%20content=%22images/browserconfig.xml%22%3E%20%20%20%20%3Cmeta%20name=%22mobile-web-app-capable%22%20content=%22yes%22%3E%20%3Cmeta%20name=%22theme-color%22%20content=%22
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.(Unknown Source)
at java.net.URL.toURI(Unknown Source)
at org.xwiki.url.ExtendedURL.(ExtendedURL.java:120)
... 33 more
Caused by:
java.net.URISyntaxException: Illegal character in path at index 63: http://localhost:8080/xwiki/bin/view/Diagram/Diagram%201/%3C!--[if%20IE]%3E%3Cmeta%20http-equiv=%22X-UA-Compatible%22%20content=%22IE=5,IE=9%22%20%3E%3C![endif]--%3E%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%20%20%20%20%3Ctitle%3EFlowchart%20Maker%20&%20Online%20Diagram%20Software%3C/title%3E%20%20%20%20%3Cmeta%20charset=%22utf-8%22/%3E%20%20%20%20%3Cmeta%20http-equiv=%22Content-Type%22%20content=%22text/html;%20charset=UTF-8%22%3E%20%20%20%20%3Cmeta%20name=%22Description%22%20content=%22draw.io%20is%20free%20online%20diagram%20software%20for%20making%20flowcharts,%20process%20diagrams,%20org%20charts,%20UML,%20ER%20and%20network%20diagrams%22%3E%20%20%20%20%3Cmeta%20name=%22Keywords%22%20content=%22diagram,%20online,%20flow%20chart,%20flowchart%20maker,%20uml,%20erd%22%3E%20%20%20%20%3Cmeta%20itemprop=%22name%22%20content=%22draw.io%20-%20free%20flowchart%20maker%20and%20diagrams%20online%22%3E%20%3Cmeta%20itemprop=%22description%22%20content=%22draw.io%20is%20a%20free%20online%20diagramming%20application%20%20and%20flowchart%20maker%20.%20You%20can%20use%20it%20to%20create%20UML,%20entity%20relationship,%20%20org%20charts,%20BPMN%20and%20BPM,%20database%20schema%20and%20networks.%20Also%20possible%20are%20telecommunication%20network,%20workflow,%20flowcharts,%20maps%20overlays%20and%20GIS,%20electronic%20%20%20circuit%20and%20social%20network%20diagrams.%22%3E%20%3Cmeta%20itemprop=%22image%22%20content=%22https://lh4.googleusercontent.com/-cLKEldMbT_E/Tx8qXDuw6eI/AAAAAAAAAAs/Ke0pnlk8Gpg/w500-h344-k/BPMN%2Bdiagram%2Brc2f.png%22%3E%20%20%20%20%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,%20initial-scale=1.0,%20maximum-scale=1.0,%20user-scalable=no%22%3E%20%3Cmeta%20name=%22msapplication-config%22%20content=%22images/browserconfig.xml%22%3E%20%20%20%20%3Cmeta%20name=%22mobile-web-app-capable%22%20content=%22yes%22%3E%20%3Cmeta%20name=%22theme-color%22%20content=%22
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.(Unknown Source)
at java.net.URL.toURI(Unknown Source)
at org.xwiki.url.ExtendedURL.(ExtendedURL.java:120)
at org.xwiki.resource.servlet.RoutingFilter.constructExtendedURL(RoutingFilter.java:188)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:97)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1629)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:530)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
at java.lang.Thread.run(Unknown Source)

Powered by Jetty:// 9.4.8.v20171121`

@ane-gabriela ane-gabriela added this to the 1.6.2 milestone Feb 27, 2019
@acotiuga acotiuga removed this from the 1.6.2 milestone Jul 11, 2019
arcilli added a commit that referenced this issue Jul 22, 2019
Query was changed for not including anymore diagrams created by loading an URL (issue #27)
@arcilli arcilli self-assigned this Aug 27, 2019
arcilli added a commit that referenced this issue Aug 28, 2019
Overwrote loadUrl function to support diagrams that are encoded in url.
mflorea added a commit that referenced this issue Sep 9, 2019
* Overwrote loadUrl function to support diagrams that are encoded in url.
* Moved getDiagramXMLFromUrl function to DiagramSheet
* Use URLSearchParams & workaround for IE
@mflorea mflorea added this to the 1.8 milestone Sep 9, 2019
@mflorea mflorea closed this Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.