Commit Graph

74 Commits

Author SHA1 Message Date
Jian Qiu
f748fa2899 feature: user expired_at attribute support (#23723)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-11-14 10:52:58 +08:00
屈轩
eb82b9d9ca fix: upgrade go 1.24 (#23241) 2025-09-05 18:26:33 +08:00
Jian Qiu
be7bc9335c fix: use goid to identify differnt goroutine (#22722)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-06-19 14:50:39 +08:00
Jian Qiu
e7d15aca80 fix: update vendor 3.11 20240917, upgrade go to 1.21 (#21256)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-18 20:48:31 +08:00
Jian Qiu
5b8ee19094 fix: normalize sftp errors (#20703)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-03 21:11:15 +08:00
ioito
612d4b17b4 fix(common): show request time with rfc3339 2023-04-11 20:54:43 +08:00
ioito
6f0128bed3 fix(common): log time zone and format 2023-04-11 17:23:21 +08:00
Qiu Jian
6187f10c07 fix: better prompt info for user failed auth due to invalid idp status 2023-03-01 01:30:18 +08:00
Jian Qiu
21716cefb5 fix: remove mutual dependency of cloudmux on onecloud (#15621)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-27 01:21:26 +08:00
Jian Qiu
ec90862764 fix: remove dependency of appctx on i18n (#15615)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-23 23:44:52 +08:00
Zexi Li
eeb076c45d Merge pull request #13863 from ioito/hotfix/qx-service-err
fix(apigateway): convert net err to service error
2022-04-03 10:54:00 +08:00
ioito
b2c4aafe46 fix(apigateway): convert net err to service error 2022-04-01 15:39:23 +08:00
ioito
142ebcac66 fix(region): show account lake of permission 2022-04-01 11:40:58 +08:00
Qu Xuan
07f6771f26 fix(region): account aksk error 2021-07-21 18:57:35 +08:00
rainzm
1c325f747d feat(keystone): more specific error return during authentication
add error class UserNotFound, UserLocked, UserDisabled and WrongPassword
2021-01-28 10:07:36 +08:00
rainzm
c5223f9131 feat(keystone,apigateway): return a readable message when the user is locked or disabled 2021-01-19 17:32:21 +08:00
Qu Xuan
06207c4a37 fix(region): restore password validate condition 2020-12-08 17:43:36 +08:00
Qu Xuan
c9ca2c8755 fix(region): validate invalid character for password 2020-12-07 10:07:14 +08:00
Yousong Zhou
1c1dcbde45 i18n: move out from httperrors pkg 2020-09-21 10:12:57 +08:00
Zexi Li
0bcaeda09d Merge pull request #7910 from rainzm/notify/ti
Feat & Fix of Notify
2020-09-16 11:32:41 +08:00
Qiu Jian
5a91ae8863 fix: omit empty fail reason 2020-09-16 01:53:29 +08:00
rainzm
4b49bcec8f feat: add WithCtx version to notifyclient function 2020-09-14 20:31:17 +08:00
Yousong Zhou
776ef9b8b5 httperrors: HTTPError: use Error type 2020-09-07 18:51:29 +08:00
Yousong Zhou
4d7eee4f2b httperrors: add Error type 2020-09-07 18:18:39 +08:00
Yousong Zhou
b314b66b71 Bugfix/yousong i18n (#7712)
* httperrors: support setting lang with X-Yunion-Lang

* mcclient: session: set lang
2020-09-01 19:11:41 +08:00
Yousong Zhou
da64e4a267 httperrors: use existing details if id is not present (#7710) 2020-09-01 18:32:37 +08:00
Yousong Zhou
c2bca8ab39 Feature/yousong text (#7487)
* notify: log with context info

* region: guests: log with context info

* region: hosts: log with context info

* region: misc: remove redundant log

* region: skus: use NewInternalServerError instead of NewGeneralError

* appsrv: dispatcher: preserve text id

* appsrv: dispatcher: remove commented-out code

* cloudcommon: db_dispatcher: note errors that won't be translated

* cloudcommon: db: rbac: preserve text id

* cloudcommon: caller: preserve text id

* treewide: fix fmt string

* region: guest_actions: preserve text id

* region: guest_actions: fix fmt string

* region: usages: fix fmt string

* mcclient: hosts: remove redundant return value

* cloudcommon: fetch: preserve text id

* region: guest_template: preserve text id

* cloudcommon: db: db_dispatcher: preserve text id

* region: guest_actions: preserve text id

* httperrors: add funcs for wrap lang tag into context

* vendor: golang.org/x/text

* httperrors: error with context

* httperrors: HTTPError

* treewide: fix typo

* treewide: use en in source code

* locales: initial version
2020-08-25 15:26:31 +08:00
Qu Xuan
03a3dfcd73 fix: 优化安全组同步逻辑 2020-06-08 14:10:38 +08:00
Qu Xuan
c6a474e036 fix: support azure policy 2020-04-11 15:43:06 +08:00
Qiu Jian
faa507b3ad feature: keystone lock user returns ErrTooManyAttempts 2020-04-01 19:50:25 +08:00
Qiu Jian
09bc348c66 feature: recode cloudcommon policy default/resource codes 2020-03-30 19:35:55 +08:00
Yousong Zhou
a6b8477785 httperrors: fix passing "params" argument 2020-03-23 16:40:31 +08:00
Qiu Jian
e11ceb4c4b feature: allow list/export/sort/distict metadata 2020-03-13 13:12:45 +08:00
yunion-ci-robot
ab5d281972 Merge pull request #4128 from swordqiu/feature/qj-object-store-support-http-meta-header
feature: object storage support set/get http headers
2019-12-17 13:59:03 +08:00
Qiu Jian
bdfa99b0b6 fix: server change config failed due to quota recode 2019-12-16 21:03:52 +08:00
Qiu Jian
33a736a113 misc imporvements 2019-12-14 19:22:24 +08:00
Qiu Jian
afbafb1e29 feature: metric data collector for aliyun&huawei 2019-11-27 03:14:14 +08:00
Qiu Jian
09f91f306a update vendor 2019-11-11 17:05:21 +08:00
Qiu Jian
53c0d3b29f fix: recode error handling to make conform with error handling standard 2019-11-11 10:55:01 +08:00
Qiu Jian
77c4a53059 feature: 1. ak/sk auth support 2. a full feature s3gateway works with
Cyberduck

注意:以下两个文件的修改还未被官方合并,所以下次make
mod的时候会被覆盖,需要注意checkout恢复:

vendor/github.com/Azure/azure-sdk-for-go/storage/blockblob.go
vendor/github.com/tencentyun/cos-go-sdk-v5/object_part.go
2019-08-30 00:12:39 +08:00
Qiu Jian
c938da9edd fix: adjust default policies for system resources 2019-08-05 18:56:05 +08:00
Yousong Zhou
1416a1fe98 httperrors: 支持从msgTmpl转换为带%s的msgFmt 2019-06-28 15:09:13 +00:00
Jian Qiu
1d7fd20df4 misc bugfix (#1296) 2019-06-19 02:45:52 +08:00
TangBin
0cc28b4eb0 httperror-set-header-fix 2019-06-04 11:09:41 +08:00
TangBin
f2ceea4fe8 parameter create fix && itsm add quick complete method 2019-06-03 19:00:10 +08:00
Qiu Jian
dd13a991c0 fix: misc bug fixes. add usage and event log API 2019-05-17 13:54:29 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Yousong Zhou
8fe4f2ec98 treewide: group imports with goimports
./goimports -w -local yunion.io/x/onecloud/ -corp yunion.io/x/ $GOPATH/src/yunion.io/x/onecloud/{cmd,pkg}
2019-03-13 10:46:12 +00:00
屈轩
58ee33c3f0 修正一些错误信息描述 2019-03-07 16:48:15 +08:00
Qiu Jian
2e587bd6ab glance重构 update 1
Conflicts:
	Gopkg.lock
	pkg/appsrv/appsrv.go
	pkg/cloudcommon/options.go
	pkg/compute/models/hosts.go
	pkg/compute/models/quotas.go
	pkg/compute/service/service.go
	pkg/mcclient/mcclient.go
2018-12-26 22:52:13 +08:00