<?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: Behavior: create_folder do not share a subfolder, if path_lower contain chars like ' . And happy in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200027#M9346</link>
    <description>&lt;PRE&gt;$data_s = stripslashes($data_s);
$data = '{"path":"' . $data_s .'"}';&lt;/PRE&gt;&lt;P&gt;$data now contain the follow:&lt;/P&gt;&lt;PRE&gt;{"path":"/dfgdfdf'''fgff/gdgdfgdg'''gfff"}&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;{"path":"/dfgdfdf'''fgff/mysubfolder"}&lt;/PRE&gt;&lt;P&gt;$data is so passed to CURLOPT_POSTFIELD&lt;/P&gt;&lt;P&gt;while&amp;nbsp; CURLOPT_HEADER contain :&lt;/P&gt;&lt;PRE&gt;Array ( [0] =&amp;gt; Authorization: Bearer hsQbEz.................lhyP_EsRPf..........d1XkgMdJ.........fdgdgf [1] =&amp;gt; Content-type: application/json )&lt;/PRE&gt;&lt;P&gt;Yes i know you can imagine the above. But in effect it is just passed simply in this way. The sub-folder willbe created, but not shared.&lt;/P&gt;&lt;P&gt;The same happen also if the subfolder to be created inside the folder&lt;/P&gt;&lt;PRE&gt;/dfgdfdf'''fgff&lt;/PRE&gt;&lt;P&gt;do not contain chars&amp;nbsp; like '.&lt;/P&gt;&lt;P&gt;I could name it also &lt;EM&gt;aaaaaaa: &lt;/EM&gt;will be created, but if it is subfolder of&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/dfgdfdf'''fgff&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;won't be shared.&lt;/P&gt;&lt;P&gt;I would like to post entire code, but as it is on the way to be released as part of a plugin in these days, maybe is possible to post it somewhere else?&lt;/P&gt;</description>
    <pubDate>Sat, 31 Dec 2016 12:22:38 GMT</pubDate>
    <dc:creator>axew3</dc:creator>
    <dc:date>2016-12-31T12:22:38Z</dc:date>
    <item>
      <title>Behavior: create_folder do not share a subfolder, if path_lower contain chars like ' . And happy NY!</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200019#M9343</link>
      <description>&lt;P&gt;Just 1 hour after 00 of the last day on 2016 ... Happy New Year to all! Finally 2017 is coming!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My last 2016 problem &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&amp;nbsp; ... maybe as always due to the fact i've not well read/understand something ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that calling&amp;nbsp;&lt;STRONG&gt;create_folder&lt;/STRONG&gt; to create a folder on &lt;STRONG&gt;ROOT&lt;/STRONG&gt; naming the folder like this, with the ' char inside:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/my''''folder&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;all work as expected. &lt;STRONG&gt;The folder is created, and shared immediately&lt;/STRONG&gt; correctly.&lt;/P&gt;&lt;P&gt;But if after i navigate inside the created folder &lt;EM&gt;my''folder,&lt;/EM&gt; and i try to curl, to create inside it another folder, naming it with or without a char ' inside, so for example, we will have something like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/my''''folder&lt;/EM&gt;/mysec''ond''folder&lt;/P&gt;&lt;P&gt;or &lt;EM&gt;/my''''folder/mysecondfolder&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The folder is correctly created in dropbox. &lt;STRONG&gt;But will not result as linked/shared immediately.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;some conflict that i should know exist, or why this behavior?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[EDITED]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:27:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200019#M9343</guid>
      <dc:creator>axew3</dc:creator>
      <dc:date>2019-05-29T09:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Behavior: create_folder do not share a subfolder, if path_lower contain chars like ' . And happy</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200021#M9345</link>
      <description>I'm not sure I follow. Can you share the code and output showing this? Thanks in advance!</description>
      <pubDate>Sat, 31 Dec 2016 01:36:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200021#M9345</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-12-31T01:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Behavior: create_folder do not share a subfolder, if path_lower contain chars like ' . And happy</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200027#M9346</link>
      <description>&lt;PRE&gt;$data_s = stripslashes($data_s);
$data = '{"path":"' . $data_s .'"}';&lt;/PRE&gt;&lt;P&gt;$data now contain the follow:&lt;/P&gt;&lt;PRE&gt;{"path":"/dfgdfdf'''fgff/gdgdfgdg'''gfff"}&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;{"path":"/dfgdfdf'''fgff/mysubfolder"}&lt;/PRE&gt;&lt;P&gt;$data is so passed to CURLOPT_POSTFIELD&lt;/P&gt;&lt;P&gt;while&amp;nbsp; CURLOPT_HEADER contain :&lt;/P&gt;&lt;PRE&gt;Array ( [0] =&amp;gt; Authorization: Bearer hsQbEz.................lhyP_EsRPf..........d1XkgMdJ.........fdgdgf [1] =&amp;gt; Content-type: application/json )&lt;/PRE&gt;&lt;P&gt;Yes i know you can imagine the above. But in effect it is just passed simply in this way. The sub-folder willbe created, but not shared.&lt;/P&gt;&lt;P&gt;The same happen also if the subfolder to be created inside the folder&lt;/P&gt;&lt;PRE&gt;/dfgdfdf'''fgff&lt;/PRE&gt;&lt;P&gt;do not contain chars&amp;nbsp; like '.&lt;/P&gt;&lt;P&gt;I could name it also &lt;EM&gt;aaaaaaa: &lt;/EM&gt;will be created, but if it is subfolder of&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/dfgdfdf'''fgff&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;won't be shared.&lt;/P&gt;&lt;P&gt;I would like to post entire code, but as it is on the way to be released as part of a plugin in these days, maybe is possible to post it somewhere else?&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2016 12:22:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200027#M9346</guid>
      <dc:creator>axew3</dc:creator>
      <dc:date>2016-12-31T12:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Behavior: create_folder do not share a subfolder, if path_lower contain chars like ' . And happy</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200029#M9347</link>
      <description>p.s is possible in case to patch this, informing user that the parent ROOT folder contain chars that not allow to create after inside him, another folder and have it shared immediately. Little strange but easy to achieve. Just thinking on how to patch in case this in the while. And will change it when resolved, if it is to be resolved in case.</description>
      <pubDate>Sat, 31 Dec 2016 08:57:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200029#M9347</guid>
      <dc:creator>axew3</dc:creator>
      <dc:date>2016-12-31T08:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Behavior: create_folder do not share a subfolder, if path_lower contain chars like ' . And happy</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200060#M9353</link>
      <description>Apologies, this is still hard to follow without seeing the actual API call code, that is, seeing what API endpoints you're calling, and seeing the output you're getting, along with an explanation of the output you're expecting to get.&lt;BR /&gt;&lt;BR /&gt;For example, are you only calling the /files/create_folder endpoint? That endpoint only creates folders. It doesn't share them automatically.&lt;BR /&gt;&lt;BR /&gt;If you'd rather not post publicly, you can open a ticket here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;https://www.dropbox.com/developers/contact&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please include:&lt;BR /&gt;&lt;BR /&gt;    - the name of the API app&lt;BR /&gt;    - the full text of the output/behavior you are getting&lt;BR /&gt;    - the output/behavior you expect to get&lt;BR /&gt;    - the relevant code</description>
      <pubDate>Sat, 31 Dec 2016 16:39:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200060#M9353</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-12-31T16:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Behavior: create_folder do not share a subfolder, if path_lower contain chars like ' . And happy</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200109#M9354</link>
      <description>&lt;P&gt;Well what shame .... how i can say ... ah yes! this is my stupid mess ... i had a call, separated, to create_shared_link_with_settings that i've forget to check for proper sanitization ... thus the code was failing.&lt;BR /&gt;Some party more in this time maybe, between christmas and the new year ... you can understand i hope &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;BR /&gt;&lt;BR /&gt;By the way, the strange i will try understand, that maybe still result strange to me is: &lt;STRONG&gt;if the folder was on root, by the way it was created and shared, also if not escaped.&lt;/STRONG&gt;&lt;BR /&gt;While the sequential subfolder not.&lt;BR /&gt;So i'll return over this, and let know in case, as well providing all the code, as the plugin will be released if i still have not detect how this was happening and reporting the reason.&lt;BR /&gt;&lt;BR /&gt;In the while, Thank you Greg. Wish you a Nice 2017!&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2017 14:00:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Behavior-create-folder-do-not-share-a-subfolder-if-path-lower/m-p/200109#M9354</guid>
      <dc:creator>axew3</dc:creator>
      <dc:date>2017-01-01T14:00:19Z</dc:date>
    </item>
  </channel>
</rss>

