ICEfaces
  1. ICEfaces
  2. ICE-4227

The inputFile component fails when used in .ear and web's context-root set to "/"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8RC2
    • Fix Version/s: 1.7.2-SP2, 1.8RC2, 1.8
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      inputFile + .ear

      Description

      The inputFile component fails when used in .ear and web's context-root set to "/". Its due to the reason that the com.icesoft.faces.component.inputfile.InputFile#getUploadServletPath() returns "./uploadHtml" when context path is null or empty and the fact that the contents of the iframe are served by the resource API. The upload button try to post to the /resourceURI/uploadHtml which doesn't exist.

        Issue Links

          Activity

          Adnan Durrani created issue -
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18614 Thu Mar 19 09:42:25 MDT 2009 adnan.durrani Fix for ICE-4227 (The inputFile component fails when used in .ear and web's context-root set to "/")
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/inputfile/InputFile.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #18615 Thu Mar 19 09:57:46 MDT 2009 adnan.durrani Backporting fix for ICE-4227 (The inputFile component fails when used in .ear and web's context-root set to "/")
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/component/src/com/icesoft/faces/component/inputfile/InputFile.java
          Hide
          Adnan Durrani added a comment -

          Fixed.

          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java
          Completed: At revision: 18614

          Show
          Adnan Durrani added a comment - Fixed. Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java Completed: At revision: 18614
          Adnan Durrani made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.8RC2 [ 10163 ]
          Resolution Fixed [ 1 ]
          Hide
          Adnan Durrani added a comment -

          backported to branch 1.7

          Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java
          Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java
          Completed: At revision: 18615

          Show
          Adnan Durrani added a comment - backported to branch 1.7 Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java Completed: At revision: 18615
          Ken Fyten made changes -
          Link This issue blocks ICE-4181 [ ICE-4181 ]
          Ken Fyten made changes -
          Salesforce Case []
          Affects Version/s 1.8RC2 [ 10163 ]
          Ken Fyten made changes -
          Fix Version/s 1.8 [ 10161 ]
          Ken Fyten made changes -
          Salesforce Case []
          Fix Version/s 1.7.3 [ 10162 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Adnan Durrani
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: