exo-ecms
  1. exo-ecms
  2. ECMS-2504

corrupted link in the WYSIWYG field

    Details

    • Type: Bug Bug
    • Status: Closed (View Workflow)
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: wcm-2.1.5
    • Fix Version/s: wcm-2.1.6
    • Component/s: None
    • Labels:
    • Environment:

      EPP-SP

    • Similar issues:
      Show 10 results 
    • BV:
      0
    • Support Status:
      Fixed in Product
    • BO:
      0
    • Source:
      Supported Customer

      Description

      Certain combinations of links corrupted after save the content:
      Steps to reproduce:
      1) Log into the ecmdemo portal.
      2) Go to siteExplorer.
      3) Create a new article.
      4) Switch the WYSIWYG to source mode
      5) Paste in the source :

      <a href="www.google.com">performance on red</a>
      

      6) Switch out of source mode-->the links exist.
      7) Save as draft
      ==>the links are disappeared.
      Note: When our link contain the word "on" ==>links corrupted after save the content

      1. 2011-07-28-ECMS-2504.patch
        0.8 kB
        Ha Quang Tan
      2. 2011-08-12-ECMS-2504.patch
        0.8 kB
        Ha Quang Tan
      1. AddLinkAfterSave.png
        14 kB
      2. AddLinkBeforeSave.png
        20 kB

        Issue Links

          Activity

          Hide
          Minh Dang added a comment -

          The <script> is forbidden in content. Allow <script> in content is risk and asked to avoid it.

          Show
          Minh Dang added a comment - The <script> is forbidden in content. Allow <script> in content is risk and asked to avoid it.
          Hide
          aymen Boughzela added a comment -

          The client need to add scripts to use in the content
          how he can overcome this limitation?
          Thanks in advance.

          Show
          aymen Boughzela added a comment - The client need to add scripts to use in the content how he can overcome this limitation? Thanks in advance.
          Hide
          Minh Dang added a comment -

          Actually we have no way to add <script> in contents. If he wants to add his script then please add them in gatein-resources.xml of his war or in groovy template by using the JavascriptManager.

          Show
          Minh Dang added a comment - Actually we have no way to add <script> in contents. If he wants to add his script then please add them in gatein-resources.xml of his war or in groovy template by using the JavascriptManager.
          Hide
          Ha Quang Tan (Inactive) added a comment -

          New patch for wcm 2.1.x is proposed!

          Show
          Ha Quang Tan (Inactive) added a comment - New patch for wcm 2.1.x is proposed!
          Hide
          CI Server added a comment -

          Integrated in ecms-2.1.x-ci #726
          ECMS-2504: Corrupted link in the WYSIWYG field

          Fix description

          • Remove javascript
          • Remove <script>
          • Remove eval javascript function
          • Replace apostrophe character by #39;

          thanhtt :
          Files :

          • /ecms/branches/2.1.x/core/webui/src/main/java/org/exoplatform/wcm/webui/Utils.java
          • /ecms/branches/2.1.x/patch/2.1.6/ECMS-2504
          • /ecms/branches/2.1.x/patch/2.1.6/ECMS-2504/ECMS-2504.patch
          • /ecms/branches/2.1.x/patch/2.1.6/ECMS-2504/readme.txt
          Show
          CI Server added a comment - Integrated in ecms-2.1.x-ci #726 ECMS-2504 : Corrupted link in the WYSIWYG field Fix description Remove javascript Remove <script> Remove eval javascript function Replace apostrophe character by #39; thanhtt : Files : /ecms/branches/2.1.x/core/webui/src/main/java/org/exoplatform/wcm/webui/Utils.java /ecms/branches/2.1.x/patch/2.1.6/ ECMS-2504 /ecms/branches/2.1.x/patch/2.1.6/ ECMS-2504 / ECMS-2504 .patch /ecms/branches/2.1.x/patch/2.1.6/ ECMS-2504 /readme.txt

            People

            • Assignee:
              Ha Quang Tan (Inactive)
              Reporter:
              aymen Boughzela
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours Time Not Required
                5h

                  Development