<?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/servingxml/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/servingxml/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 27 Nov 2017 19:50:20 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/servingxml/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>#7 Parameterized absolute URL expression resolved incorrectly</title><link>https://sourceforge.net/p/servingxml/bugs/7/?limit=25#a9b9</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This fails, if url is pointing to an xsl file and that intern has include to an another xsl file, it could not resolve.  This happens even in servingxml 1.1.2.  Please let me know if there is any alternate for this problem.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Srinivas Rao</dc:creator><pubDate>Mon, 27 Nov 2017 19:50:20 -0000</pubDate><guid>https://sourceforge.netb298ca76ba1f2a35d2935ceba4c827d5df331391</guid></item><item><title>SQL query with empty result set should not throw exception</title><link>https://sourceforge.net/p/servingxml/bugs/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In a SQL query returns zero result rows, I get an exception:&lt;br /&gt;
Flow is null at&lt;br /&gt;
com.servingxml.components.recordmapping.GenerateElement.groupStopped(GenerateElement.java:155)&lt;br /&gt;
I'd consider this situation as normal and would expect just an empty output but no exception.&lt;br /&gt;
This can be done by simply commenting out this code:&lt;br /&gt;
154 /* TGE&lt;br /&gt;
155         if (flow == null) {&lt;br /&gt;
156           throw new ServingXmlException("Flow is null");&lt;br /&gt;
157         }&lt;br /&gt;
158 */&lt;br /&gt;
I have been using the modified code for quite a while w/o any problems so far.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 22 Feb 2013 20:48:35 -0000</pubDate><guid>https://sourceforge.netb3a2421092ce5584faccc94b38b79eb59b262223</guid></item><item><title>ATFX in Examples should be ATF</title><link>https://sourceforge.net/p/servingxml/bugs/16/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;From Examples page:&lt;br /&gt;
Converting a CSV file to XML with Record Validation (countries-validated)&lt;/p&gt;
&lt;p&gt;code,name&lt;br /&gt;
ATFX,"FRENCH SOUTHERN TERRITORIES, D.R. OF"&lt;br /&gt;
VUT,VANUATU&lt;br /&gt;
WLF,WALLIS &amp;amp; FUTUNA ISLANDS&lt;/p&gt;
&lt;p&gt;Should be:&lt;br /&gt;
code,name&lt;br /&gt;
ATF,"FRENCH SOUTHERN TERRITORIES, D.R. OF"&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wfay</dc:creator><pubDate>Wed, 27 Feb 2008 16:50:45 -0000</pubDate><guid>https://sourceforge.net429aab060e1f9b1e32c36c480a01bf7fc20c2988</guid></item><item><title>Choose.java not doing testing in createString()</title><link>https://sourceforge.net/p/servingxml/bugs/15/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In version 0.8.0, The Choose class's createString() method is not testing the Alternative's conditions before using its value, as result, the first value is always used.&lt;/p&gt;
&lt;p&gt;The code should be &lt;/p&gt;
&lt;p&gt;public String createString(ServiceContext context, Flow flow, Record variables, Name variableName) {&lt;br /&gt;
String s = null;&lt;br /&gt;
for (int i = 0; s == null &amp;amp;&amp;amp; i &amp;lt; alternatives.length; ++i) {&lt;br /&gt;
Alternative alternative = alternatives[i];&lt;br /&gt;
if (alternative.test(context, flow))&lt;br /&gt;
s = alternative.createString(context, flow, variables, variableName);&lt;br /&gt;
}&lt;br /&gt;
return s == null ? "" : s;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Notice the missing if test.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gordon Zhang</dc:creator><pubDate>Fri, 02 Nov 2007 13:57:32 -0000</pubDate><guid>https://sourceforge.netc7edd0b01feb3cb4caa7aace355cfaf389bf5f6a</guid></item><item><title>line number tracking incorrect for comment lines</title><link>https://sourceforge.net/p/servingxml/bugs/14/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The line number tracking in FlatRecordReceiverImpl does not account for the comment lines because FlatRecordReceiverAdapter silently eats comment line without letting FlatRecordReceiverImpl having a chance to update the line number.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gordon Zhang</dc:creator><pubDate>Tue, 16 Oct 2007 19:45:45 -0000</pubDate><guid>https://sourceforge.net2bbb8f157eef9555ef9bff060a5109af58fb5edc</guid></item><item><title>"" at start of field read as escaped quote</title><link>https://sourceforge.net/p/servingxml/bugs/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;"e";"f";"";"h" &lt;/p&gt;
&lt;p&gt;The third value is read as ", as if it was an escaped quote.&lt;/p&gt;
&lt;p&gt;The fix is as follows:&lt;/p&gt;
&lt;p&gt;Change all occurances of&lt;/p&gt;
&lt;p&gt;int n = quoteSymbol.checkEscapeBeforeQuoteSymbol(data, start+currentIndex, end-currentIndex);&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;int n = 0;&lt;br /&gt;
if (inQuotes) {&lt;br /&gt;
n = quoteSymbol.checkEscapeBeforeQuoteSymbol(data, start+currentIndex, end-currentIndex);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;in the following files:  RepeatingTaggedFieldReader, SimpleDataBuffer (occurs twice), DelimitedRepeatingGroupReader, DelimitedRepeatingSegmentReader, &lt;/p&gt;
&lt;p&gt;Also, change the two occurances of &lt;/p&gt;
&lt;p&gt;if (quoteSymbol.checkEscapeBeforeQuoteSymbol(recordBuffer,bytesBuilder)) {&lt;/p&gt;
&lt;p&gt;to &lt;/p&gt;
&lt;p&gt;if (quoteState &amp;amp;&amp;amp; quoteSymbol.checkEscapeBeforeQuoteSymbol(recordBuffer,bytesBuilder)) {&lt;/p&gt;
&lt;p&gt;in DelimitedFlatFileScanner.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Parker</dc:creator><pubDate>Thu, 16 Aug 2007 12:36:26 -0000</pubDate><guid>https://sourceforge.netb9345b3b13af4a24f0ca356cebc4c21b440f5b5b</guid></item><item><title>sx:choose does not accept sx:fieldAttributeMap descendents</title><link>https://sourceforge.net/p/servingxml/bugs/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Support for sx:choose in sx:recordMapping sections was introduced in 0.6.5.  In literal content and element map sections, however, sx:choose still does not accept sx:fieldAttributeMap elements as children of sx:when.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Parker</dc:creator><pubDate>Wed, 20 Jun 2007 03:06:30 -0000</pubDate><guid>https://sourceforge.neta2112a9622ff408cee56b5a38474a29b0f4bd98e</guid></item><item><title>One parameter name appearing more than once in test fails</title><link>https://sourceforge.net/p/servingxml/bugs/11/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The same parameter name appearing two or more times in a test expression results in a load-time error, e.g. the following statement will fail:&lt;/p&gt;
&lt;p&gt;&amp;lt;sx:choose&amp;gt;&lt;br /&gt;
&amp;lt;sx:when test="$product='Cap' or $product='Floor'"&amp;gt;&lt;br /&gt;
&amp;lt;option&amp;gt;&lt;br /&gt;
&amp;lt;sx:toString value="{recordType}"/&amp;gt;&lt;br /&gt;
&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/sx:when&amp;gt;&lt;br /&gt;
&amp;lt;/sx:choose&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Parker</dc:creator><pubDate>Tue, 19 Jun 2007 03:26:50 -0000</pubDate><guid>https://sourceforge.net49926c05890a02d6f0d1e7eacd21abfffc0a1a7d</guid></item><item><title>Non-delimited binary datasets with repeating groups fails</title><link>https://sourceforge.net/p/servingxml/bugs/10/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When reading non-delimited binary datasets, current versions require that the size of the record to be read must be precomputed.  This fails when the record contains fixed repeating groups whose number is not known before reading the dataset.&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Parker</dc:creator><pubDate>Thu, 14 Jun 2007 05:08:36 -0000</pubDate><guid>https://sourceforge.neta547b6127706c01da3f8398f8fd712c006a7e3ba</guid></item><item><title>sx:choose inside sx:recordContent fails</title><link>https://sourceforge.net/p/servingxml/bugs/9/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;A defect was inadvertently introduced into the 0.6.5 and later releases. &lt;/p&gt;
&lt;p&gt;The issue is with the sx:choose within the sx:recordContent section. With the 0.6.5 release, sx:choose was made to support the contracts for record mapping elements, to allow its use inside sx:recordMapping sections. This leads to a problem for an sx:recordContent that contains an sx:choose, since the sx:choose now looks to it like a sx:recordMapping. &lt;/p&gt;
&lt;p&gt;There is a simple work around. Just wrap the record readers and filters appearing in an sx:recordContent element with an sx:recordStream element, i.e. instead of&lt;/p&gt;
&lt;p&gt;&amp;lt;sx:recordContent id="123" name="data"&amp;gt; &lt;br /&gt;
&amp;lt;sx:flatFileReader&amp;gt; &lt;br /&gt;
&amp;lt;sx:flatFile ref="juliens"/&amp;gt; &lt;br /&gt;
&amp;lt;/sx:flatFileReader&amp;gt; &lt;br /&gt;
&amp;lt;sx:choose&amp;gt; &lt;br /&gt;
&amp;lt;sx:when ... &lt;br /&gt;
&amp;lt;sx:when ... &lt;br /&gt;
&amp;lt;/sx:choose&amp;gt; &lt;br /&gt;
&amp;lt;sx:recordMapping ref="datamapping"/&amp;gt; &lt;br /&gt;
&amp;lt;/sx:recordContent&amp;gt; &lt;/p&gt;
&lt;p&gt;use&lt;/p&gt;
&lt;p&gt;&amp;lt;sx:recordContent id="123" name="data"&amp;gt; &lt;br /&gt;
&amp;lt;sx:recordStream&amp;gt; &lt;br /&gt;
&amp;lt;sx:flatFileReader&amp;gt; &lt;br /&gt;
&amp;lt;sx:flatFile ref="juliens"/&amp;gt; &lt;br /&gt;
&amp;lt;/sx:flatFileReader&amp;gt; &lt;br /&gt;
&amp;lt;sx:choose&amp;gt; &lt;br /&gt;
&amp;lt;sx:when ... &lt;br /&gt;
&amp;lt;sx:when ... &lt;br /&gt;
&amp;lt;/sx:choose&amp;gt; &lt;br /&gt;
&amp;lt;/sx:recordStream&amp;gt; &lt;br /&gt;
&amp;lt;sx:recordMapping ref="datamapping"/&amp;gt; &lt;br /&gt;
&amp;lt;/sx:recordContent&amp;gt; &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Parker</dc:creator><pubDate>Thu, 14 Jun 2007 02:47:28 -0000</pubDate><guid>https://sourceforge.net32fd1779f8e7f688525b1f2923fd64123fa828c7</guid></item></channel></rss>