You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A request actor and its result receiver accept different credentials #238
The request actors and the result receivers each take credentials. JSONRequester.get(creds_a, url, ResultReceiver[Issue](creds_b, p, IssueJSONConverter)) fetches the issue with account A, but the Issue it produces gets account B, so issue.get_comments() and the other methods on it make their requests as B. LinkedJSONRequester with PaginatedResultReceiver or SearchResultReceiver does the same for a page and its prev_page()/next_page().
The library's own operations always pass the same credentials to both, so only callers who use the request actors and receivers directly can hit this. It's the same shape #219 removes from the pagination converters, one level up: two places to supply credentials for one request, and nothing that keeps them the same.
Fixing it changes a public constructor, either the receivers' or the requesters'.
Activity