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

potentially locked resource files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.2
    • 8.5.1.2
    • Container
    • Security Level: Jimmy
    • None
    • during development with spring boot
      IDE specific

    • ZK 8.5.2 S2

      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

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

              Created:
              Updated:
              Resolved:

                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