Extensions: URL Normalizer 1.8.1 and Diagram Application 1.2

We are using the latest versions of “Wiki Link URL Normalizer” and “Diagram Application”.
The “URL Normalizer” crashes the svgs created by “Diagram Application”.
So, i wanted to know what filter-cofigurations todo to prevent “normalization” of svgs generally

Thanks.

I don’t know much about the Diagram Application, how does the wiki source look like if you disable the URL normalize and create a diagram ?

In any case it would be nice to create an issue about that on Loading... with details on how to reproduce it, to see if there is a way to do something to avoid the problem natively.

Actually I tried quickly and I think the real problem is more on the Diagram Application side: it creates pages with syntax xwiki/2.1 which is obviously not the syntax of the content, and it’s also why the URL Normalizer is kicking in and try to fix what looks like wiki links in the content.

It should be easy to fix by setting something like plain/1.0 as syntax so that nothing tries to interpret it.

Looks like it actually was fixed already by Loading..., but nobody released it.

@Wiking in the meantime you should be able to fix that in your instance by changing the syntax of the page Diagram.DiagramTemplate (http://mydomain/xwiki/bin/view/Diagram/DiagramTemplate) to plain/1.0 (you might need to enable this syntax in the admin, you can then disable it again)

Thanks i will try this. For claryfication i wrote that its chrashing the svg but its the markup of mxGraphModel.

Here is an example (snippet) with and without “URL Normalizer”

without:

<mxCell id="201" value="&lt;b&gt;&lt;a href=&quot;https://abc.xyz.com/xwiki/bin/view/departement/000%20general/&quot;&gt;010-000&lt;/a&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;a href=&quot;https://abc.xyz.com/xwiki/bin/view/departement/000%20general/&quot;&gt;-&lt;br&gt;&lt;/a&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;a href=&quot;https://abc.xyz.com/xwiki/bin/view/departement/000%20general/&quot;&gt;Geschäfts-führung&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">

and with respectively after normalization

<mxCell id="201" value="&lt;b&gt;&lt;a href=&quot;[[https:~~/~~/abc.xyz.com/xwiki/bin/view/departement/000%20general/&quot;&gt;010-000&lt;/a&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;a>>doc:departement.000 general.&quot.a&gt.b&gt]] href=&quot;[[https:~~/~~/abc.xyz.com/xwiki/bin/view/departement/000%20general/&quot;&gt;-&lt;br&gt;&lt;/a&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;a>>doc:departement.000 general.&quot.a&gt.b&gt]] href=&quot;[[https:~~/~~/abc.xyz.com/xwiki/bin/view/departement/000%20general/&quot;&gt;Gesch>>doc:departement.000 general.&quot]]äfts-führung&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">

Thanks

BTW you could also use https://store.xwiki.com/xwiki/bin/view/Extension/DiagramApplication which doesn’t have the problem.

Diagram App v1.3 has been released, see https://www.xwiki.org/xwiki/bin/view/Blog/DiagramApplication13Released