The Community is undergoing a major upgrade. Find out more, ask us questions or share your thoughts here.

Forum Discussion

lr00429's avatar
lr00429
Explorer | Level 4
3 years ago

Content Hash Searchv2

Hello,

I am working on an app that allows users to upload files using the dropbox api. There is a requirement to check duplicates per folder for this I am searching for the file name that they are uploading for the folder that they are uploading to, if I get a match I can create the content hash and comparing to what I get from search. However, I noticed that SearchV2 returns the same content hash no matter what the file is. SearchV1 does not have this issue. I am currently calling get metadata on match of name because I do not want to user searchV1 but would love to get this fixed so I don't have to make an additional callout.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Thanks for the report. I just tried this out though, and I'm not seeing the behavior you describe. Can you share the particular call and output you're making so we can take a look? Be sure to redact the access token and any private information though. Feel free to open an API ticket if you'd prefer to share privately. Thanks in advance!

    • lr00429's avatar
      lr00429
      Explorer | Level 4

      Hey Greg,

       

      Sure thing, here is a few screenshots. 1. being the content_hash example file (https://www.dropbox.com/developers/reference/content-hash) showing the correct hash in searchV1. Then a screenshot of search V2 with the same file showing a different hash. Lastly, a completely different installation file showing the same hash using searchv2. We experience this with all searchV2 queries where we get the same hash for all files. 

       

       

      Thanks!

         

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        Thanks, that's helpful. We'll look into it and I'll follow up here once I have any update on this for you.

  • gavinho's avatar
    gavinho
    Explorer | Level 3

    I can confirm that this issue still persists with the Python SDK. Greg-DB - is there any update on your end?

    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff

      gavinho This is still open with engineering. I'll check in with them on this.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    This should be fixed now. Thanks again for the report!