<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Tue May 21 07:06: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/si/jira.issueviews:issue-xml/MB-7069/MB-7069.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[MB-7069] Fix UI to support Non-JSON values ( was: Non-JSON values which are not integers show up as base-64 encoded when viewed through the UI document viewer)</title>
                <link>http://www.couchbase.com/issues/browse/MB-7069</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>Reproduction:&lt;br/&gt;
-Set a key with some non-JSON value&lt;br/&gt;
-View that key through the document viewer in the UI&lt;br/&gt;
-See that the value does not match what was just set&lt;br/&gt;
&lt;br/&gt;
I presume this is because we are compressing the data at the disk level and then reading that binary attachment back when viewing through the UI...but it&amp;#39;s quite confusing for the user to not be able to see what they thought was simple string data.&lt;br/&gt;
&lt;br/&gt;
Does this at all affect views of non-JSON (i.e., increment counters)?  Even in the random doc preview, this data does not come across correctly...</description>
                <environment></environment>
            <key id="20498">MB-7069</key>
            <summary>Fix UI to support Non-JSON values ( was: Non-JSON values which are not integers show up as base-64 encoded when viewed through the UI document viewer)</summary>
                <type id="4" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/major.png">Major</priority>
                    <status id="4" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/reopened.png">Reopened</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10011">Public</security>
                        <assignee username="alkondratenko">Aleksey Kondratenko</assignee>
                                <reporter username="perry">Perry Krug</reporter>
                        <labels>
                        <label>2.0-release-notes</label>
                        <label>customer</label>
                    </labels>
                <created>Wed, 31 Oct 2012 19:17:50 -0500</created>
                <updated>Wed, 27 Mar 2013 13:27:54 -0500</updated>
                                    <version>2.0</version>
                                <fixVersion>.next</fixVersion>
                                <component>ns_server</component>
                                <votes>0</votes>
                        <watches>2</watches>
                                                    <comments>
                    <comment id="43011" author="chiyoung" created="Thu, 1 Nov 2012 00:40:46 -0500"  >Farshid,&lt;br/&gt;
&lt;br/&gt;
Please assign this bug to the view or UI team. ep-engine has nothing to do with view and its UI.</comment>
                    <comment id="43012" author="farshid" created="Thu, 1 Nov 2012 00:44:07 -0500"  >Perry,&lt;br/&gt;
&lt;br/&gt;
can you please specify whether the document was an ascii or a binary data ?</comment>
                    <comment id="43022" author="perry" created="Thu, 1 Nov 2012 04:32:53 -0500"  >Ascii.  I tried both a few characters in string and a single integer value (as if it were an increment counter value).&lt;br/&gt;
&lt;br/&gt;
This came up from a customer who created a CSV list and wanted to view it through the UI as well as design a view around it.&lt;br/&gt;
&lt;br/&gt;
I&amp;#39;m fairly certain the problem is that this mechanism for viewing documents is coming directly from the on-disk datastore (as opposed to through memcached) and therefore it is compressed binary and not exactly what the application put in. &lt;br/&gt;
&lt;br/&gt;
Let me know if you need more specific reproduction details.</comment>
                    <comment id="43038" author="deepkaran.salooja" created="Thu, 1 Nov 2012 11:06:52 -0500"  >Anything which doesn&amp;#39;t parse as valid json are encoded as base64 and stored as an attachment. In the UI for document viewer these get displayed as binary. &lt;br/&gt;
There was a recent bug fix for the increment counter values. So string integers will show up fine as they now parse as valid JSONs(screenshot attached-StringNumbersAsValidJson). Please see &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-6961&quot; title=&quot;result of INCR operations should show up in views as JSON number, not base64 string&quot;&gt;&lt;strike&gt;MB-6961&lt;/strike&gt;&lt;/a&gt; for detailed discussion. &lt;br/&gt;
For normal strings, these will get displayed as binary(screenshot-StringAsNonJson).</comment>
                    <comment id="43039" author="farshid" created="Thu, 1 Nov 2012 11:15:15 -0500"  >resolving this as won&amp;#39;t fix since this is an expected behavior as mentioned in the last comment&lt;br/&gt;
&lt;br/&gt;
the fix for this would be to reverse the base64 coding ?&lt;br/&gt;
</comment>
                    <comment id="43040" author="farshid" created="Thu, 1 Nov 2012 11:18:16 -0500"  >for 2.0 i marked this to be documented since our documented editing section is not meant for non-json values ( e.g &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-7031)&quot;&gt;http://www.couchbase.com/issues/browse/MB-7031)&lt;/a&gt;</comment>
                    <comment id="43042" author="perry" created="Thu, 1 Nov 2012 11:23:40 -0500"  >Sorry if it should be obvious...but this is already fixed in a later release and so just have to document for the beta?  Or is it planned for this never to be supported?&lt;br/&gt;
&lt;br/&gt;
Thanks Farshid</comment>
                    <comment id="43046" author="farshid" created="Thu, 1 Nov 2012 11:29:50 -0500"  >&amp;gt;&amp;gt;.but this is already fixed in a later release &lt;br/&gt;
viewing non-json values on document editing page is not supported or expected behavior.&lt;br/&gt;
however as Deep mentioned a corner case is fixed in &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-6961&quot; title=&quot;result of INCR operations should show up in views as JSON number, not base64 string&quot;&gt;&lt;strike&gt;MB-6961&lt;/strike&gt;&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
once 7031 is merged ( before 2.0 GA ) user will see a better error message when document is non-json&lt;br/&gt;
&lt;br/&gt;
so for 2.0 GA we need to document that this behavior is not supported and expected.&lt;br/&gt;
&lt;br/&gt;
</comment>
                    <comment id="43048" author="perry" created="Thu, 1 Nov 2012 11:43:19 -0500"  >Okay, I might need to question that a little bit...how is a user supposed to write a view around a non-JSON (i.e. an incremement counter or CSV) if they can&amp;#39;t see it in the document viewer?  Writing such views is supposed to be supported right?  Seems like this would have to be as well?&lt;br/&gt;
&lt;br/&gt;
Obviously document it for whenever we can&amp;#39;t, but I think Dipti needs to decide how to address it.</comment>
                    <comment id="43240" author="mccouch" created="Mon, 5 Nov 2012 11:15:33 -0600"  >Note has been added to the corresponding section of the docs,and to the release notes. </comment>
                    <comment id="43250" author="perry" created="Mon, 5 Nov 2012 11:52:50 -0600"  >Reopening as it&amp;#39;s still not clear whether this is something we want to support or not...and I argue that we should.</comment>
                    <comment id="43364" author="dipti" created="Tue, 6 Nov 2012 02:34:55 -0600"  >The UI does not handle BLOB data very well. Data access using the APIs for BLOBs is completely supported and works well. </comment>
                    <comment id="53623" author="kzeller" created="Wed, 27 Mar 2013 13:27:54 -0500"  >Removing docs tag, additional server work required. Reassign when ready to document post-resolution.</comment>
                </comments>
                    <attachments>
                    <attachment id="15672" name="StringAsNonJson.png" size="133094" author="deepkaran.salooja" created="Thu, 1 Nov 2012 11:07:12 -0500" />
                    <attachment id="15673" name="StringNumbersAsValidJson.png" size="139054" author="deepkaran.salooja" created="Thu, 1 Nov 2012 11:07:12 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                        <customfield id="customfield_10180" key="com.atlassian.jira.ext.charting:firstresponsedate">
                <customfieldname>Date of First Response</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>Thu, 1 Nov 2012 00:40:46 -0500</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                                                                                                                        <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>2852</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>