Skip to content

BUG/MINOR: spec: use string type for storage GET file responses#139

Open
jmdelafe wants to merge 1 commit intohaproxytech:masterfrom
jmdelafe:storage-get-response-type-file-tempfile-leak
Open

BUG/MINOR: spec: use string type for storage GET file responses#139
jmdelafe wants to merge 1 commit intohaproxytech:masterfrom
jmdelafe:storage-get-response-type-file-tempfile-leak

Conversation

@jmdelafe
Copy link
Copy Markdown
Contributor

Three storage GET endpoints (getOneStorageMap, getOneStorageGeneralFile, getOneStorageSSLCrtListFile) use schema: type: file in their responses. This causes generated clients (e.g. Go/OpenAPI Generator) to create temporary files on disk for every response, which are never cleaned up.

This changes the response schema to type: string for these three endpoints. Request-side type: file parameters (uploads) are not changed.

Fixes #138

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.

specs: type: file responses cause temp file leaks

1 participant