André Roth
dd85493b1a
publish: check if storage exists
2026-06-18 21:34:55 +02:00
André Roth
c2b0379e91
docs(dput): add missing @Router swagger annotation to apiFilesUploadOne
2026-06-17 21:29:06 +02:00
André Roth
84a5c20abe
fix(dput): call syncFile to surface ENOSPC on upload
2026-06-17 21:29:06 +02:00
André Roth
d3a613c335
fix(dput): replace manual read loop with io.Copy
2026-06-17 21:29:06 +02:00
André Roth
4e4ca0f38e
fix(dput): validate :file path param to prevent directory traversal
2026-06-17 21:29:06 +02:00
Benoît Allard
12390f102e
Add API endpoint suitable for dput.
2026-06-17 21:29:06 +02:00
Brian Witt
1e7c15b69b
error on out of space
2026-01-11 14:26:56 +01:00
André Roth
f7057a9517
go1.24: fix lint, unit and system tests
...
- development env: base on debian trixie with go1.24
- lint: run with default config
- fix lint errors
- fix unit tests
- fix system test
2025-04-26 13:29:50 +02:00
André Roth
abfad37640
swagger: cleanup files doc
2024-12-11 10:40:44 +01:00
iofq
d5571c41c7
Update files api docs
2024-12-11 10:40:44 +01:00
André Roth
8f8de4bd29
update
2024-12-11 10:40:44 +01:00
André Roth
ba86851d07
add api documentation stubs
2024-12-11 10:40:43 +01:00
André Roth
cefc09a41b
more sanitize
2024-10-11 14:11:09 +02:00
André Roth
57639c4adf
Sanitize path api params
...
- fix path traversal complains by CodeQL
2024-10-11 12:56:08 +02:00
André Roth
fb538333fa
add swagger documentation
2024-10-01 01:07:09 +02:00
Ryan Gonzalez
8ab8398c50
Use github.com/saracen/walker for file walk operations
...
In some local tests w/ a slowed down filesystem, this massively cut down
on the time to clean up a repository by ~3x, bringing a total 'publish
update' time from ~16s to ~13s.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-04-24 16:46:16 +02:00
André Roth
72a7780054
fix golint complaints
2024-03-06 06:21:36 +01:00
Markus Muellner
9c6f896666
add endpoint for listing repos while serving in api mode and add more metrics
2023-03-22 17:22:54 +01:00
Markus Muellner
ecc41f0c0f
replace AbortWithError calls by custom function that sets the content type correctly
2023-01-23 10:42:57 +01:00
Andrey Smirnov
3756db2491
Upgrade gin-gonic to latest master, fix compatibility issues
2017-09-28 00:33:59 +03:00
Andrey Smirnov
516dd7b044
Switch to gometalinter
...
Only small amount of required checks is enabled,
plan is to enable more linters as issues are fixed in the code.
2017-03-23 01:51:08 +03:00
Andrey Smirnov
7efd0de67c
Fix shadowing of variable. #116
2014-10-23 00:57:27 +04:00
Andrey Smirnov
9c834f410c
API for file upload. #116
2014-10-16 00:04:50 +04:00
Andrey Smirnov
d6c3389d7c
First steps towards /files/ API (file upload). #116
2014-10-14 00:47:17 +04:00