Skip to content

Fix SlackZipFileIF deserializing as SlackGdocFile - #471

Merged
VictorHLi404 merged 2 commits into
HubSpot:masterfrom
gilanisaeed:fix-zip-file-deserialize-typo
Aug 25, 2026
Merged

VictorHLi404 merged 2 commits into
HubSpot:masterfrom
gilanisaeed:fix-zip-file-deserialize-typo

Conversation

@gilanisaeed

Copy link
Copy Markdown

SlackZipFileIF's @JsonDeserialize annotation pointed at SlackGdocFile.class instead of SlackZipFile.class (copy-paste slip when the zip filetype was added). As a result, JSON deserialized through the SlackZipFileIF interface produced SlackGdocFile instances, so instanceof SlackZipFile checks failed.

This changes the annotation to SlackZipFile.class, matching every other file type in the package. Verified this was the only remaining mismatch across the *IF.java files (the equivalent typo in SlackGdocFileIF was already fixed in ddccb6d).

@VictorHLi404

Copy link
Copy Markdown
Contributor

@gilanisaeed Change looks good, but can you validate by adding a test inside SlackFileDeserializerTest for the ZIP case? A test fixture can be added in slack-base/src/test/resources

@VictorHLi404 VictorHLi404 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@VictorHLi404
VictorHLi404 merged commit 7f8e6ec into HubSpot:master Aug 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants