-
Notifications
You must be signed in to change notification settings - Fork 24
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
Issue with analytics background job #126
Comments
Hi, I will search for a fix for the initial issue. Currently, this new datasource is working as expected in normal use. Just unattended dataloads from Tables->Analytics are not possible. But this use case is very limited anyway |
I have to rethink my setup to run without users in context. But I need that also for other things, fix will come shortly. @Rello I'm not sure, if I can make the data accessible via the API without a user in context due to security reasons. |
Hi, But I do not have a way to hand it over as a $userid variable at the moment. perhaps @juliushaertl can help here. why is this needed? the function construct should be enough already |
The service has a parent class which needs the user id. One option might be to allow nullable user ids during dependency injection and then offer a way to set the user context manually through a method. |
I am working on a general solution to handle requests with different users than the user from the session. This is needed for some occ commands to manipulate something as an administrator... |
@juliushaertl is it possible to set the userId in the \OC::$server instance or manipulate the initial request? |
Related to
I will stopp here, fetching data needs a user in context otherwise security checks are not possible. With the ability for public sharing this might become possible with an access token... For now I close this issue. |
agreed |
@datenangebot I would need an api where the userid can be handed over in a variable. |
@datenangebot
i just found a possible issue with the datasource in a certain combination (when scheduling unattended dataloads).
What is your release plan?
Analyitcs has scheduled dataloads via cron. for these jobs, no current user is active and I am getting this error:
OCA\\\\Tables\\\\Service\\\\PermissionsService::__construct(): Argument #2 ($userId) must be of type string, null given
Originally posted by @Rello in #121 (comment)
The text was updated successfully, but these errors were encountered: