<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Escaped Share URL breaks TinyMCE on Safari in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/escaped-share-url-breaks-tinymce-on-safari/m-p/276414#M229544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Alfresco Community 3.4, when a user logs in, here is their dashboard URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8081/share/page/user/tuser3@jpotts.metaversant-laptop.com/dashboard" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/share/page/user/tuser3@jpotts.metaversant-laptop.com/dashboard&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice the "@" sign. In this case, we're using email address as the user id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the problem. Suppose you have a Share URL that looks like the one above and you try to use the TinyMCE editor. The JS includes appear to use the URL context to import the TinyMCE JavaScript, but they break because of the "@" sign.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In our case this happens when someone clicks the Dashboard link (which contains the @, out of the box) and manages a workflow task. We have a custom extension that invokes a SimpleDialog to let the user edit content. If that content is HTML, and if the user has an @ in their username, the editor does not show up. To fix this, we modified the header.get.html.ftl file to replace the @ sign in the userid token. This keeps the @ sign out of the URL and fixes the problem for Firefox and Chrome, but not Safari 5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try this yourself without our workflow customizations. Go do an inline edit on a piece of HTML content in your Share site. Your URL will look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8081/share/page/site/testsite1/inline-edit?nodeRef=workspace://SpacesStore/13a55691-33ae-4e0e-888f-8c0325adf074" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/share/page/site/testsite1/inline-edit?nodeRef=workspace://SpacesStore/13a55691-33ae-4e0e-888f-8c0325adf074&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now change the URL to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8081/share/page/user/foo@bar.com/inline-edit?nodeRef=workspace://SpacesStore/13a55691-33ae-4e0e-888f-8c0325adf074" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/share/page/user/foo@bar.com/inline-edit?nodeRef=workspace://SpacesStore/13a55691-33ae-4e0e-888f-8c0325adf074&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The rich text editor breaks. If you look at the browser console, the Surf dispatcher servlet is having trouble rendering the view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;javax.servlet.ServletException: Could not resolve view with name 'user/foo@localhost:8081/share/res/modules/editors/tiny_mce/langs/en.js' in servlet with name 'Spring Surf Dispatcher Servlet'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1042)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:617)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.alfresco.web.scripts.servlet.StaticAssetCacheFilter.doFilter(StaticAssetCacheFilter.java:70)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:301)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you change the URL to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8081/share/page/user/foo%40bar.com/inline-edit?nodeRef=workspace://SpacesStore/13a55691-33ae-4e0e-888f-8c0325adf074" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/share/page/user/foo%40bar.com/inline-edit?nodeRef=workspace://SpacesStore/13a55691-33ae-4e0e-888f-8c0325adf074&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The rich text editor works, but only in Firefox and Chrome. Safari still breaks with the same error. It's almost like when Safari does the include, it is unescaping the URL string whereas Firefox and Chrome do the include with the @ sign escaped. Anyone seen this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jan 2011 20:30:10 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2011-01-06T20:30:10Z</dc:date>
    <item>
      <title>Escaped Share URL breaks TinyMCE on Safari</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/escaped-share-url-breaks-tinymce-on-safari/m-p/276414#M229544</link>
      <description>In Alfresco Community 3.4, when a user logs in, here is their dashboard URL:http://localhost:8081/share/page/user/tuser3@jpotts.metaversant-laptop.com/dashboardNotice the "@" sign. In this case, we're using email address as the user id.Here's the problem. Suppose you have a Share URL that looks like</description>
      <pubDate>Thu, 06 Jan 2011 20:30:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/escaped-share-url-breaks-tinymce-on-safari/m-p/276414#M229544</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2011-01-06T20:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Escaped Share URL breaks TinyMCE on Safari</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/escaped-share-url-breaks-tinymce-on-safari/m-p/276415#M229545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The fix is to change the way the links are built in the My Tasks Dashlet. I've put the update for the my-tasks.js file in this Jira ticket: &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/jira/browse/ALF-6538" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/jira/browse/ALF-6538&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With this fix in place, you do not have to do the @ sign replacement fix that was outlined in the previous post in order to correct the Tiny MCE problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 19:53:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/escaped-share-url-breaks-tinymce-on-safari/m-p/276415#M229545</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2011-01-07T19:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Escaped Share URL breaks TinyMCE on Safari</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/escaped-share-url-breaks-tinymce-on-safari/m-p/276416#M229546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeff - looks like an easy fix we should be able to put in place quickly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 23:29:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/escaped-share-url-breaks-tinymce-on-safari/m-p/276416#M229546</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2011-01-07T23:29:55Z</dc:date>
    </item>
  </channel>
</rss>

