<!--
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Sat May 25 13:44:44 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+10080+AND+labels+%3D+%22view%22&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.couchbase.com/issues/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Couchbase</title>
        <link>http://www.couchbase.com/issues/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+10080+AND+labels+%3D+%22view%22</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="1" total="1"/>
                <build-info>
            <version>5.2.4</version>
            <build-number>845</build-number>
            <build-date>26-12-2012</build-date>
        </build-info>
<item>
            <title>[JCBC-125] Don&apos;t cast view documents to strings</title>
                <link>http://www.couchbase.com/issues/browse/JCBC-125</link>
                <project id="10080" key="JCBC">Couchbase Java Client</project>
                        <description>When objects are stored as non-strings in Couchbase and then loaded through a View, the SDK currently casts every document to a string. This works fine for JSON documents, but as soon as you want to store serialized objects it breaks.&lt;br/&gt;
&lt;br/&gt;
Implicit casting is not needed in this place (see fix).</description>
                <environment>All</environment>
            <key id="20049">JCBC-125</key>
            <summary>Don&apos;t cast view documents to strings</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="daschl">Michael Nitschinger</assignee>
                                <reporter username="daschl">Michael Nitschinger</reporter>
                        <labels>
                        <label>view</label>
                    </labels>
                <created>Wed, 3 Oct 2012 06:54:32 -0500</created>
                <updated>Mon, 3 Dec 2012 05:36:20 -0600</updated>
                    <resolved>Thu, 8 Nov 2012 01:52:31 -0600</resolved>
                            <version>1.1-dp4</version>
                                <fixVersion>1.1-beta</fixVersion>
                                <component>library</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="40188" author="daschl" created="Wed, 3 Oct 2012 06:57:55 -0500"  >Here is a quick sample on how to reproduce it, but I&amp;#39;m adding a correct test case to the code as well (the view used is just the default &amp;quot;emit key and null&amp;quot; view with no reduce).&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
import com.couchbase.client.CouchbaseClient;&lt;br/&gt;
import com.couchbase.client.CouchbaseConnectionFactory;&lt;br/&gt;
import com.couchbase.client.protocol.views.Query;&lt;br/&gt;
import com.couchbase.client.protocol.views.View;&lt;br/&gt;
import com.couchbase.client.protocol.views.ViewResponse;&lt;br/&gt;
import com.couchbase.client.protocol.views.ViewRow;&lt;br/&gt;
import java.io.IOException;&lt;br/&gt;
import java.net.URI;&lt;br/&gt;
import java.util.Arrays;&lt;br/&gt;
import java.util.Date;&lt;br/&gt;
import java.util.Iterator;&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
public class BinaryviewTest {&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;/**&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;* @param args the command line arguments&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;*/&lt;br/&gt;
&amp;nbsp;&amp;nbsp;public static void main(String[] args) throws IOException {&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Initialize Connection&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CouchbaseClient cb = new CouchbaseClient(&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new CouchbaseConnectionFactory(&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Arrays.asList(&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;URI.create(&amp;quot;&lt;a href=&quot;http://192.168.1.105:8091/pools&quot;&gt;http://192.168.1.105:8091/pools&lt;/a&gt;&amp;quot;)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;),&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;default&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;&amp;quot;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Store binary objects&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Object ob1 = new Date();&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cb.set(&amp;quot;date1&amp;quot;, 0, ob1);&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Object result = cb.get(&amp;quot;date1&amp;quot;);&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(result.getClass());&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Query query = new Query();&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;query.setIncludeDocs(true);&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;View view = cb.getView(&amp;quot;testing&amp;quot;, &amp;quot;binary&amp;quot;);&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ViewResponse response = cb.query(view, query);&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Iterator&amp;lt;ViewRow&amp;gt; iterator = response.iterator();&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ViewRow row;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(iterator.hasNext()) {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;row = iterator.next();&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Object obj = row.getDocument();&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(obj.getClass());&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cb.shutdown();&lt;br/&gt;
&amp;nbsp;&amp;nbsp;}&lt;br/&gt;
}&lt;br/&gt;
&lt;br/&gt;
When run two times, this raises the exception as described here: &lt;a href=&quot;http://www.couchbase.com/forums/thread/couchbase-2-view-non-json-docs&quot;&gt;http://www.couchbase.com/forums/thread/couchbase-2-view-non-json-docs&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
I&amp;#39;ll update it when I have the fix and test ready.</comment>
                    <comment id="40189" author="daschl" created="Wed, 3 Oct 2012 07:23:55 -0500"  >See &lt;a href=&quot;http://review.couchbase.com/#/c/21305/&quot;&gt;http://review.couchbase.com/#/c/21305/&lt;/a&gt;</comment>
                    <comment id="43537" author="daschl" created="Thu, 8 Nov 2012 01:52:31 -0600"  >pushed to master, will be available in dp5.</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>8669</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10181" key="com.atlassian.jira.ext.charting:timeinstatus">
                <customfieldname>Time In Status</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                </customfields>
    </item>
</channel>
</rss>