Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3973

potentially locked resource files

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.5.1.2
    • Fix Version/s: 8.5.2
    • Component/s: Container
    • Security Level: Jimmy
    • Labels:
      None
    • Environment:

      during development with spring boot
      IDE specific

    • gh.sprint.customfield.default.name:
      ZK 8.5.2 S2

      Description

      Problem (while developing)

      When editing certain resource files (js / css) sometimes locks the files on windows requiring a restart, even if hot reloading should theoretically work.

      problem reported and analysed in Forum (including a supposed patch):
      http://forum.zkoss.org/question/110354/problems-encountered-while-deleting-resources-for-zk-spring-boot-project/

      Places where UrlConnection.openConnection().getLastModified() is used in ZK:
      https://github.com/zkoss/zk/search?q=getLastModified&unscoped_q=getLastModified

      similar myfaces issue/patch reported here:
      https://issues.apache.org/jira/browse/MYFACES-3888

      older discussion on jboss: https://developer.jboss.org/thread/96782

      Proposed

      close the connections preventing this kind of lock or leak

      Other Workarounds

      https://www.eclipse.org/jetty/documentation/9.4.x/troubleshooting-locked-files-on-windows.html

        Attachments

          Activity

            People

            • Assignee:
              rudyhuang rudyhuang
              Reporter:
              cor3000 cor3000
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Time Spent - 2 hours Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - 2 hours Remaining Estimate - 2 hours
                2h