Folders created multiple times with same name

  • 3
  • Problem
  • Updated 5 months ago
Hello,

We are using your API with PHP to upload customers files.

We noticed that folders with the same name were created several times.



Could you tell me why it is happening? We only have that for a few customers.

Thank you
Photo of Florian Desneux

Florian Desneux

  • 19 Posts
  • 2 Reply Likes

Posted 5 months ago

  • 3
Photo of Dale Smith

Dale Smith, Employee

  • 122 Posts
  • 18 Reply Likes
Hi Florian,

Generally this is not allowed by the API. It may be a result of a bug somewhere. Could you please provide some more information:

1) What exact API calls are you making? Create folder only, or are you performing copies or moves? Is your folder creation part of folder templates?
2) Do the accounts seeing this issue have versioning turned on?
3) In the picture above, is that a shared folder or a personal folder containing the duplicates?

Thank you in advance. I will continue research to see if I can find anything in the meantime.

Dale Smith
Photo of Florian Desneux

Florian Desneux

  • 19 Posts
  • 2 Reply Likes
Hello,

Do you have any news on this issue?
Photo of Dale Smith

Dale Smith, Employee

  • 122 Posts
  • 18 Reply Likes
Hi Florian,

I have been trying to reproduce this, but unsuccessfully. Could you give us a couple of the Ids for the 2017 folders? I'd like to take a look in the database and see if I can tell something from the metadata on the folders.

Thanks,
Dale Smith
Photo of Florian Desneux

Florian Desneux

  • 19 Posts
  • 2 Reply Likes
Thank you for your reply. Here is the list of the ids of the folders:
fo34c137-01a8-4b53-9535-b76af05dbe0c
fo534b3d-052d-4a05-a818-5bd6fb3db709
fo63343a-9926-4421-a5e2-a2105cad3fe1
foad9f00-6207-48d1-97ca-46f51faffbc1

Thank you
Photo of Dale Smith

Dale Smith, Employee

  • 122 Posts
  • 18 Reply Likes
Hi Florian,

It looks like all of these folders were created in July of last year. Have you seen this with any recently created folders? I'm trying to look through our commits, but I vaguely remember there being issues where folders with the same name could be created, but I believe they have all been fixed. 

Nothing else about the meta data for these folders strikes me as odd. 3 out of the four creation times were all within 4 minutes, the last being a day previous. All have same owner/creator. The stream id for each is different, which is why with versioning turned on there is no collapsing into one folder.

Please let us know if you are able to repro or find an example that was recent, otherwise my guess is, the duplicates were due to bugs that have since been fixed.

Thanks,
Dale Smith
Photo of Florian Desneux

Florian Desneux

  • 19 Posts
  • 2 Reply Likes
Hello,

We found a lot of duplicate in this folder fo3d0edf-a26b-404b-a77d-badc3f668aae. The child-folders were created in 2018.

Could you have a look please?

Thank you
Photo of Florian Desneux

Florian Desneux

  • 19 Posts
  • 2 Reply Likes
Hi,

Can I have any update on my last reply?

Thank you
Photo of Dale Smith

Dale Smith, Employee

  • 122 Posts
  • 18 Reply Likes
Florian, do you have the ids of the children that were duplicated?
Photo of Florian Desneux

Florian Desneux

  • 19 Posts
  • 2 Reply Likes
Yes :)

fo26c210-e16f-48f4-9e1d-03b2d247a4fb
 -  fo4b431c-f3dc-4844-abcf-bedea506c436
 -  fo9bcc91-a059-40aa-a6e6-29fa8702fe51
 -  fodcc220-32e3-470f-9da9-e21fc1e8b361

fo46a379-eb7b-4cf2-8da6-30e79aed9750

fo144c15-a55e-494c-a814-ceb92acdb4cb
fo81f5f2-a52b-44df-b6cd-e318d3180d72
fof87a8b-dd02-4609-92c8-ff9c5dde1ce0

fo17c04f-9399-4d5e-aa11-e842ff22e980
fo2dcc3f-8c7e-414a-bd48-99ad0c60b2d1
fo4ef85c-01f2-4193-bb17-feaea044bcf3
fo81468c-a0ad-4d30-8989-b0ca7b631cb7
fodafd29-18e8-4bee-b8b5-df1f72fca10d
Photo of Florian Desneux

Florian Desneux

  • 19 Posts
  • 2 Reply Likes
Hello,

Did you find anything?

Thanks
Photo of Dale Smith

Dale Smith, Employee

  • 122 Posts
  • 18 Reply Likes
Hi Florian,

When looking at our logs for Folder creates inside that parent folder, I am seeing several thousand Conflict errors each hour between 4 and 10 AM UTC. Does your application have multiple processes trying to accomplish the same thing? So that one thread/machine could be trying to create the same folder as another at the same time? Its a possibility that our conflict check (which is higher in the processing stack) isn't catching the conflict due to timing. For instance one process hits the api trying to create Folder A, passes conflict check, processes and before its committed to the DB, another request to create Folder A comes in, passes Conflict check and starts processing causing both to be saved to the database.

Right now, looking at everything, it's the only reason I could find for this behavior, as nothing stands out for any of these duplicates. I'll bring it up to the team and see what the others think about moving that check lower into the stack to try and reduce this possibility. 

Dale Smith
Photo of Florian Desneux

Florian Desneux

  • 19 Posts
  • 2 Reply Likes
Hello Dale,

Thank you very much for your clear explanation.

We have indeed several different processes that might create folders at the same time.

We are going to run these processes not at the same time.

Let see if it solves the issue ;)

Regards,
Florian
(Edited)