<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Wed May 22 15:32:32 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/PCBC-144/PCBC-144.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>[PCBC-144] getVersion() returns memcached version, not couchbase version</title>
                <link>http://www.couchbase.com/issues/browse/PCBC-144</link>
                <project id="10049" key="PCBC">Couchbase PHP client library</project>
                        <description>For whatever reason, when doing getVersion() on the php ext the showed version is not the couchbase one. I assume its the memcached one, but I think this will only confuse people.&lt;br/&gt;
&lt;br/&gt;
Is it possible to change this to the corresponding couchbase version?&lt;br/&gt;
&lt;br/&gt;
array(2) {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;#39;192.168.56.101:11210&amp;#39; =&amp;gt;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;string(18) &amp;quot;1.4.4_600_g7ea975a&amp;quot;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;#39;192.168.56.102:11210&amp;#39; =&amp;gt;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;string(18) &amp;quot;1.4.4_600_g7ea975a&amp;quot;&lt;br/&gt;
}&lt;br/&gt;
&lt;br/&gt;
Michael</description>
                <environment></environment>
            <key id="20678">PCBC-144</key>
            <summary>getVersion() returns memcached version, not couchbase version</summary>
                <type id="4" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10011">Public</security>
                        <assignee username="trond">Trond Norbye</assignee>
                                <reporter username="daschl">Michael Nitschinger</reporter>
                        <labels>
                    </labels>
                <created>Sat, 10 Nov 2012 17:25:51 -0600</created>
                <updated>Tue, 11 Dec 2012 19:55:29 -0600</updated>
                    <resolved>Thu, 6 Dec 2012 04:49:59 -0600</resolved>
                            <version>1.1.0-dp5</version>
                                <fixVersion>1.1.0</fixVersion>
                                <component>library</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="43753" author="ingenthr" created="Sun, 11 Nov 2012 09:46:19 -0600"  >Unfortunately, this is a bit correct.  The memcached protocol &amp;quot;version&amp;quot; command returns that string.  We&amp;#39;re simply returning what the server says.  I know it&amp;#39;s a bit confusing in this instance.  I think I&amp;#39;d asked for this behavior, but maybe we need to reconsider it a bit.</comment>
                    <comment id="43754" author="ingenthr" created="Sun, 11 Nov 2012 09:49:34 -0600"  >Trond: not assigning this to you to fix it, but rather just to get your opinion on what we should do here.&lt;br/&gt;
&lt;br/&gt;
We have a getVersion() which maps to the memcached protocol version command.  Given that our server returns this string, should we change the behavior of getVersion() on the client?&lt;br/&gt;
&lt;br/&gt;
My current feeling is no.  Besides, this issue has never been reported by a real user.  We&amp;#39;re staying true to the interface we intended to implement, it&amp;#39;s not our fault that the string coming back is confusing.  &lt;br/&gt;
&lt;br/&gt;
What do you think?</comment>
                    <comment id="43786" author="trond" created="Mon, 12 Nov 2012 05:16:15 -0600"  >I don&amp;#39;t have a printout of what the REST response from the server looks like, but I think we should add a call to the library we may use to retrieve that version. I don&amp;#39;t think we should change the current getVersion() (in case someone use that already), but rather have something like getClusterVersion (or getNodeVersion). The cluster may be running multiple versions during an upgrade scenario...</comment>
                    <comment id="43787" author="daschl" created="Mon, 12 Nov 2012 05:18:42 -0600"  >If this is easily achievable, I&amp;#39;d definitely vote for it. It could be done the same way as getVersion() that returns an array for each node with the corresponding version.</comment>
                    <comment id="45563" author="trond" created="Thu, 6 Dec 2012 04:48:07 -0600"  >This is easily achieved with something among the lines of:&lt;br/&gt;
&lt;br/&gt;
&amp;lt;?php&lt;br/&gt;
$cb = new CouchbaseClusterManager(&amp;quot;localhost&amp;quot;, &amp;quot;Administrator&amp;quot;, &amp;quot;asdasd&amp;quot;);&lt;br/&gt;
$info = json_decode($cb-&amp;gt;getInfo());&lt;br/&gt;
foreach ($info-&amp;gt;{&amp;quot;nodes&amp;quot;} as $node) {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;print $node-&amp;gt;{&amp;quot;hostname&amp;quot;} . &amp;quot; is running &amp;quot; . $node-&amp;gt;{&amp;quot;version&amp;quot;} . &amp;quot;\n&amp;quot;;&lt;br/&gt;
}&lt;br/&gt;
?&amp;gt;&lt;br/&gt;
</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>9769</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>