<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Sun May 19 07:45:27 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/NCBC-144/NCBC-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>[NCBC-144] CreateDesignDocument() exception</title>
                <link>http://www.couchbase.com/issues/browse/NCBC-144</link>
                <project id="10046" key="NCBC">Couchbase .NET client library</project>
                        <description>On a Windows 7 x64 VM, single node cluster, Couchbase 2.0 beta, freshly downloaded and installed, I am getting the following exception:&lt;br/&gt;
System.Net.WebException was unhandled&lt;br/&gt;
&amp;nbsp;&amp;nbsp;HResult=-2146233079&lt;br/&gt;
&amp;nbsp;&amp;nbsp;Message=The remote server returned an error: (500) Internal Server Error.&lt;br/&gt;
&amp;nbsp;&amp;nbsp;Source=System&lt;br/&gt;
&amp;nbsp;&amp;nbsp;StackTrace:&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at System.Net.HttpWebRequest.GetResponse()&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at Couchbase.Helpers.HttpHelper.doRequest(Uri uri, String verb, String username, String password, String postData, String contentType) in c:\Cloud\Platform\PlatformSpike\Reference Assemblies\Couchbase\Couchbase\Helpers\HttpHelper.cs:line 77&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at Couchbase.Helpers.HttpHelper.Put(Uri uri, String username, String password, String postData, String contentType) in c:\Cloud\Platform\PlatformSpike\Reference Assemblies\Couchbase\Couchbase\Helpers\HttpHelper.cs:line 42&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at Couchbase.Management.CouchbaseCluster.CreateDesignDocument(String bucket, String name, String document) in c:\Cloud\Platform\PlatformSpike\Reference Assemblies\Couchbase\Couchbase\Management\CouchbaseCluster.cs:line 115&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at Platform.Data.Couchbase.Provisioning.CouchbaseProvisioning.CreateDesignDocument(String bucketName, String name, DesignDocument document) in c:\Cloud\Platform\PlatformSpike\Platform.Data.Couchbase.Provisioning\ProvisioningClient.cs:line 217&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at Platform.Data.Couchbase.Provisioning.CouchbaseProvisioning.Execute() in c:\Cloud\Platform\PlatformSpike\Platform.Data.Couchbase.Provisioning\ProvisioningClient.cs:line 56&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at CouchbaseUpdater.Program.Main(String[] args) in c:\Cloud\Platform\PlatformSpike\CouchbaseUpdater\Program.cs:line 26&lt;br/&gt;
&amp;nbsp;&amp;nbsp;InnerException:&lt;br/&gt;
&amp;nbsp;&lt;br/&gt;
The server log contains the following entry, but I&amp;#39;m not sure if it is related:&lt;br/&gt;
Client-side error-report for user &amp;quot;admin&amp;quot; on node &amp;#39;&lt;a href=&apos;mailto:ns_1@192.168.54.178&apos;&gt;ns_1@192.168.54.178&lt;/a&gt;&amp;#39;:&lt;br/&gt;
User-Agent:Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)&lt;br/&gt;
Got unhandled error: Object doesn&amp;#39;t support this action&lt;br/&gt;
At: &lt;a href=&quot;http://192.168.54.178:8091/js/cells.js:64&quot;&gt;http://192.168.54.178:8091/js/cells.js:64&lt;/a&gt;&lt;br/&gt;
Backtrace:&lt;br/&gt;
Function: collectBacktraceViaCaller&lt;br/&gt;
Args:&lt;br/&gt;
---------&lt;br/&gt;
Function: appOnError&lt;br/&gt;
Args:&lt;br/&gt;
&amp;quot;Object doesn&amp;#39;t support this action&amp;quot;&lt;br/&gt;
&amp;quot;&lt;a href=&quot;http://192.168.54.178:8091/js/cells.js&quot;&gt;http://192.168.54.178:8091/js/cells.js&lt;/a&gt;&amp;quot;&lt;br/&gt;
64&lt;br/&gt;
30&lt;br/&gt;
---------&lt;br/&gt;
Function: (function () {throw e;})&lt;br/&gt;
Args:&lt;br/&gt;
---------&lt;br/&gt;
(repeated 1 times)&lt;br/&gt;
&amp;nbsp;&lt;br/&gt;
Those are the parameters to the doRequest() method:&lt;br/&gt;
uri = &lt;a href=&quot;http://192.168.54.178:8092/tenants/_design/tenant_views&quot;&gt;http://192.168.54.178:8092/tenants/_design/tenant_views&lt;/a&gt;&lt;br/&gt;
verb = PUT&lt;br/&gt;
contentType = application/json&lt;br/&gt;
username = admin&lt;br/&gt;
password = password&lt;br/&gt;
postData =&lt;br/&gt;
{&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;quot;views&amp;quot;: {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;tenants_all&amp;quot;: {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;map&amp;quot;: &amp;quot;function(doc,meta) \r\n{\r\n\tif (doc.Schema === \&amp;quot;tenant\&amp;quot;) \r\n\t{ \r\n\t\temit(meta.id, null); \r\n\t} \r\n}&amp;quot;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;tenants_by_status&amp;quot;: {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;map&amp;quot;: &amp;quot;function (doc,meta) \r\n{ \r\n\tif (doc.Schema === \&amp;quot;tenant\&amp;quot; &amp;amp;&amp;amp; doc.Status) \r\n\t{ \r\n\t\temit(doc.Status, null); \r\n\t} \r\n}&amp;quot;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;tenants_by_user_application_instance&amp;quot;: {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;map&amp;quot;: &amp;quot;function(doc,meta) \r\n{\r\n\tif (doc.Schema === \&amp;quot;tenant\&amp;quot; &amp;amp;&amp;amp; doc.UserId &amp;amp;&amp;amp; doc.TenantIdentifiers &amp;amp;&amp;amp; identifier.Status === 1) \r\n\t{ \r\n\t\tfor (var i = 0; i &amp;lt; doc.TenantIdentifiers.length; i++) \r\n\t\t{\r\n\t\t\tvar identifier = doc.TenantIdentifiers[i];\r\n\t\t\tif (identifier.ApplicationInstanceId)\r\n\t\t\t{\r\n\t\t\t\temit([doc.UserId, identifier.ApplicationInstanceId], null); \r\n\t\t\t}\r\n\t\t}\r\n\t} \r\n}&amp;quot;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br/&gt;
&amp;nbsp;&amp;nbsp;}&lt;br/&gt;
}&lt;br/&gt;
&amp;nbsp;&lt;br/&gt;
On the client I am using the compiled latest .NET source code from GitHub with no modifications.</description>
                <environment></environment>
            <key id="20345">NCBC-144</key>
            <summary>CreateDesignDocument() exception</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="perry">Perry Krug</assignee>
                                <reporter username="perry">Perry Krug</reporter>
                        <labels>
                        <label>customer</label>
                    </labels>
                <created>Sun, 21 Oct 2012 06:55:45 -0500</created>
                <updated>Fri, 18 Jan 2013 15:18:45 -0600</updated>
                    <resolved>Fri, 18 Jan 2013 15:18:45 -0600</resolved>
                            <version>1.2 Beta</version>
                                <fixVersion>1.2.1</fixVersion>
                                <component>library</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="42191" author="john" created="Mon, 22 Oct 2012 11:09:07 -0500"  >Could we get a code snippet for the call that was made for this failure?  I&amp;#39;ve used the client recently with Win7 64 and CBS Beta and haven&amp;#39;t had any issues.  &lt;br/&gt;
&lt;br/&gt;
I have a partially completed demo app @ &lt;a href=&quot;https://github.com/jzablocki/couchbase-beer.net/blob/master/src/CouchbaseBeersWeb/Models/WebRepositoryBase%271.cs#L140&quot;&gt;https://github.com/jzablocki/couchbase-beer.net/blob/master/src/CouchbaseBeersWeb/Models/WebRepositoryBase%271.cs#L140&lt;/a&gt; that creates views.  </comment>
                    <comment id="48100" author="john" created="Fri, 18 Jan 2013 15:18:45 -0600"  >Perry - haven&amp;#39;t heard back on this issue.  The 500 error was likely due to a bad view name or something similar.  Closing this issue for now.  The fix for &lt;a href=&quot;http://www.couchbase.com/issues/browse/NCBC-165&quot; title=&quot;GetView doesn&amp;#39;t return an exception if the view doesn&amp;#39;t exist.&quot;&gt;&lt;strike&gt;NCBC-165&lt;/strike&gt;&lt;/a&gt; means better error handling.</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>9925</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>