<?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 JAVA API Shared Link Access Denied in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495555#M24716</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a JAVA application that uploads files to Dropbox, suddenly having a [Exception in 2/sharing/create_shared_link_with_settings: "access_denied" ] when trying to get the shared link. This error started 1-2 days ago.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Upload works fine and file is visible from dropbox webpage&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the code that throws the error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SharedLinkMetadata slmFile = client.sharing().createSharedLinkWithSettings("/dir1/file.txt",&lt;BR /&gt;SharedLinkSettings.newBuilder()&lt;BR /&gt;.withRequestedVisibility(RequestedVisibility.PUBLIC).build());&lt;BR /&gt;&lt;BR /&gt;And this is the full error stack trace:&lt;/P&gt;
&lt;P&gt;com.dropbox.core.v2.sharing.CreateSharedLinkWithSettingsErrorException: Exception in 2/sharing/create_shared_link_with_settings: "access_denied"&lt;BR /&gt;at com.dropbox.core.v2.sharing.DbxUserSharingRequests.createSharedLinkWithSettings(DbxUserSharingRequests.java:483)&lt;BR /&gt;at com.dropbox.core.v2.sharing.DbxUserSharingRequests.createSharedLinkWithSettings(DbxUserSharingRequests.java:526)&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 23:52:15 GMT</pubDate>
    <dc:creator>softwaremedicalshare</dc:creator>
    <dc:date>2021-02-10T23:52:15Z</dc:date>
    <item>
      <title>JAVA API Shared Link Access Denied</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495555#M24716</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a JAVA application that uploads files to Dropbox, suddenly having a [Exception in 2/sharing/create_shared_link_with_settings: "access_denied" ] when trying to get the shared link. This error started 1-2 days ago.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Upload works fine and file is visible from dropbox webpage&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the code that throws the error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SharedLinkMetadata slmFile = client.sharing().createSharedLinkWithSettings("/dir1/file.txt",&lt;BR /&gt;SharedLinkSettings.newBuilder()&lt;BR /&gt;.withRequestedVisibility(RequestedVisibility.PUBLIC).build());&lt;BR /&gt;&lt;BR /&gt;And this is the full error stack trace:&lt;/P&gt;
&lt;P&gt;com.dropbox.core.v2.sharing.CreateSharedLinkWithSettingsErrorException: Exception in 2/sharing/create_shared_link_with_settings: "access_denied"&lt;BR /&gt;at com.dropbox.core.v2.sharing.DbxUserSharingRequests.createSharedLinkWithSettings(DbxUserSharingRequests.java:483)&lt;BR /&gt;at com.dropbox.core.v2.sharing.DbxUserSharingRequests.createSharedLinkWithSettings(DbxUserSharingRequests.java:526)&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 23:52:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495555#M24716</guid>
      <dc:creator>softwaremedicalshare</dc:creator>
      <dc:date>2021-02-10T23:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA API Shared Link Access Denied</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495561#M24717</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1410685"&gt;@softwaremedicalshare&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did you ensure "sharing.write" permission for your application (both in Application console and on token generation)?&lt;/P&gt;&lt;P&gt;Hope this gives right direction.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 00:20:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495561#M24717</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2021-02-11T00:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA API Shared Link Access Denied</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495757#M24722</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1410685"&gt;@softwaremedicalshare&lt;/a&gt;&amp;nbsp;It sounds like your links may currently be banned on your account. That would cause this error. (This doesn't sound like a scopes issue; that would be a different error message.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find more information on link bans here:&amp;nbsp;&lt;A href="https://help.dropbox.com/files-folders/share/banned-links" target="_blank"&gt;https://help.dropbox.com/files-folders/share/banned-links&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:45:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495757#M24722</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-02-11T15:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA API Shared Link Access Denied</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495758#M24723</link>
      <description>&lt;P&gt;Hi @Здравко,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have this options in Application "Permissions" tab&lt;/P&gt;&lt;P&gt;Account info&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;account_info.write off&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;account_info.read is on&lt;/P&gt;&lt;P&gt;Files and folders&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;files.metadata.write is on&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;files.metadata.read is on&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;files.content.write is on&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;files.content.read is on&lt;/P&gt;&lt;P&gt;Collaboration&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;sharing.write is on&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;sharing.read is on&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;file_request.write is on&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;file_request.read is on&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;contacts.write is on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Token generation was done with&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Allow public clients (Implicit Grant &amp;amp; PKCE) is Allow&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Access token expiration is No expiration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generate a new token yesterday thinking it could be the issue, but issue remains. I can upload files, files is perfectly stored in dropbox but cannot generate shared link within the application. Also I just test and my username cannot create a shared link. Dropbox page says: "You do not have permissions to create a link for the file" (I just translate it maybe is not the exact message in English)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:45:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495758#M24723</guid>
      <dc:creator>softwaremedicalshare</dc:creator>
      <dc:date>2021-02-11T15:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA API Shared Link Access Denied</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495764#M24724</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1410685"&gt;@softwaremedicalshare&lt;/a&gt;&amp;nbsp;It looks like our comments just crossed. Be sure to check out &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495757/highlight/true#M24722" target="_self"&gt;my message here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:47:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495764#M24724</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-02-11T15:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA API Shared Link Access Denied</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495779#M24728</link>
      <description>&lt;P&gt;Hi @Greg-DB,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue you address sound more like a "banned link" i mean, something that existed before and suddenly it is banned for the reasons described in the link provided. The issue right now is that I cannot create new links for new files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks anyway&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 16:17:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495779#M24728</guid>
      <dc:creator>softwaremedicalshare</dc:creator>
      <dc:date>2021-02-11T16:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA API Shared Link Access Denied</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495780#M24729</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1410685"&gt;@softwaremedicalshare&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Just for clarity: When I mentioned "and on token generation", the meaning was for queried permissions there, not eventual token break!&lt;/P&gt;&lt;P&gt;When you have created your application you have declared the possible scopes this application can have access to. Seems your declaration covers "sharing.write" permission needed by &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_blank" rel="noopener"&gt;2/sharing/create_shared_link_with_settings&lt;/A&gt;. On token generation you should select a subset of all scopes of your application (could be all available/selected for the application or less). If you have forgot some scope here, even selected for the application, it'll not be available for the application instances! That's why just "generate a new token" in such a case (if it is) wouldn't solve anything. If missing (something which I suspected), you should add it to the list of scopes in your application code (or configuration). That's it.&lt;/P&gt;&lt;P&gt;By the way, it's most likely &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;'s proposal be the real issue.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 16:17:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495780#M24729</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2021-02-11T16:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA API Shared Link Access Denied</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495782#M24730</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1410685"&gt;@softwaremedicalshare&lt;/a&gt;&amp;nbsp;The link ban I referred to does apply to the functionality you're trying to use. I&amp;nbsp;recommend &lt;A href="https://www.dropbox.com/support" target="_self"&gt;contacting support&lt;/A&gt; if you have questions about the status of your account.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 16:21:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495782#M24730</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-02-11T16:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA API Shared Link Access Denied</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495783#M24731</link>
      <description>&lt;P&gt;I just finish a phone call with support. it was not issue with banning or permissions, it was a downloading "bandwidth" issue of the account (not a file) so I think dropbox api should&amp;nbsp; address in better way the problem issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 16:26:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/JAVA-API-Shared-Link-Access-Denied/m-p/495783#M24731</guid>
      <dc:creator>softwaremedicalshare</dc:creator>
      <dc:date>2021-02-11T16:26:36Z</dc:date>
    </item>
  </channel>
</rss>

