Uploaded image for project: 'Click'
  1. Click
  2. CLK-95

The deploy of files can raise fatal errors...

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:
      webhosting restrictions on permission policies

      Description

      The deploy of files can raise fatal errors on server with restricted permission policies.
      Could be resolved with some settings to skip deploy or catching this runtime error and logging a warning message.

        Activity

        Hide
        medgar Malcolm Edgar added a comment -

        Hi David,

        do you have a stack trace of this error you could include. This will help me building the fix.

        regards Malcolm Edgar

        Show
        medgar Malcolm Edgar added a comment - Hi David, do you have a stack trace of this error you could include. This will help me building the fix. regards Malcolm Edgar
        Hide
        david8 David Felis added a comment -

        Hi Malcolm,
        sorry no stack trace, but i can explain you:

        In ClickApp.init() method...

        ...
        loadCharset(rootElm);

        // Deploy the application files if not present
        // deployFiles(rootElm); // <-- i commented this

        // Set ServletContext instance for WebappLoader
        String className = ServletContext.class.getName();
        ...

        deployFiles uses ClickUtils.deployFile
        that calls File.exists() which raise the Exception

        access denied read permission.

        I hope i was clear, why in this while i have no time to reproduce the bug.

        regards,
        David

        Show
        david8 David Felis added a comment - Hi Malcolm, sorry no stack trace, but i can explain you: In ClickApp.init() method... ... loadCharset(rootElm); // Deploy the application files if not present // deployFiles(rootElm); // <-- i commented this // Set ServletContext instance for WebappLoader String className = ServletContext.class.getName(); ... deployFiles uses ClickUtils.deployFile that calls File.exists() which raise the Exception access denied read permission. I hope i was clear, why in this while i have no time to reproduce the bug. regards, David
        Hide
        medgar Malcolm Edgar added a comment -

        IOException and SecurityException handler changes checked into SVN. Will be available in release 0.20.

        Show
        medgar Malcolm Edgar added a comment - IOException and SecurityException handler changes checked into SVN. Will be available in release 0.20.

          People

          • Assignee:
            medgar Malcolm Edgar
            Reporter:
            david8 David Felis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development