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

        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: