exo-social

Attaching an image to an activity stream of a space causes javascript misinterpretation

Details

  • BV:
    20
  • Labels:
  • Similar issues:
  • Description:
    Hide

    1. create a space
    2. attach an image using http://
    3. click on "attach"

    The following Javascript code is written into the activity stream :
    eXo.require('eXo.social.Util', '/eXoResourcesSocial/javascript/'); eXo.require('eXo.social.webui.UIComposer', '/eXoResourcesSocial/javascript/'); eXo.core.Browser.addOnLoadCallback('mid413144747',new eXo.social.webui.UIComposer( { composerId: 'composerInput', defaultInput: 'Write something...', minCharactersRequired: 0, maxCharactersAllowed: 500, focusColor: null, blurColor: null, minHeight: null, maxHeight: null, focusHeight: null, focusCallback: null, blurCallback: null, keypressCallback: null, postMessageCallback: null } )); eXo.require('eXo.social.Util', '/eXoResourcesSocial/javascript/'); eXo.require('eXo.social.PortalHttpRequest', '/eXoResourcesSocial/javascript/'); eXo.require('eXo.social.webui.UIForm', '/eXoResourcesSocial/javascript/'); eXo.require('eXo.social.webui.UIActivity', '/eXoResourcesSocial/javascript/'); eXo.core.Browser.addOnLoadCallback('mid2122420608',new eXo.social.webui.UIActivity( {activityId: 'db0f5ff5c0a8000c01395b0d9e30facd', inputWriteAComment: 'Write a comment...', commentMinCharactersAllowed: 0, commentMaxCharactersAllowed: 0, commentFormDisplayed: false, commentFormFocused: false } )); eXo.core.Browser.onLoad(); eXo.core.Skin.addSkin('space_SpaceActivityStreamPortlet','/space/skin/portal/webui/component/UISpaceActivityPortlet/DefaultStylesheet-lt.css');

    Show
    1. create a space 2. attach an image using http:// 3. click on "attach" The following Javascript code is written into the activity stream : eXo.require('eXo.social.Util', '/eXoResourcesSocial/javascript/'); eXo.require('eXo.social.webui.UIComposer', '/eXoResourcesSocial/javascript/'); eXo.core.Browser.addOnLoadCallback('mid413144747',new eXo.social.webui.UIComposer( { composerId: 'composerInput', defaultInput: 'Write something...', minCharactersRequired: 0, maxCharactersAllowed: 500, focusColor: null, blurColor: null, minHeight: null, maxHeight: null, focusHeight: null, focusCallback: null, blurCallback: null, keypressCallback: null, postMessageCallback: null } )); eXo.require('eXo.social.Util', '/eXoResourcesSocial/javascript/'); eXo.require('eXo.social.PortalHttpRequest', '/eXoResourcesSocial/javascript/'); eXo.require('eXo.social.webui.UIForm', '/eXoResourcesSocial/javascript/'); eXo.require('eXo.social.webui.UIActivity', '/eXoResourcesSocial/javascript/'); eXo.core.Browser.addOnLoadCallback('mid2122420608',new eXo.social.webui.UIActivity( {activityId: 'db0f5ff5c0a8000c01395b0d9e30facd', inputWriteAComment: 'Write a comment...', commentMinCharactersAllowed: 0, commentMaxCharactersAllowed: 0, commentFormDisplayed: false, commentFormFocused: false } )); eXo.core.Browser.onLoad(); eXo.core.Skin.addSkin('space_SpaceActivityStreamPortlet','/space/skin/portal/webui/component/UISpaceActivityPortlet/DefaultStylesheet-lt.css');

Activity

Hide
Hoat Le added a comment - 27/Aug/10 9:06 AM - edited

Hi, which link did you test?

I checked and it's ok with image links.

From the UI, it's ok. But yes, confirm, we got exceptions on the terminal.

Show
Hoat Le added a comment - 27/Aug/10 9:06 AM - edited Hi, which link did you test? I checked and it's ok with image links. From the UI, it's ok. But yes, confirm, we got exceptions on the terminal.
Hide
Patrice Lamarque added a comment - 30/Aug/10 6:11 AM

moved to GA

Show
Patrice Lamarque added a comment - 30/Aug/10 6:11 AM moved to GA

People

Dates

  • Created:
    16/Jul/10 11:45 AM
    Updated:
    Monday 6:11 AM
    Date of First Response:
    27/Aug/10 9:06 AM