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

          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
          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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: