<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:39:26 UTC 2024

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 append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-1382] No property name given in the error message in the case of a &quot;half matching&quot; variable name</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1382</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;MongoDB C# Driver Exception:&lt;/p&gt;

&lt;p&gt;Message=Element &apos;&apos; does not match any field or property of class&lt;/p&gt;

&lt;p&gt;The problem was a typo with a property called RequiresAuthenticationFlag instead of RequiresAuthentication.&lt;/p&gt;

&lt;p&gt;I do not understand why the driver did not include the name of the variable inside the exception.&lt;/p&gt;

&lt;p&gt;Why does the driver not include the element name inside the exception?&lt;/p&gt;

&lt;p&gt;When I remove some characters of the DB variable&apos;s name, it does not throw a meaningful exception. &lt;/p&gt;

&lt;p&gt;DB Property Name: Requires &lt;br/&gt;
Class Property Name: RequiresAuthentication&lt;/p&gt;

&lt;p&gt;Exception does not contain correct field name.&lt;/p&gt;

&lt;p&gt;When it is the other way around. It does contain a full name!&lt;/p&gt;

&lt;p&gt;(Class contains Requires and DB RequiresAuthentication)&lt;/p&gt;

&lt;p&gt;I think that must be a bug in the exception handling?&lt;/p&gt;

&lt;p&gt;(I have posted a question on Stackoverflow too and did not get an answer)&lt;/p&gt;

&lt;p&gt;Could you help me? Can you reproduce this? I am working on a Windows Server 2012 with the C# Driver and Visual Studio 2015.&lt;/p&gt;</description>
                <environment>Windows</environment>
        <key id="225670">CSHARP-1382</key>
            <summary>No property name given in the error message in the case of a &quot;half matching&quot; variable name</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="Matthias">Matthias Jost [X]</reporter>
                        <labels>
                            <label>question</label>
                    </labels>
                <created>Fri, 14 Aug 2015 09:28:03 +0000</created>
                <updated>Mon, 4 May 2020 17:12:11 +0000</updated>
                            <resolved>Mon, 4 May 2020 17:12:11 +0000</resolved>
                                                                    <component>Security</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1005485" author="matthias" created="Fri, 14 Aug 2015 09:28:41 +0000"  >&lt;p&gt;Here is the SO question: &lt;a href=&quot;http://stackoverflow.com/questions/31961339/mongodb-c-sharp-driver-exception-message-element-does-not-match-any-field-or&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/31961339/mongodb-c-sharp-driver-exception-message-element-does-not-match-any-field-or&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hscjg7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>