Hey David,

Is that the full command line? That's going to make the request as an anonymous 
user, not as your user, since there aren't any auth credentials there.

What version of Review Board are you using?

Christian

--  
Christian Hammond - christ...@beanbaginc.com  
Review Board - https://www.reviewboard.org  
Beanbag, Inc. - https://www.beanbaginc.com

-----Original Message-----
From: David Carson <dccar...@gmail.com>
Reply: reviewboard@googlegroups.com <reviewboard@googlegroups.com>>
Date: October 3, 2014 at 4:02:54 PM
To: reviewboard@googlegroups.com <reviewboard@googlegroups.com>>
Subject:  Repository List Resource does not return restricted repositories

> Some of our repositories are wide open. But we also have a few which are
> restricted for the SCM team's use only.
>  
> If I do the following, I would expect to get all the repositories back,
> since I am in the SCM group which has been given access to the restricted
> repos.
>  
> curl http://reviewboard/api/repositories/ -A application/json
> {"*total_results"**: 2,* "stat": "ok", "repositories": [{"n........
>  
>  
>  
> I was not expecting two, I was expecting four, which includes the ones only
> my team can access.
>  
> On the admin page for repositories, in the *Access Control* section, I have
> the following for one of the repos which was not returned:
>  
> - Publicly Accessible is *not* checked
> - Users with Access is empty
> - Review Groups with Access contains the group called SCM, of which I am
> a member.
>  
> Should I need to add users to the "Users with Access" box? I hope not,
> because that seems to defeat the purpose of having groups.
>  
> The reason I hit this issue is because one of the other members of the SCM
> team was trying to get rbt setup-repo working, and it kept complaining
> that it could not find the repository, no matter how she answered the
> prompts. I used the '--debug' option and discovered it was using the API,
> so then I started playing with that.
>  
> Even when I run the 'curl' command above myself, I only get two
> repositories, which does *not* include the one that I have successfully set
> up using the "setup-repo" command. If I can use rbt setup-repo to set up
> my working copy, then why does curl not return all four of the repositories
> to me?
>  
> What gives?
>  
> --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups 
> "reviewboard"  
> group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to reviewboard+unsubscr...@googlegroups.com.  
> For more options, visit https://groups.google.com/d/optout.
>  

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to