Danila Fominykh
70effa24a1
Merge branch 'go-gitea:main' into pacman-packages
2023-09-05 15:50:13 -03:00
Lunny Xiao
540bf9fa6d
Move notification interface to services layer ( #26915 )
...
Extract from #22266
2023-09-05 18:37:47 +00:00
Danila Fominykh
431dabfc5c
fixed procedure of retrieving package properties for signatures and pacman database file
2023-09-05 14:51:29 -03:00
KN4CK3R
0eebeeec90
Remove Named
interface ( #26913 )
...
`Named` is implemented by every `Method` and future implementations
should implement the method too.
2023-09-05 15:58:30 +00:00
Danila Fominykh
93b1f854c4
Merge branch 'main' into pacman-packages
2023-08-30 19:41:38 -03:00
merlleu
a587d25261
Add auth-required to config.json for Cargo http registry ( #26729 )
...
Cargo registry-auth feature requires config.json to have a property
auth-required set to true in order to send token to all registry
requests.
This is ok for git index because you can manually edit the config.json
file to add the auth-required, but when using sparse
(setting index url to
"sparse+https://git.example.com/api/packages/{owner}/cargo/ "), the
config.json is dynamically rendered, and does not reflect changes to the
config.json file in the repo.
I see two approaches:
- Serve the real config.json file when fetching the config.json on the
cargo service.
- Automatically detect if the registry requires authorization. (This is
what I implemented in this PR).
What the PR does:
- When a cargo index repository is created, on the config.json, set
auth-required to wether or not the repository is private.
- When the cargo/config.json endpoint is called, set auth-required to
wether or not the request was authorized using an API token.
2023-08-28 07:05:39 +00:00
Danila Fominykh
ce01499d8f
removed/corrected some documentation
2023-08-18 18:09:08 +03:00
Danila Fominykh
4a40107755
Merge branch 'main' into pacman-packages
2023-08-14 14:59:23 +03:00
KN4CK3R
ecd51f710b
Fix NuGet search endpoints ( #25613 )
...
Fixes #25564
Fixes #23191
- Api v2 search endpoint should return only the latest version matching
the query
- Api v3 search endpoint should return `take` packages not package
versions
2023-08-14 02:50:55 +00:00
Danila Fominykh
0d08eaa556
reduced amount of logic, removed unnecessary fields
2023-08-08 19:40:54 +03:00
Danila Fominykh
e86bdfcb0e
metadata and signature are stored in package properties instead of object storage
2023-08-08 16:21:17 +03:00
Danila Fominykh
28712bc91e
refactoring
2023-08-04 14:52:36 +03:00
Danila Fominykh
0c7aa7f63e
refactoring
2023-08-03 20:43:13 +03:00
Danila Fominykh
5e4c582976
Merge branch 'main' into pacman-packages
2023-07-30 19:21:13 +03:00
Danila Fominykh
3df8d52fb8
changed pacman database creation mechanics, storing package desc as file in object storage, metadata structure update
2023-07-28 16:32:01 +03:00
Danila Fominykh
8b06f76360
replaced HTTP headers with url params
2023-07-27 13:21:11 +03:00
Danila Fominykh
1e33f61375
Update routers/api/packages/arch/arch.go
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-07-27 12:50:44 +03:00
Danila Fominykh
524a2a01c1
Update routers/api/packages/arch/arch.go
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-07-27 12:35:35 +03:00
Danila Fominykh
7b92529bc4
Update routers/api/packages/arch/arch.go
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-07-27 12:35:17 +03:00
KN4CK3R
2d7fe4cc1e
Fix handling of plenty Nuget package versions ( #26075 )
...
Fixes #25953
- Do not load full version information (v3)
- Add pagination support (v2)
2023-07-26 19:43:21 +00:00
Danila Fominykh
ab1a9a1587
changed context doer to context user, fixed package config setting
2023-07-26 17:26:16 +03:00
silverwind
672b00b542
Merge branch 'main' into pacman-packages
2023-07-25 00:02:26 +02:00
KN4CK3R
6aa30af724
Fix handling of Debian files with trailing slash ( #26087 )
...
Fixes #26022
- Fix handling of files with trailing slash
- Fix handling of duplicate package file errors
- Added test for both
2023-07-24 16:19:44 +02:00
Danila Fominykh
e22a3c7bb1
Merge branch 'main' into pacman-packages
2023-07-24 15:38:58 +03:00
Danila Fominykh
23f1ba193d
replaced base domain variable in metadata with registry host variable in similarly with container registry
2023-07-24 13:33:45 +03:00
delvh
f3d41c61eb
Remove db.DefaultContext
in routers/
and cmd/
( #26076 )
...
Now, the only remaining usages of `models.db.DefaultContext` are in
- `modules`
- `models`
- `services`
2023-07-23 23:47:27 -04:00
Danila Fominykh
597a948e33
replaced custom auth with existing methods
2023-07-23 15:42:52 +03:00
Danila Fominykh
245a54532f
Merge branch 'main' into pacman-packages
2023-07-22 20:34:30 +03:00
wxiaoguang
9b25bfa8f4
Remove redundant "RouteMethods" method ( #26024 )
...
The `RouteMethods` is mainly an alias for `Methods` with different
argument order.
Remove it to keep the "route.go" code clear
2023-07-21 00:43:49 +02:00
Danila Fominykh
faff9d9c57
getting storage object instead of reading bytes
2023-07-17 20:30:36 +03:00
Danila Fominykh
1ea4d48b39
fixed package version owner in metadata update operation
2023-07-17 14:19:54 +03:00
Danila Fominykh
9e7c6ef5e9
updated documentation about metadata update function
2023-07-17 00:03:24 +03:00
Danila Fominykh
1a082903d7
Merge branch 'main' into pacman-packages
2023-07-16 13:09:54 +03:00
KN4CK3R
bd82d8974e
Add support for different Maven POM encoding ( #25873 )
...
Fixes #25853
- Maven POM files aren't always UTF-8 encoded.
- Reject the upload of unparsable POM files
2023-07-14 09:39:15 +00:00
dancheg97
f3841f0777
fixed response status code for metadata update operation
2023-07-12 11:41:20 +03:00
dancheg97
1df0a1d252
fixed file size for mock and scope of time patch
2023-07-09 18:26:01 +03:00
silverwind
2685f1a307
Merge branch 'main' into pacman-packages
2023-07-09 14:27:52 +02:00
KN4CK3R
115f40e433
Test if container blob is accessible before mounting ( #22759 )
...
related #16865
This PR adds an accessibility check before mounting container blobs.
---------
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: silverwind <me@silverwind.io>
2023-07-09 11:24:43 +00:00
dancheg97
364c33b0ad
fixed pacman database creation error for case with multiple architectures and distributions
2023-07-09 11:48:46 +03:00
silverwind
b5db5b89e8
Merge branch 'main' into pacman-packages
2023-07-04 20:43:36 +02:00
silverwind
88f835192d
Replace interface{}
with any
( #25686 )
...
Result of running `perl -p -i -e 's#interface\{\}#any#g' **/*` and `make fmt`.
Basically the same [as golang did](2580d0e08d
).
2023-07-04 18:36:08 +00:00
dancheg97
568c3b12b9
test for package create, get and delete operations
2023-07-04 20:02:32 +03:00
KN4CK3R
c890454769
Add direct serving of package content ( #25543 )
...
Fixes #24723
Direct serving of content aka HTTP redirect is not mentioned in any of
the package registry specs but lots of official registries do that so it
should be supported by the usual clients.
2023-07-03 15:33:28 +02:00
dancheg97
56772de730
corrected package blob structure, pacman database is created on get request automatically from package metadata in database
2023-07-02 23:03:34 +03:00
dancheg97
6d1037d506
db desc file for pacman database is saved in the same space with package
2023-07-01 17:13:21 +03:00
dancheg97
2873debef0
documentation for arch packages, additional signature in arch package upload for better security
2023-06-28 22:12:01 +03:00
dancheg97
749a106d06
updated remove function description
2023-06-25 17:45:16 +03:00
dancheg97
5beeb24684
added method to remove package verified with user's GPG key, removed unnecessary directory creation
2023-06-25 13:15:29 +03:00
dancheg97
c37231189b
corrected package database connection description and documentation reference in UI
2023-06-24 18:08:18 +03:00
dancheg97
e399ce8452
opdated operation pacman database craetion to form or update database file in memory, added download counter related to pkg.tar.zst files
2023-06-24 13:37:33 +03:00