-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[WEB-4521] fix: attachments #7665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughUpdates presigned URL generation across asset download endpoints to include disposition="attachment" and a filename (derived from asset attributes with UUID fallback). No public API signatures changed; modifications are internal to calls generating presigned URLs for user, project, static, workspace, and project download routes. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor C as Client
participant API as API (asset v2)
participant ST as Storage (S3)
C->>API: GET /assets/.../download
API->>API: Lookup asset, derive filename
API->>ST: generate_presigned_url(object_key, disposition="attachment", filename)
ST-->>API: Presigned URL
API-->>C: 302 Redirect / JSON with URL
Note right of C: Browser downloads file with provided filename
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Pull Request Linked with Plane Work Items
Comment Automatically Generated by Plane |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (1)
apps/api/plane/app/views/asset/v2.py (1)
444-448: Verify no inline asset rendering is broken by forcing attachment
Automated search found no frontend calls to these/api/.../assetsendpoints; manually confirm they aren’t used for inline images (avatars, covers, logos). If they are, makedispositionconditional onasset.entity_type.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
apps/api/plane/app/views/asset/v2.py(2 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
apps/api/plane/app/views/asset/v2.py (1)
apps/api/plane/settings/storage.py (1)
generate_presigned_url(114-140)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Analyze (javascript)
Description
This PR will fix the issue of missing file extensions on file attachments
Type of Change
Summary by CodeRabbit