Skip to main content

CloudinaryDotNet 1.6 bug

Comments

2 comments

  • Shirly Manor

    Hi,

    In order to provide better feedback, can you please open a support ticket with your cloud name and the string that you sign?

    Here is a sample code that I create. so if you can share your code it would be great!

    https://dotnetfiddle.net/qfnrra

    Looking forward to your ticket,

    0
  • Gabe

    Hi Shirly, I figured out the issue, and since I have a solution I'm not going to submit a ticket because I'm in a crunch to get a lot of work done.  The problem is that the method public string SignParameters(IDictionary<string, object> parameters) in https://github.com/cloudinary/CloudinaryDotNet/blob/master/Shared/ApiShared.cs doesn't sort the dictionary before making them into a query string and hashing it. 

    The unit test that covers this function public void TestSign() in https://github.com/cloudinary/CloudinaryDotNet/blob/master/Shared.Tests/ApiTest.cs uses a SortedDictionary, so it passes.  Unfortunately the fact that sorting must be performed before calling the function is undocumented.

    0

Post is closed for comments.