You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/07/22 20:38:20 UTC

[jira] [Commented] (CELIX-371) Due to a fixed maximum length of lines in property file not all bundles are started

    [ https://issues.apache.org/jira/browse/CELIX-371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15390157#comment-15390157 ] 

ASF GitHub Bot commented on CELIX-371:
--------------------------------------

GitHub user ErjanAltena opened a pull request:

    https://github.com/apache/celix/pull/6

    CELIX-371: properties_loadWithStream does not use fixed-sized buffers…

    Fix for CELIX_371. The properties_loadWithStream function does not rely on fixed buffer sizes any more. Checked with valgrind that there are no memory leaks.
    
    Also put part of the properties_loadWithStream in a separate fucntion since it was quite big.
    
    Regards,
    Erjan Altena

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ErjanAltena/celix develop

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/celix/pull/6.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #6
    
----
commit 0a4c93a5050d51f62f8c60170b394d5ceec8537b
Author: Erjan Altena <er...@localhost.localdomain>
Date:   2016-07-22T20:30:34Z

    CELIX-371: properties_loadWithStream does not use fixed-sized buffers any more

----


> Due to a fixed maximum length of lines in property file not all bundles are started
> -----------------------------------------------------------------------------------
>
>                 Key: CELIX-371
>                 URL: https://issues.apache.org/jira/browse/CELIX-371
>             Project: Celix
>          Issue Type: Bug
>          Components: Framework
>            Reporter: Erjan Altena
>
> When Celix starts up it reads the config.properties file line by line. These lines are placed in a buffer with a fixed length of 1024 characters.
> The Celix build environment creates a deployment with a  config.properties with an absolute path. Due to this the limit of 1024 characters is reached quite soon (I used 8 bundles).
> There should not be a limit on the maximum line length (or it should be ridiculous big)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)