Uploaded image for project: 'Portlet Bridge'
  1. Portlet Bridge
  2. PBR-307

Inspect the change in image URL handling

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.2.0.FINAL
    • Fix Version/s: 2.3.0.FINAL
    • Component/s: None
    • Labels:
      None
    • Environment:

      EPP 5.2.0.CR01, PBR 2.2.0.GA.EPP520 and PBR 2.1.2.GA.EPP51

      Description

      There has been a change in the form of URLs in a JSF application running over Portlet Bridge (PBR 2.2 vs 2.1). The change has been noticed in URLs of images.

      PBR 2.1.2.GA.EPP51 generates portlet-style URLs starting with "/portal", i.e. the following code

      <h:graphicImage id="test" value="/images/note_bg.gif"/>
      

      produces an HTML element looking like this

      <img id="pbGeba498e8_2dbbaa_2d48ea_2db317_2d74004214c110:_viewRoot:test" src="/portal/classic/rich?portal%3AwindowState=normal&portal%3AcomponentId=eba498e8-bbaa-48ea-b317-74004214c110&portal%3AresourceID=/images/note_bg.gif&portal%3AcacheLevel=PAGE&portal%3Atype=resource&portal%3AportletMode=view">
      

      With PBR 2.2.0.GA.EPP520, the same example produces the following element

      <img id="pbGeba498e8_2dbbaa_2d48ea_2db317_2d74004214c110:_viewRoot:test" src="/richFacesPortlet-2.2.0.GA.EPP520/images/note_bg.gif">
      

      This initially caused some problems during testing in clustered environment with load balancer set up to handle "/portal/*", thus not handling images properly with PBR 2.2. It's not strictly a bug and there haven't been found any bugs directly related to this change (neither in RichFaces components, nor over WSRP).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kenfinni Ken Finnigan
                Reporter:
                mcupak Miroslav Cupak
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: