Bug #13096
closed
rgw: The type of caps can be any value.
Added by Kongming Wu over 8 years ago.
Updated over 8 years ago.
Description
When executing the command of [radosgw-admin caps add --uid=wkm --caps="122=write"], the results show we add caps successfully.But I read source files and documents of ceph 0.94.2, and found that the “types” of caps are certain values, which means the number 122 in the above is incorrect. But I am not sure how many,because there are 5 types according to the document, but i found more in the source code.
- Project changed from Ceph to rgw
The solution would require mapping out the different types of caps that exist, and then to restrict that to those existing types. This is an easy project to work on for anyone who wants to start looking at the code!
Yehuda Sadeh wrote:
The solution would require mapping out the different types of caps that exist, and then to restrict that to those existing types. This is an easy project to work on for anyone who wants to start looking at the code!
About 2 months ago, I added a pull request on github with the No.#6051. Among the modifying I listed All existed types of caps that can be found in the source code.
Ah, right! Ok, added a couple of comments in the PR, but looks good otherwise.
Yehuda Sadeh wrote:
Ah, right! Ok, added a couple of comments in the PR, but looks good otherwise.
OK!I see it and I am going to fix the PR.
Yehuda Sadeh wrote:
Ah, right! Ok, added a couple of comments in the PR, but looks good otherwise.
Hi,Yehuda,I repushed a PR by overwriting, Accoding to what you said.
- Status changed from New to Resolved
Merge commit:7ce223ec0f4906a9dee688af1d3c16ecf6a52be9
Also available in: Atom
PDF