Uploaded image for project: 'jboss.org'
  1. jboss.org
  2. ORG-654

Attaching images to SBS broken

XMLWordPrintable

    • Workaround Exists
    • Hide

      Workaround requires Firebug plugin and little bit effort.
      0. Edit article, turn on firebug and change tab to NET (all)
      1. Insert image by standard steps (icon in toolbar)
      2. Wait until all AJAX call finish. The most important is https://community.jboss.org/dwr/call/plaincall/ImagePicker.getImageDetailsByID.dwr
      3. Click on ImagePicker.getImageDetailsByID.dwr POST request and change tab to Response. At the end of repsonse is information about inserted image. Something like:

      dwr.engine._remoteHandleCallback('0','0',

      {height:-1,html:"<img src=\"http://community.jboss.org/servlet/JiveServlet/downloadImage/6399/picture-resized.png\" alt=\"picture-resized.png\" width=\"620\" class=\"jive-image-thumbnail jive-image\" onclick=\"myJiveImage.start(this, \'http://community.jboss.org/servlet/JiveServlet/downloadImage/6399/picture-resized.png\');return false;\"/>",image:s0,name:"picture-resized.png",thumbnail:false,width:620}

      );

      4. Change editor to HTML

      5. Insert image to proper place (usually between P tags <p> </p>). Image tag is:
      <img alt="picture-resized.png" class="jive-image-thumbnail jive-image" src="http://community.jboss.org/servlet/JiveServlet/downloadImage/6399/picture-resized.png" width="620" __jive_id="6399" />
      You need to change attributes:
      alt - whatever you want because it's standard image description
      src - take it from step 3
      __jive_id - take it from step 3

      6. Change editor back to Full Editor and wait till picture is loaded in WYSIWYG editor

      Show
      Workaround requires Firebug plugin and little bit effort. 0. Edit article, turn on firebug and change tab to NET (all) 1. Insert image by standard steps (icon in toolbar) 2. Wait until all AJAX call finish. The most important is https://community.jboss.org/dwr/call/plaincall/ImagePicker.getImageDetailsByID.dwr 3. Click on ImagePicker.getImageDetailsByID.dwr POST request and change tab to Response. At the end of repsonse is information about inserted image. Something like: dwr.engine._remoteHandleCallback('0','0', {height:-1,html:"<img src=\"http://community.jboss.org/servlet/JiveServlet/downloadImage/6399/picture-resized.png\" alt=\"picture-resized.png\" width=\"620\" class=\"jive-image-thumbnail jive-image\" onclick=\"myJiveImage.start(this, \'http://community.jboss.org/servlet/JiveServlet/downloadImage/6399/picture-resized.png\');return false;\"/>",image:s0,name:"picture-resized.png",thumbnail:false,width:620} ); 4. Change editor to HTML 5. Insert image to proper place (usually between P tags <p> </p>). Image tag is: <img alt="picture-resized.png" class="jive-image-thumbnail jive-image" src="http://community.jboss.org/servlet/JiveServlet/downloadImage/6399/picture-resized.png" width="620" __jive_id="6399" /> You need to change attributes: alt - whatever you want because it's standard image description src - take it from step 3 __jive_id - take it from step 3 6. Change editor back to Full Editor and wait till picture is loaded in WYSIWYG editor

      This is a weird issue I've seen since today. Edit a page, try and attach an image (a simple 94K PNG file!!) and the thing starts to upload, then hangs. Forever. Happened several times today. This is what I see when it hangs (see attached).

      Page in question is http://community.jboss.org/docs/DOC-14095

              lkrzyzan@redhat.com Libor Krzyzanek
              manik_jira Manik Surtani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: