Content
View differences
Updated by Pavel Balashou over 1 year ago
https://appsignal.com/openproject-gmbh/sites/66b224a4d30d867bed8a1772/exceptions/incidents/461
# AppSignal incidents:
[https://appsignal.com/openproject-gmbh/sites/66b224a4d30d867bed8a1772/exceptions/incidents/461](https://appsignal.com/openproject-gmbh/sites/66b224a4d30d867bed8a1772/exceptions/incidents/461)
## [Sample 1](https://appsignal.com/openproject-gmbh/sites/66b224a4d30d867bed8a1772/exceptions/incidents/461/samples/66b224a4d30d867bed8a1772-884796401650667813417254311001)
**Message**
````text
Couldn't find User with 'id'=70948 [WHERE "users"."type" IN ($1, $2, $3, $4) AND "users"."type" NOT IN ($5, $6, $7) AND "users"."status" = $8]```
**Backtrace (last 10 lines)**
```text
app/controllers/activities_controller.rb:109 determine_author
vendor/plugins/openproject-multitenancy/lib/multitenancy/elevators/mapped_domain_elevator.rb:106 block in call_tenant
vendor/plugins/openproject-multitenancy/lib/multitenancy/elevators/mapped_domain_elevator.rb:103 call_tenant
vendor/plugins/openproject-multitenancy/lib/multitenancy/elevators/mapped_domain_elevator.rb:69 try_tenant
vendor/plugins/openproject-multitenancy/lib/multitenancy/elevators/mapped_domain_elevator.rb:39 call
````
### Reproduction:
Call Additional notes:
It seems to be reproduced with callin `https://openproject.local/projects/dev-large/activity?user_id=777` with inactive or not existent user's id in place of `777`. absent user_id.
# AppSignal incidents:
[https://appsignal.com/openproject-gmbh/sites/66b224a4d30d867bed8a1772/exceptions/incidents/461](https://appsignal.com/openproject-gmbh/sites/66b224a4d30d867bed8a1772/exceptions/incidents/461)
## [Sample 1](https://appsignal.com/openproject-gmbh/sites/66b224a4d30d867bed8a1772/exceptions/incidents/461/samples/66b224a4d30d867bed8a1772-884796401650667813417254311001)
**Message**
````text
Couldn't find User with 'id'=70948 [WHERE "users"."type" IN ($1, $2, $3, $4) AND "users"."type" NOT IN ($5, $6, $7) AND "users"."status" = $8]```
**Backtrace (last 10 lines)**
```text
app/controllers/activities_controller.rb:109 determine_author
vendor/plugins/openproject-multitenancy/lib/multitenancy/elevators/mapped_domain_elevator.rb:106 block in call_tenant
vendor/plugins/openproject-multitenancy/lib/multitenancy/elevators/mapped_domain_elevator.rb:103 call_tenant
vendor/plugins/openproject-multitenancy/lib/multitenancy/elevators/mapped_domain_elevator.rb:69 try_tenant
vendor/plugins/openproject-multitenancy/lib/multitenancy/elevators/mapped_domain_elevator.rb:39 call
````
### Reproduction:
Call
It seems to be reproduced with callin