<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Shared link metadata object returns incorrect IsPassword in dropbox-sdk-dotnet in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/531791#M25659</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1447076"&gt;@kir_ko&lt;/a&gt; These properties, such as LinkPermissions.RequirePassword, should now be available in the SDK as of v6.10.2.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 20:41:05 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-07-08T20:41:05Z</dc:date>
    <item>
      <title>Shared link metadata object returns incorrect IsPassword in dropbox-sdk-dotnet</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/524759#M25510</link>
      <description>&lt;P&gt;Got a file shared via view/edit link for anyone/team &lt;U&gt;with password&lt;/U&gt;. In API explorer I call the 'get_shared_link_metadata' for the file and clearly see the raw response has all the properties correct including the 'link_permissions.require_password' one (true in my case). But retrieving the link metadata using&amp;nbsp;dropbox-sdk-dotnet for the same file I face the fact that Sharing.FileLinkMetadata.LinkPermissions object returns false for any *password* property. I think that at least the LinkPermissions.EffectiveAudience.IsPassword property is supposed to be true. Also not really clear for me why the&amp;nbsp;LinkPermissions.EffectiveAudience object doesn't contain the IsTeamAndPassword property while&amp;nbsp;LinkPermissions.ResolvedVisibility does? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 18:11:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/524759#M25510</guid>
      <dc:creator>kir_ko</dc:creator>
      <dc:date>2021-06-04T18:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Shared link metadata object returns incorrect IsPassword in dropbox-sdk-dotnet</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/524885#M25514</link>
      <description>&lt;P&gt;Could you share the relevant code you're using and output you're getting so we can look at what you're seeing specifically? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 20:46:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/524885#M25514</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-06-04T20:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Shared link metadata object returns incorrect IsPassword in dropbox-sdk-dotnet</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/525323#M25517</link>
      <description>&lt;P&gt;Thanks for the response! Sure, there it is step-by-step:&lt;/P&gt;&lt;P&gt;1) The .paper file shared for team members with password required&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kir_ko_0-1623067325977.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/23840iDA2D2AE6347C25F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kir_ko_0-1623067325977.png" alt="kir_ko_0-1623067325977.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;namespace PatchTest
{
    using Dropbox.Api;
    using Dropbox.Api.Common;
    using System;

    class Program
    {       
        static void Main(string[] args)
        {
            var link = @"https://www.dropbox.com/_cut_/public_paper_team_members_with_password_can_edit.paper?dl=0&amp;amp;rlkey=_cut_";           
            var namespaceId = "_cut_";
            var memberId = "_cut_";
            var accessToken = "_cut_";
            var config = new DropboxClientConfig("");
            var teamClient = new DropboxTeamClient(accessToken, config);
            var userClient = teamClient.AsMember(memberId).WithPathRoot(new PathRoot.NamespaceId(namespaceId));           
            var sharedLinkMetadata = userClient.Sharing.GetSharedLinkMetadataAsync(link).Result;          

            Console.ReadKey();
        }        
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;3) And what we get as a result (IsTeam resolved properly while IsPassword is incorrect):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kir_ko_1-1623068272111.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/23841i03A6A1D0EDDD7502/image-size/large?v=v2&amp;amp;px=999" role="button" title="kir_ko_1-1623068272111.png" alt="kir_ko_1-1623068272111.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The LinkPermissions.RequirePassword==true property you can see on the screenshot is an example that the proper value can be found. I added the property to Dropbox.Api.Sharing.LinkPermissions class and added another switch to the&amp;nbsp;LinkPermissionsDecoder.SetField method:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private class LinkPermissionsDecoder : enc.StructDecoder&amp;lt;LinkPermissions&amp;gt;
        {
            ...

            protected override void SetField(LinkPermissions value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                    case "require_password":
                        value.RequirePassword = enc.BooleanDecoder.Instance.Decode(reader);
                        break;
                    case "can_revoke":
                        value.CanRevoke = enc.BooleanDecoder.Instance.Decode(reader);
                        break;
                    case "resolved_visibility":
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 12:30:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/525323#M25517</guid>
      <dc:creator>kir_ko</dc:creator>
      <dc:date>2021-06-07T12:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shared link metadata object returns incorrect IsPassword in dropbox-sdk-dotnet</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/525473#M25524</link>
      <description>&lt;P&gt;Just to confirm:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The property is true when you executed the HTTPS call (in the Dropbox API explorer or other), but the property is returning false in the SDK?&lt;/LI&gt;
&lt;LI&gt;Including the line to&amp;nbsp;&lt;SPAN&gt;LinkPermissionsDecoder resolved?&lt;/SPAN&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 08 Jun 2021 00:18:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/525473#M25524</guid>
      <dc:creator>kylea</dc:creator>
      <dc:date>2021-06-08T00:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shared link metadata object returns incorrect IsPassword in dropbox-sdk-dotnet</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/525572#M25526</link>
      <description>&lt;UL&gt;&lt;LI&gt;The property is true when you executed the HTTPS call (in the Dropbox API explorer or other), but the property is returning false in the SDK? - Yes, Sir.&lt;/LI&gt;&lt;LI&gt;Including the line to&amp;nbsp;&lt;SPAN&gt;LinkPermissionsDecoder resolved?&lt;/SPAN&gt;&amp;nbsp;- Sorry, the question is not clear for me. If you mean including the line to my local copy of&amp;nbsp;&lt;SPAN&gt;dropbox-sdk-dotnet is a solution then the answer is no, forking each sdk release in local repo seems like a wrong idea -)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 08 Jun 2021 11:10:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/525572#M25526</guid>
      <dc:creator>kir_ko</dc:creator>
      <dc:date>2021-06-08T11:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Shared link metadata object returns incorrect IsPassword in dropbox-sdk-dotnet</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/525674#M25529</link>
      <description>&lt;P&gt;I'm not suggesting forking the SDK is a sustainable solution; I'm just confirming if the lines you added worked&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@488936AC5FA64023548E32631AFD9803/emoticons/1f600.png" alt=":grinning_face:" title=":grinning_face:" /&gt;. I'll be tracking it as a bug in the SDK.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 16:37:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/525674#M25529</guid>
      <dc:creator>kylea</dc:creator>
      <dc:date>2021-06-08T16:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Shared link metadata object returns incorrect IsPassword in dropbox-sdk-dotnet</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/525678#M25530</link>
      <description>&lt;P&gt;Ah, OK, got it. So yep, those lines worked fine and returned 'true' I was searching for &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 16:42:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/525678#M25530</guid>
      <dc:creator>kir_ko</dc:creator>
      <dc:date>2021-06-08T16:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Shared link metadata object returns incorrect IsPassword in dropbox-sdk-dotnet</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/531791#M25659</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1447076"&gt;@kir_ko&lt;/a&gt; These properties, such as LinkPermissions.RequirePassword, should now be available in the SDK as of v6.10.2.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 20:41:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/531791#M25659</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-07-08T20:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Shared link metadata object returns incorrect IsPassword in dropbox-sdk-dotnet</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/532400#M25666</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;Thanks a lot! After July 19th I'll download the 6.10.2 version and update my methods accordingly. Will update the discussion when done.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 15:17:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Shared-link-metadata-object-returns-incorrect-IsPassword-in/m-p/532400#M25666</guid>
      <dc:creator>kir_ko</dc:creator>
      <dc:date>2021-07-12T15:17:35Z</dc:date>
    </item>
  </channel>
</rss>

