Skip to content

Conversation

@s4kh
Copy link
Contributor

@s4kh s4kh commented Jan 21, 2026

GCOM plugin publish endpoint validates image mimetype against its extension.
Scenario: user uploads an screenshot2.png but the image is actually jpeg then GCOM throws image InvalidArgumentError. Under the hood, it is extracting mime type from content and checking with its extension mimetype.

@s4kh s4kh requested review from a team as code owners January 21, 2026 01:48
@s4kh s4kh requested a review from academo January 21, 2026 01:48
@s4kh s4kh requested review from andresmgot and wbrowne January 21, 2026 01:48
@s4kh s4kh self-assigned this Jan 21, 2026
@s4kh s4kh moved this from 📬 Triage to 🔬 In review in Plugins Platform / Grafana Community Jan 21, 2026
Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

LGTM

@s4kh s4kh merged commit 45b1c83 into main Jan 21, 2026
7 checks passed
@s4kh s4kh deleted the feat-screenshot-validation branch January 21, 2026 13:10
@github-project-automation github-project-automation bot moved this from 🔬 In review to 🚀 Shipped in Plugins Platform / Grafana Community Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🚀 Shipped

Development

Successfully merging this pull request may close these issues.

3 participants