moooofly

Results 45 comments of moooofly

Hi, @rurus9 After some digging, the conclusion as follow: - The login API changed from "/login" into "/c/login" - Some APIs that originally can be used without cookie setting, now...

related to https://github.com/moooofly/harborctl/commit/f4f1c254ef140427dc44e934a6d14b2ef88c56d6

## a sync status diagnosing tool ``` [#1110#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl repository tag get -h This endpoint aims to retrieve a tag's meta info from a relevant repository. NOTE: - If deployed...

## a password reset tool ``` [#347#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl user password -h This endpoint is for user to update password. NOTE: - Users with the admin role can change any user's...

UPDATE: - Based on my test result, this API can work as expect at Harbor v1.5.0-d59c257e. - One thing should pay attention to is that it triggers replication action at...

## another issue if you call this API with an irrelevant key/value data in content body, you will see ![image](https://user-images.githubusercontent.com/7439290/48146499-16f54000-e2f0-11e8-93f2-47f834e8bb08.png) ![image](https://user-images.githubusercontent.com/7439290/48146535-2bd1d380-e2f0-11e8-9429-8d9938191f86.png) the response code should be more meaningful.

## another test ``` [#625#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl label update -i 33 -n tttttx -d "xxxx" -c "#F52F52" ==> PUT https://localhost/api/labels/33

## a wired case by swagger UI create a global label by swagger UI ![image](https://user-images.githubusercontent.com/7439290/48051378-e2925e80-e1df-11e8-97c9-6882b1118dd0.png) ![image](https://user-images.githubusercontent.com/7439290/48051388-ede58a00-e1df-11e8-81a4-e8e162b12aa6.png) but you will find nothing in harbor UI ![image](https://user-images.githubusercontent.com/7439290/48051582-7d8b3880-e1e0-11e8-9f7d-293e2e19d5d3.png) run it again, you will...

## Test by `harborctl` ### HELP info ``` [#454#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl label create -h This endpoint let user creates a label. Usage: harborctl label create [flags] Flags: -c, --color string The...

## another issue - create a label by `harborctl`, show success ``` [#544#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl label create -h This endpoint let user creates a label. Usage: harborctl label create [flags] Flags:...