Recently, our integration with Trello started to remove cards' cover images each time we call PUT /card to update something on a card (usually due dates, description, or moving a card around)
After investigating the code, I found out that there's a "cover": {} field persisted in the call's body. Meaning there's an empty object for a cover. For many years, this empty object was ignored, but something changed, and now it is considered an erosion of the cover.
Can someone confirm this? And is it a bug or a feature?
Hello @David Tavdi
When updating a card, setting the value of the cover object to nothing has always removed the cover. However, if your JSON was:
{
"cover": {}
}
that is invalid JSON (as there's nothing declared inside the second set) so the parser has probably just been rejecting (ignoring) it all this time.
I assume the parser has been updated to interpret that JSON as:
{
"cover": ""
}
which is valid JSON and sets the cover as empty (removes it), as expected
So in reality, it was your JSON that contained the bug and the interpreter is now just doing a more 'correct' interpretation of what your JSON was trying to say, and that change could be considered a feature.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.