Skip to content
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

Allow /api/v1/issues to have multiple screenshots #1208

Merged
merged 2 commits into from
Apr 7, 2023

Conversation

letsintegreat
Copy link
Contributor

Required for OWASP-BLT/BLT-Flutter#290

/api/v1/issues has no logic to allow POST requests to have multiple screenshots. Therefore, only one screenshot could be linked with an issue via /api/v1/issues

I have updated the logic by creating an instance of IssueScreenshot for every screenshot sent to /api/v1/issues to fix the above mentioned behavior.

PS. merging this PR will break the reporting issue feature in the app, because now image files are to have screenshots field rather than screenshot. However, I am ready with the updated code for the app, as soon as this PR is merged, I'll raise one in BLT-Flutter

@fredfalcon fredfalcon added this pull request to the merge queue Apr 7, 2023
@fredfalcon
Copy link
Contributor

Nice one. Thank you

Merged via the queue into OWASP-BLT:main with commit eb0403a Apr 7, 2023
2 checks passed
@letsintegreat letsintegreat deleted the multiple-screenshots branch April 7, 2023 05:21
DonnieBLT pushed a commit that referenced this pull request Aug 12, 2023
* Allow /api/v1/issues to have multiple screenshots

* Fix raising error
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.

None yet

2 participants