You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2018/05/10 03:34:00 UTC

[jira] [Commented] (FELIX-5849) ConfigurationHandler improperly removes backslashes because it treats them as escape characters

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

Carsten Ziegeler commented on FELIX-5849:
-----------------------------------------

I'm not 100% sure whether the ConfigurationHandler is your problem. I've added a test to ConfigurationHandlerTest.java which adds a value with backslashes and reads them again. And this seems to work.

> ConfigurationHandler improperly removes backslashes because it treats them as escape characters
> -----------------------------------------------------------------------------------------------
>
>                 Key: FELIX-5849
>                 URL: https://issues.apache.org/jira/browse/FELIX-5849
>             Project: Felix
>          Issue Type: Bug
>          Components: Configuration Admin
>            Reporter: Harrison Tarr
>            Priority: Minor
>
> We use Felix in our Karaf project. I noticed when using a Windows-style path as a configuration, the backslashes were getting removed. I think I tracked it to the {{ConfigurationHandler}}. I wrote some unit tests to highlight the issue and came up with a fix. It can be found here [https://github.com/apache/felix/pull/136]
>  
> I have not verified that it fixes my issue, but I think the unit tests highlight a bug anyway. My changes do not cause any of the other unit tests to fail.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)