ICEfaces
  1. ICEfaces
  2. ICE-1096

chart component not properly resolving web-context root of an app with a non-slash ending web-uri

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.6DR#3, 1.6
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      from supportilla 3800:

      Chart component doesn't properly resolve web-context root if there's an
      application.xml file that declares the web-uri off the main root context like:
      <application>
           <display-name>vs</display-name>
           <module>
               <web>
                   <web-uri>web</web-uri>
                   <context-root>/vs</context-root>
               </web>
           </module>
      </application>

        Activity

        Philip Breau created issue -
        Icefaces Administrator made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 1133 12365
        Ken Fyten made changes -
        Assignee Adnan Durrani [ adnan.durrani ]
        Philip Breau made changes -
        Fix Version/s 1.6 [ 10031 ]
        Assignee Adnan Durrani [ adnan.durrani ]
        Support Customer Ref. #s 689
        Ken Fyten made changes -
        Fix Version/s 1.6DR#3 [ 10050 ]
        Fix Version/s 1.6 [ 10031 ]
        Assignee Priority P2
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #13481 Mon Apr 09 11:58:56 MDT 2007 adnan.durrani Fix for ICE-1096. OCJ4 doesn't add black slash to the end of the real path unless specified.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputchart/OutputChart.java
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Adnan Durrani added a comment -

        It came accross that OCJ4 does not add a forward slash at the end of the path unless specified. The following code has been replaced:

        folder =
        ((ServletContext) getFacesContext().getExternalContext()
        .getContext()).getRealPath("charts");
        with

        folder =
        ((ServletContext) getFacesContext().getExternalContext()
        .getContext()).getRealPath("/charts");

        -revision 13481

        Show
        Adnan Durrani added a comment - It came accross that OCJ4 does not add a forward slash at the end of the path unless specified. The following code has been replaced: folder = ((ServletContext) getFacesContext().getExternalContext() .getContext()).getRealPath("charts"); with folder = ((ServletContext) getFacesContext().getExternalContext() .getContext()).getRealPath("/charts"); -revision 13481
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.6 [ 10031 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2
        Assignee Adnan Durrani [ adnan.durrani ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: