I have a user that's using our rest api sending a GET request on a
certain item that has 2 bitstreams - one has READ on Anonymous and the
other on a group that this user belongs to.  His response only
contains the bitstream that has READ on Anonymous.  He is issuing a
login, getting a token and passing that in to the GET request.  But
from what I can tell from looking at the log file and code, the token
is not being processed.  Is that so, and if so, is there a work around
( some patch )?

Thank you!
Jose

On Tue, Mar 14, 2017 at 4:28 PM, Jose Blanco <blan...@umich.edu> wrote:
> never mind. I found them in the log file.
>
> On Tue, Mar 14, 2017 at 4:22 PM, Jose Blanco <blan...@umich.edu> wrote:
>> I put some log statements in the rest api code but don't see them in
>> the log. Do I have to enable it somehow?
>>
>> On Tue, Mar 14, 2017 at 10:31 AM, Tim Donohue <tdono...@duraspace.org> wrote:
>>> Hi Jose,
>>>
>>> I think you are likely looking for the code that responds to
>>> [item_id]/bitstreams path, that'd be here:
>>> https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-rest/src/main/java/org/dspace/rest/ItemsResource.java#L287
>>>
>>> In general, with the REST API, if you look at what URL you are requesting,
>>> you should be able to search the 'dspace-rest' code for an corresponding
>>> @Path statement. That would help you find the method that responds to that
>>> URL path.
>>>
>>> - Tim
>>>
>>> On Tue, Mar 14, 2017 at 9:04 AM Jose Blanco <blan...@umich.edu> wrote:
>>>>
>>>> If you make a request to the rest api for the bitstreams in an item
>>>> and one of the bitstreams is restricted, the response does not include
>>>> that bitstream.  This makes sense, but we do have a user that should
>>>> be able to get that bitstream because he is the admin of that
>>>> collection.  Could someone point me to where that logic takes place in
>>>> the code?
>>>>
>>>> Thank you!
>>>> Jose
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google Groups
>>>> "DSpace Technical Support" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send an
>>>> email to dspace-tech+unsubscr...@googlegroups.com.
>>>> To post to this group, send email to dspace-tech@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/dspace-tech.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>>
>>> Tim Donohue
>>> Technical Lead for DSpace & DSpaceDirect
>>> DuraSpace.org | DSpace.org | DSpaceDirect.org
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "DSpace Technical Support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to dspace-tech+unsubscr...@googlegroups.com.
>>> To post to this group, send email to dspace-tech@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/dspace-tech.
>>> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to