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

          aymen Boughzela created issue -
          aymen Boughzela made changes -
          Field Original Value New Value
          Link This issue should also fix CCP-1029 [ CCP-1029 ]
          aymen Boughzela made changes -
          Link This issue should also fix SPREDHAT-83 [ SPREDHAT-83 ]
          Hide
          aymen Boughzela added a comment -

          This is Redhat.com issue (Prod environnement). Please take it as highest priority.

          Show
          aymen Boughzela added a comment - This is Redhat.com issue (Prod environnement). Please take it as highest priority.
          Minh Dang made changes -
          Original Estimate 1 day [ 28800 ]
          Remaining Estimate 1 day [ 28800 ]
          Labels ecms-2011-S30
          Assignee Ha Quang Tan [ tan_haquang ]
          Fix Version/s wcm-2.1.6 [ 13377 ]
          Fix Version/s wcm-2.2.0 [ 11869 ]
          Minh Dang made changes -
          Fix Version/s wcm-2.2.x [ 12353 ]
          Bui Hai Phong (Inactive) made changes -
          Attachment AddLinkAfterSave.png [ 39241 ]
          Attachment AddLinkBeforeSave.png [ 39242 ]
          Ha Quang Tan (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Ha Quang Tan (Inactive) logged work - 28/Jul/11 9:59 AM
          • Time Spent:
            5 hours
             
            <No comment>
          Hide
          Ha Quang Tan (Inactive) added a comment -

          Patch is proposed.

          Show
          Ha Quang Tan (Inactive) added a comment - Patch is proposed.
          Ha Quang Tan (Inactive) made changes -
          Attachment 2011-07-28-ECMS-2504.patch [ 39265 ]
          Support Status Waiting Product Fix Product Patch Proposed
          Ha Quang Tan (Inactive) made changes -
          Remaining Estimate 1 day [ 28800 ] 0 minutes [ 0 ]
          Time Spent 5 hours [ 18000 ]
          Worklog Id 41710 [ 41710 ]
          Ha Quang Tan (Inactive) made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Hide
          aymen Boughzela added a comment -

          support review : patch validated

          Show
          aymen Boughzela added a comment - support review : patch validated
          Hide
          aymen Boughzela added a comment -

          We have an other case where the content disappeared.
          When content containing <script> elements the script tag is removed

          script type="text/javascript" src="/rh-resources/javascript/js/jquery-1.4.2.min.js"></script>
          <script type="text/javascript" src="http://web-cms-r2-review-admin.usersys.redhat.com/rh-resources/swf/projekktor/projekktor.min.js"></script>
          <script type="text/javascript" src="/rh-resources/javascript/js/jquery.lightbox_me.js"></script>
          
          Show
          aymen Boughzela added a comment - We have an other case where the content disappeared. When content containing <script> elements the script tag is removed script type= "text/javascript" src= "/rh-resources/javascript/js/jquery-1.4.2.min.js" ></script> <script type= "text/javascript" src= "http: //web-cms-r2-review-admin.usersys.redhat.com/rh-resources/swf/projekktor/projekktor.min.js" ></script> <script type= "text/javascript" src= "/rh-resources/javascript/js/jquery.lightbox_me.js" ></script>
          Hide
          aymen Boughzela added a comment -

          Why script tag is removed?
          how to add javascript to your content ?

          Show
          aymen Boughzela added a comment - Why script tag is removed? how to add javascript to your content ?
          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.
          aymen Boughzela made changes -
          Support Status Product Patch Proposed Product Patch Validated
          Vu Huyen Trang made changes -
          Support Status Product Patch Validated Product Patch Proposed
          Minh Dang made changes -
          Link This issue is cloned by ECMS-2569 [ ECMS-2569 ]
          Minh Dang made changes -
          Fix Version/s wcm-2.2.0 [ 11869 ]
          Fix Version/s wcm-2.2.x [ 12353 ]
          Arnaud HERITIER made changes -
          Workflow jira [ 78493 ] Workflow with Waiting Status [ 79938 ]
          Thanh Trung TRAN made changes -
          Support Status Product Patch Proposed Product Patch Refused
          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!
          Ha Quang Tan (Inactive) made changes -
          Attachment 2011-08-12-ECMS-2504.patch [ 40265 ]
          Support Status Product Patch Refused Product Patch Proposed
          Ha Quang Tan (Inactive) made changes -
          Attachment 2011-08-12-ECMS-2504.patch [ 40265 ]
          Ha Quang Tan (Inactive) made changes -
          Attachment 2011-08-12-ECMS-2504.patch [ 40273 ]
          Thanh Tran <thanhtt@exoplatform.com> committed 3474be1a16d4d33a8b08e93d3732ec120f279a3a (3 files)
          Reviews: none

          ECMS-2504: Corrupted link in the WYSIWYG field
          Fix description

          • Remove javascript
          • Remove <script>
          • Remove eval javascript function
          • Replace apostrophe character by #39;
          Thanh Tran <thanhtt@exoplatform.com> committed 3474be1a16d4d33a8b08e93d3732ec120f279a3a (3 files)
          Reviews: none

          ECMS-2504: Corrupted link in the WYSIWYG field
          Fix description

          • Remove javascript
          • Remove <script>
          • Remove eval javascript function
          • Replace apostrophe character by #39;
          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
          Thanh Trung TRAN made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Support Status Product Patch Proposed Fixed in Product
          Ly Thi Thu Hanh (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Minh Dang made changes -
          Link This issue is related to ECMS-2732 [ ECMS-2732 ]
          Vu Thi Thu Ha (Inactive) made changes -
          Link This issue is related to ECMS-2914 [ ECMS-2914 ]
          Arnaud HERITIER made changes -
          Workflow Workflow with Waiting Status [ 79938 ] WKF-JIRA_WAITING-1.0 [ 136093 ]
          Arnaud HERITIER made changes -
          Workflow WKF-JIRA_WAITING-1.0 [ 136093 ] WKF-JIRA_WAITING-1.0-Closed-Editable [ 184696 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          15h 8m 1 Ha Quang Tan (Inactive) 28/Jul/11 6:11 AM
          In Progress In Progress Open Open
          3h 48m 1 Ha Quang Tan (Inactive) 28/Jul/11 9:59 AM
          Open Open Resolved Resolved
          15d 3h 5m 1 Thanh Trung TRAN 12/Aug/11 1:05 PM
          Resolved Resolved Closed Closed
          26d 17h 44m 1 Ly Thi Thu Hanh (Inactive) 08/Sep/11 6:50 AM

            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