Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache can't delete correctly when BEARER_AUTH=true #452

Closed
CheneyCookie opened this issue Apr 23, 2021 · 2 comments
Closed

Cache can't delete correctly when BEARER_AUTH=true #452

CheneyCookie opened this issue Apr 23, 2021 · 2 comments

Comments

@CheneyCookie
Copy link

Hi,
When bearer auth used, I try to delete one chart, the chart has been deleted, but I find the chart exists when I use /api//charts to list charts.
steps:

  • upload 3 charts as below

curl -H "Authorization: Bearer $TOKEN" http://<host>/api/<project>/charts --data-binary "@mychart-0.0.1.tgz"
curl -H "Authorization: Bearer $TOKEN" http://<host>/api/<project>/charts --data-binary "@mychart-0.0.2.tgz"
curl -H "Authorization: Bearer $TOKEN" http://<host>/api/<project>/charts --data-binary "@mychart-0.0.3.tgz"

  • list charts

curl -H "Authorization: Bearer $TOKEN" http://<host>/api/<project>/charts
Response: 3 charts exist.

  • delete mychart-0.0.1.tgz

curl -H "Authorization: Bearer $TOKEN" http://<host>/api/<project>/charts/mychart/0.0.1 -X DELETE

  • list charts again

curl -H "Authorization: Bearer $TOKEN" http://<host>/api/<project>/charts
Response: 3 charts exist.

  • delete mychart-0.0.1.tgz again

curl -H "Authorization: Bearer $TOKEN" http://<host>/api/<project>/charts/mychart/0.0.1 -X DELETE
Response: no such file or directory

@scbizu
Copy link
Contributor

scbizu commented May 1, 2021

I think it is nothing about BEARER_AUTH , can you try the case without the BEARER_AUTH ?

And also see the cache-interval

@CheneyCookie
Copy link
Author

Yes, It's nothing about BEARER_AUTH.
This problem is the same with this issue, #455
So close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants