ICEmobile
  1. ICEmobile
  2. MOBI-157

container components will be uploaded to "nulluploads" directory path when deployed using non-filesystem deployment

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Beta
    • Fix Version/s: 1.1 Final
    • Component/s: None
    • Labels:
      None
    • Environment:
      jsf2 ICEfaces3 icemobile

      Description

       this issue only occurs when deployed within an IDE to an application server that uses it's own way to deploy (in other words, the files are not physically in the /webapps (for tomcat) folder of the application server). Intellij and Eclipse do this when you use the IDE to deploy an application -> non-filesystem deployment
      What happens is that CoreUtils.getRealPath(facesContext, FILE_SEPARATOR); returns null and so the folder to upload to becomes "null uploads/.........." etc.
      When physically deploying the application to the server, the uploads directory path is correct for example.....:-
      INFO: abs file=/Users/jguglielmin/icefaces/servers/apache-tomcat-7.0.23/webapps/mobitest/uploads/433CE8CB7B8AAD97342586FD2CAB1572/bebeea8f-cbea-4494-97e3-1bf1381f97e6.jpg

      when deployed within the IDE you can replace the uploads to "/nulluploads/" and then you can't find the file to show it afterwards.

        Activity

        Hide
        Judy Guglielmin added a comment -

        for reference, an example of where tomcat (within IntelliJ) places the files is :-
        apache-tomcat-7.0.23/bin/nulluploads/DFC04831C9FE12607EACBB215BAB686F/3f4e70f0-cd98-4fbf-8c0d-ef13da42a10d.jpg

        Show
        Judy Guglielmin added a comment - for reference, an example of where tomcat (within IntelliJ) places the files is :- apache-tomcat-7.0.23/bin/nulluploads/DFC04831C9FE12607EACBB215BAB686F/3f4e70f0-cd98-4fbf-8c0d-ef13da42a10d.jpg
        Hide
        Judy Guglielmin added a comment -

        if I do the following in Utils.createMapOfFile(Map......:-
        ......
        String folder = "";
        String temp = CoreUtils.getRealPath(facesContext, FILE_SEPARATOR);
        if (!temp.equals("null"))

        { folder = temp.toString(); }

        ......

        then the files will be placed under this path:-
        apache-tomcat-7.0.23/bin/uploads/6E8F91358957C05C41886E4DE2E270B5/6f087767-a797-427e-b6b7-26967a190edf.jpg

        Show
        Judy Guglielmin added a comment - if I do the following in Utils.createMapOfFile(Map......:- ...... String folder = ""; String temp = CoreUtils.getRealPath(facesContext, FILE_SEPARATOR); if (!temp.equals("null")) { folder = temp.toString(); } ...... then the files will be placed under this path:- apache-tomcat-7.0.23/bin/uploads/6E8F91358957C05C41886E4DE2E270B5/6f087767-a797-427e-b6b7-26967a190edf.jpg
        Hide
        Ted Goddard added a comment -

        Please test the current demos with IDE deployment.

        Show
        Ted Goddard added a comment - Please test the current demos with IDE deployment.
        Hide
        Judy Guglielmin added a comment -

        this is still only a problem when deploying to the server from within an iDE. If you use command line to start the server, then it's not an issue. Could be configuring the server through the IDE to allow uploads and where they are placed .

        Show
        Judy Guglielmin added a comment - this is still only a problem when deploying to the server from within an iDE. If you use command line to start the server, then it's not an issue. Could be configuring the server through the IDE to allow uploads and where they are placed .
        Hide
        Ted Goddard added a comment -

        Verified working on IntelliJ.

        Show
        Ted Goddard added a comment - Verified working on IntelliJ.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: