<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/jconfig/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/jconfig/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 06 Apr 2021 14:07:16 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jconfig/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>#28 Save xml in default charset, but not in utf-8</title><link>https://sourceforge.net/p/jconfig/bugs/28/?limit=25#5db8/3449</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;No, the problem is still there, at least under Microsoft Windows. If I store a German umlaut like ä, ö, ü or ß, the file is corrupted using the XMLFileHandler.store() method. You can double check with Notepad++, etc. This file cannot be loaded, I get:&lt;br/&gt;
Uncaught exception occured at Tue Apr 06 16:03:50 CEST 2021:&lt;br/&gt;
org.jconfig.ConfigurationManagerException: The parser cannot parse the file: Invalid byte 2 of 3-byte UTF-8 sequence.&lt;br/&gt;
    at org.jconfig.handler.XMLFileHandler.load(XMLFileHandler.java:122)&lt;br/&gt;
    at org.jconfig.handler.XMLFileHandler.load(XMLFileHandler.java:78)&lt;/p&gt;
&lt;p&gt;Under Linux the config file is written correctly including German umlauts. Doesn't matter if you use set the handler encoding, the configuration encoding or both to "UTF-8" or none of them.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Georg</dc:creator><pubDate>Tue, 06 Apr 2021 14:07:16 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net286cd4eb6b1413955554705b2ddaa70a8974f758</guid></item><item><title>CM should not add multiple listeners to same config</title><link>https://sourceforge.net/p/jconfig/bugs/36/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The load method of ConfigurationManager has this:&lt;/p&gt;
&lt;p&gt;if(configurationHandler instanceof AbstractHandler) {&lt;br /&gt;
((AbstractHandler)configurationHandler).addFileListener(new ConfigurationFileListener(configurationName));&lt;br /&gt;
}&lt;br /&gt;
if (config != null) {&lt;br /&gt;
//config.setConfigName(configurationName);&lt;br /&gt;
configurations.put(configurationName, config);&lt;br /&gt;
handlerMapping.put(configurationName, configurationHandler);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Since configurations is a hashmap, if the same configuration is loaded multiple times, one will overwrite the other.  That's a good thing; you maintain just one config of given name.  However, the first condition doesn't check for that, but blindly adds a new listener every time the load function is called.  The result is that if the load method is called 10 times for the same config, you end up with 1 config (good) but 10 listeners (bad).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guy Rouillier</dc:creator><pubDate>Sun, 06 Apr 2008 08:14:56 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net138dfc823111bf2d6a2da1fec3a45a2d69eead6d</guid></item><item><title>Variables do not work within categories of XML file</title><link>https://sourceforge.net/p/jconfig/bugs/35/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;We have found that the variables feature does not work correctly when variables are referenced within categories inside the XML file.  To be more specific, the issue exists when variables are read using the following API method:&lt;/p&gt;
&lt;p&gt;Configuration.getProperties()&lt;/p&gt;
&lt;p&gt;The issue is inside of this method:&lt;/p&gt;
&lt;p&gt;DefaultCategory.getProperties()&lt;/p&gt;
&lt;p&gt;This method does not use variable replacement when returning the Properties object.  However if the method getProperty() is used, variable replacment works fine.  We have fixed this bug locally by updating the DefaultCategory.getProperties() method to use the "getProperty()" method instead of simply returning the Properties object.  Here is fixed code:&lt;/p&gt;
&lt;p&gt;/**&lt;br /&gt;
* Return all properties related to this category&lt;br /&gt;
*&lt;br /&gt;
* @since 2.2&lt;br /&gt;
* @return The Properties&lt;br /&gt;
*/&lt;br /&gt;
public Properties getProperties() {&lt;/p&gt;
&lt;p&gt;// iterate over the properties,&lt;br /&gt;
// do variable replacement and return them&lt;br /&gt;
if (properties != null &amp;amp;&amp;amp; properties.isEmpty() == false)&lt;br /&gt;
{&lt;br /&gt;
Properties propertiesReturn = new Properties();&lt;br /&gt;
String propName;&lt;br /&gt;
String propValue;&lt;/p&gt;
&lt;p&gt;for (Enumeration e = properties.propertyNames(); e.hasMoreElements(); )&lt;br /&gt;
{&lt;br /&gt;
propName = (String) e.nextElement();&lt;br /&gt;
propValue = this.getProperty(propName);&lt;br /&gt;
propertiesReturn.put(propName, propValue);              &lt;br /&gt;
}&lt;br /&gt;
return propertiesReturn;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
return properties;&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 19 Feb 2008 22:02:57 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netca314da58fa74bf7b458b264bacb55fbb96d770e</guid></item><item><title>parameter for url in URLHandler</title><link>https://sourceforge.net/p/jconfig/bugs/34/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;hi,&lt;br /&gt;
in the class URLHandler is a bug:&lt;/p&gt;
&lt;p&gt;In method:&lt;/p&gt;
&lt;p&gt;protected Configuration load(&lt;br /&gt;
String theURL,&lt;br /&gt;
String configName) &lt;br /&gt;
throws ConfigurationManagerException {&lt;br /&gt;
ConfigurationParser parser =&lt;br /&gt;
ConfigurationParserFactory.getParser(configName);&lt;/p&gt;
&lt;p&gt;// the line repaired with the correct parameter theURL:&lt;br /&gt;
return load(theURL, configName,parser); // correct &lt;br /&gt;
// the line with error with the wrong parameter getURL():&lt;br /&gt;
//return load(getURL(), configName,parser); // wrong&lt;br /&gt;
}&lt;br /&gt;
ciao fred&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Farisola</dc:creator><pubDate>Mon, 21 May 2007 13:36:16 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net30053f6051f8b514000d24da246eff2a7f86cbc6</guid></item><item><title>inheritance problem in Configuration Server</title><link>https://sourceforge.net/p/jconfig/bugs/33/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have two configuration files in config server.&lt;/p&gt;
&lt;p&gt;B_config.xml extends A_config.xml&lt;/p&gt;
&lt;p&gt;But configuration server does not return the configs from  A_config.xml.&lt;/p&gt;
&lt;p&gt;I recognized that when i put A_config.xml to local side, it returns the values from local file.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Tuncay Senturk&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 09 Feb 2007 07:44:39 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netcb5f6f70ea8594bf20c1eb5f2cb221b086f38f90</guid></item><item><title>Exception while trying configuration server</title><link>https://sourceforge.net/p/jconfig/bugs/32/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i get "Problem with URL handling/connection/validating: unknown protocol: jconfig" error while trying configuration server.&lt;/p&gt;
&lt;p&gt;i am getting error at the below line &lt;/p&gt;
&lt;p&gt;// prepare URL, open the connection and grab stream for parsing&lt;br /&gt;
jcfURL = new java.net.URL( theURL );&lt;/p&gt;
&lt;p&gt;at class org.jconfig.handler.URLHandler&lt;/p&gt;
&lt;p&gt;URLhandler' s load() method gets "theURL" method parameter as &lt;a href="http://127.0.0.1:8765/config" rel="nofollow"&gt;http://127.0.0.1:8765/config&lt;/a&gt;, &lt;br /&gt;
but URLHandler' s instance variable "url" stay' s jconfig://127.0.0.1:8765/config. &lt;/p&gt;
&lt;p&gt;protected Configuration load(String theURL,String configName) throws ConfigurationManagerException {&lt;br /&gt;
ConfigurationParser parser = ConfigurationParserFactory.getParser(configName);&lt;br /&gt;
return load(getURL(), configName,parser);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;And getURL() method returns this "url" instance variable. So overloaded load() method uses "url" instance variable instead of theURL method() parameter.&lt;/p&gt;
&lt;p&gt;When i put a debug point and change the value of theURL from "jconfig://127.0.0.1:8765/config" to "http://127.0.0.1:8765/config" it works fine.&lt;/p&gt;
&lt;p&gt;Is there anything that i miss?&lt;/p&gt;
&lt;p&gt;I may attach project files (Eclipse 3.1) so that you can reproduce the error&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Tuncay Senturk&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 22 Jan 2007 11:19:58 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net55afe4188dac9530737327b168b69c71651b73b5</guid></item><item><title>Bean mapping problem with nested category</title><link>https://sourceforge.net/p/jconfig/bugs/31/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When I initialize NestedConfigParser, getProperties () used in mapBean() returns null.&lt;/p&gt;
&lt;p&gt;I'll attach the test project(Eclipse WTP 3.2) that lets you reproduce the error.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ali Sadik Kumlali&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 20 Nov 2006 15:26:51 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net1481502d993fbb383125ca5314aac3495e311591</guid></item><item><title>getProperties doesn't expand env vars</title><link>https://sourceforge.net/p/jconfig/bugs/30/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Configuration.getProperties doesn't expand any env vars&lt;br /&gt;
in the configuration i.e. if I do:&lt;/p&gt;
&lt;p&gt;Properties props = conf.getProperties(destSystem);&lt;/p&gt;
&lt;p&gt;and the destSystem catagory contains this:&lt;/p&gt;
&lt;p&gt;&amp;lt;property name="atlas.dao.password"&lt;br /&gt;
value="${env:GFIPUB_TETRIS_DB_PASS}"/&amp;gt;&lt;/p&gt;
&lt;p&gt;then props.getProperty("atlas.dao.password")&lt;br /&gt;
returns "${env:GFIPUB_TETRIS_DB_PASS}" and not the&lt;br /&gt;
environment variable value of GFIPUB_TETRIS_DB_PASS&lt;/p&gt;
&lt;p&gt;Cheers, Richard.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 07 Nov 2006 13:13:16 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net242b1bca4a5067985cb53ed2a1488f4bbd024940</guid></item><item><title>config file not found</title><link>https://sourceforge.net/p/jconfig/bugs/29/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;br /&gt;
my config file is not found,&lt;/p&gt;
&lt;p&gt;I get the error:&lt;/p&gt;
&lt;p&gt;java.io.FileNotFoundException:&lt;br /&gt;
C:\Programme\Tomcat%205.0\webapps\paneltool\WEB-INF\classes\config.xml&lt;br /&gt;
(Das System kann den angegebenen Pfad nicht finden)&lt;/p&gt;
&lt;p&gt;It seems the problem is the space between Tomcat and&lt;br /&gt;
5.0 in my tomcat installation folder!&lt;/p&gt;
&lt;p&gt;I use Windows XP, and jdk 1.5.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 09 Jun 2006 08:22:15 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net0747715b84572dab986314da53077d6790b60769</guid></item><item><title>Save xml in default charset, but not in utf-8</title><link>https://sourceforge.net/p/jconfig/bugs/28/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Save xml in default charset, but need utf-8.&lt;/p&gt;
&lt;p&gt;to configuration i write russian text.&lt;/p&gt;
&lt;p&gt;my code: &lt;/p&gt;
&lt;p&gt;XMLFileHandler handler = new &lt;br /&gt;
XMLFileHandler(fileConfiguration.getAbsolutePath());&lt;br /&gt;
handler.setEncoding("UTF-8");&lt;br /&gt;
handler.store(configuration);&lt;/p&gt;
&lt;p&gt;after save file, i try load him:&lt;/p&gt;
&lt;p&gt;org.jconfig.ConfigurationManagerException: The parser &lt;br /&gt;
cannot parse the file: Invalid byte 2 of 2-byte UTF-8 &lt;br /&gt;
sequence.&lt;br /&gt;
at org.jconfig.handler.XMLFileHandler.&lt;br /&gt;
load(XMLFileHandler.java:115)&lt;br /&gt;
at org.jconfig.handler.XMLFileHandler.&lt;br /&gt;
load(XMLFileHandler.java:69)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Igorek</dc:creator><pubDate>Mon, 13 Feb 2006 09:49:59 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net3f38f85523d0116f571d14054eb31bb55f1bc644</guid></item></channel></rss>