You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carl Hall (JIRA)" <ji...@apache.org> on 2011/02/21 20:31:38 UTC

[jira] Created: (FELIX-2852) Infinite reloading of config file ending with .config

Infinite reloading of config file ending with .config
-----------------------------------------------------

                 Key: FELIX-2852
                 URL: https://issues.apache.org/jira/browse/FELIX-2852
             Project: Felix
          Issue Type: Bug
          Components: File Install
    Affects Versions: fileinstall-3.1.10
            Reporter: Carl Hall


When a config file ending with .config is written back to the file system, lastModified is updated even if the file has not changed since it was last written/read. Config files ending with .cfg are not affected by this as lastModified is not updated if the file has not changed.

Workaround: apply the patch from FELIX-2843 and set felix.fileinstall.disableConfigSave=false

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FELIX-2852) Infinite reloading of config file ending with .config

Posted by "Carl Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Hall updated FELIX-2852:
-----------------------------

    Priority: Critical  (was: Major)

Bumping up to "critical" as infinite loops can get painful. Not a blocker as there is a workaround.

> Infinite reloading of config file ending with .config
> -----------------------------------------------------
>
>                 Key: FELIX-2852
>                 URL: https://issues.apache.org/jira/browse/FELIX-2852
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.1.10
>            Reporter: Carl Hall
>            Priority: Critical
>         Attachments: felix-2852.diff
>
>
> When a config file ending with .config is written back to the file system, lastModified is updated even if the file has not changed since it was last written/read. Config files ending with .cfg are not affected by this as lastModified is not updated if the file has not changed.
> Workaround: apply the patch from FELIX-2843 and set felix.fileinstall.disableConfigSave=false

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (FELIX-2852) Infinite reloading of config file ending with .config

Posted by "Carl Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997539#comment-12997539 ] 

Carl Hall commented on FELIX-2852:
----------------------------------

I have a preliminary patch put together to update the .config file's checksum in the scanner but have hardcoded how the scanner is retrieved. I will continue to refine the patch and attach it once I am satisfied with it.

> Infinite reloading of config file ending with .config
> -----------------------------------------------------
>
>                 Key: FELIX-2852
>                 URL: https://issues.apache.org/jira/browse/FELIX-2852
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.1.10
>            Reporter: Carl Hall
>
> When a config file ending with .config is written back to the file system, lastModified is updated even if the file has not changed since it was last written/read. Config files ending with .cfg are not affected by this as lastModified is not updated if the file has not changed.
> Workaround: apply the patch from FELIX-2843 and set felix.fileinstall.disableConfigSave=false

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (FELIX-2852) Infinite reloading of config file ending with .config

Posted by "Carl Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Hall updated FELIX-2852:
-----------------------------

    Attachment: felix-2852.diff

Attached a patch to manually update a file's checksum after writing a .config file. The checksum is only updated in scanners that have prior knowledge of the file.

> Infinite reloading of config file ending with .config
> -----------------------------------------------------
>
>                 Key: FELIX-2852
>                 URL: https://issues.apache.org/jira/browse/FELIX-2852
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.1.10
>            Reporter: Carl Hall
>         Attachments: felix-2852.diff
>
>
> When a config file ending with .config is written back to the file system, lastModified is updated even if the file has not changed since it was last written/read. Config files ending with .cfg are not affected by this as lastModified is not updated if the file has not changed.
> Workaround: apply the patch from FELIX-2843 and set felix.fileinstall.disableConfigSave=false

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (FELIX-2852) Infinite reloading of config file ending with .config

Posted by "Johan Ström (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212579#comment-13212579 ] 

Johan Ström commented on FELIX-2852:
------------------------------------

~1 year later; is there any update on this bug? I still have this problem running 3.1.10 (as shipped with Apache Karaf 2.2.5)
                
> Infinite reloading of config file ending with .config
> -----------------------------------------------------
>
>                 Key: FELIX-2852
>                 URL: https://issues.apache.org/jira/browse/FELIX-2852
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.1.10
>            Reporter: Carl Hall
>            Priority: Critical
>         Attachments: felix-2852.diff
>
>
> When a config file ending with .config is written back to the file system, lastModified is updated even if the file has not changed since it was last written/read. Config files ending with .cfg are not affected by this as lastModified is not updated if the file has not changed.
> Workaround: apply the patch from FELIX-2843 and set felix.fileinstall.disableConfigSave=false

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (FELIX-2852) Infinite reloading of config file ending with .config

Posted by "Guillaume Nodet (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved FELIX-2852.
------------------------------------

       Resolution: Fixed
    Fix Version/s: fileinstall-3.1.12
         Assignee: Guillaume Nodet
    
> Infinite reloading of config file ending with .config
> -----------------------------------------------------
>
>                 Key: FELIX-2852
>                 URL: https://issues.apache.org/jira/browse/FELIX-2852
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.1.10
>            Reporter: Carl Hall
>            Assignee: Guillaume Nodet
>            Priority: Critical
>             Fix For: fileinstall-3.1.12
>
>         Attachments: felix-2852.diff
>
>
> When a config file ending with .config is written back to the file system, lastModified is updated even if the file has not changed since it was last written/read. Config files ending with .cfg are not affected by this as lastModified is not updated if the file has not changed.
> Workaround: apply the patch from FELIX-2843 and set felix.fileinstall.disableConfigSave=false

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (FELIX-2852) Infinite reloading of config file ending with .config

Posted by "Johan Ström (Issue Comment Edited JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212579#comment-13212579 ] 

Johan Ström edited comment on FELIX-2852 at 2/21/12 1:33 PM:
-------------------------------------------------------------

~1 year later; is there any update on this bug? I still have this problem running 3.1.10 (as shipped with Apache Karaf 2.2.5). As 3.1.10 is the latest version released, and the workaround doesn't work on the released version, I'd say this is a problem. Patching trunk manually isn't too production-friendly.
                
      was (Author: jstrom):
    ~1 year later; is there any update on this bug? I still have this problem running 3.1.10 (as shipped with Apache Karaf 2.2.5)
                  
> Infinite reloading of config file ending with .config
> -----------------------------------------------------
>
>                 Key: FELIX-2852
>                 URL: https://issues.apache.org/jira/browse/FELIX-2852
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.1.10
>            Reporter: Carl Hall
>            Priority: Critical
>         Attachments: felix-2852.diff
>
>
> When a config file ending with .config is written back to the file system, lastModified is updated even if the file has not changed since it was last written/read. Config files ending with .cfg are not affected by this as lastModified is not updated if the file has not changed.
> Workaround: apply the patch from FELIX-2843 and set felix.fileinstall.disableConfigSave=false

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira