Danila Fominykh
8974d27ba3
refactoring in metadata module, better readability
...
shorter function calls in arch service
fix - request now ends if unable to decode package signature from hex
fix - now package search continues to previous versions in package file for required architecture not found for current version
2023-10-02 19:12:06 -03:00
Danila Fominykh
f515f6ee7c
removed unnecessary filename from composite key
2023-10-02 14:33:37 -03:00
Danila Fominykh
ba92fc54b7
pass context to package service methods
2023-09-28 17:25:22 -03:00
Danila Fominykh
a1ee2a0a96
Merge branch 'main' into pacman-packages
2023-09-28 17:14:23 -03:00
Danila Fominykh
c09da2a9e1
removed functionality related to automatic source code repository connection
2023-09-28 17:13:40 -03:00
Danila Fominykh
0dd3db2280
fixed user in package upload operation
2023-09-25 18:54:27 -03:00
Danila Fominykh
4656b3b958
replaced bytes.Buffer with packages.HashedBuffer to return working io.ReadSeeker implementation
2023-09-25 18:42:48 -03:00
JakobDev
7047df36d4
Another round of db.DefaultContext
refactor ( #27103 )
...
Part of #27065
---------
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-09-25 13:17:37 +00:00
Danila Fominykh
54fd84d83f
function to get package file property by composite key, refactoring function creating pacman database
2023-09-24 13:32:53 -03:00
Danila Fominykh
60052811ad
fix request permission access position for push/remove handlers
2023-09-23 18:05:36 -03:00
Danila Fominykh
a4d878c670
Merge branch 'go-gitea:main' into pacman-packages
2023-09-17 22:31:30 -03:00
KN4CK3R
d513628db9
Allow empty Conan files ( #27092 )
...
Fixes #27090
Looks like the Conan upload process has changed since last year. The
empty uploads don't occur anymore.
2023-09-15 23:14:36 +00:00
JakobDev
c548dde205
More refactoring of db.DefaultContext
( #27083 )
...
Next step of #27065
2023-09-15 06:13:19 +00:00
Danila Fominykh
f914c933a0
Merge branch 'go-gitea:main' into pacman-packages
2023-09-07 14:53:13 -03:00
CaiCandong
a78c2eae24
Replace util.SliceXxx
with slices.Xxx
( #26958 )
2023-09-07 09:37:47 +00:00
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