Content
View differences
Updated by Christophe Bliard about 1 year ago
### Steps to reproduce
* Create a relation between 2 work packages
Unclear - AppSignal report
* Open Probably the same work package in two different browser tabs, both displaying the relations tab for the same work package.
* Delete the user is trying to delete a relation in the first browser tab
* Delete the same relation in the other browser tab
already deleted e.g. by using multiple tabs or double clicking
### What is the buggy behavior?
500 error, but the frontend does not show any signs of this error (so it's invisible to users, we only detected it thanks to appsignal) Unclear - AppSignal report
### What is the expected behavior?
No 500 error
### Screenshots Unclear - AppSignal report
### **Logs**
[https://appsignal.com/openproject-gmbh/sites/632371afd2a5e463ef717ecb/exceptions/incidents/6513](https://appsignal.com/openproject-gmbh/sites/632371afd2a5e463ef717ecb/exceptions/incidents/6513)
[https://appsignal.com/openproject-gmbh/sites/673c8be183eb67dcd6c4e75d/exceptions/incidents/1212](https://appsignal.com/openproject-gmbh/sites/673c8be183eb67dcd6c4e75d/exceptions/incidents/1212)
https://appsignal.com/openproject-gmbh/sites/673c8d4183eb67dcd6c4e764/exceptions/incidents/1132
```text
Couldn't find Relation with 'id'=1567 [WHERE ("relations"."from_id" = $1 OR "relations"."to_id" = $2)]
app/controllers/work_package_relations_controller.rb:118 WorkPackageRelationsController#set_relation
Parameters:
{
"_method": "delete",
"action": "destroy",
"authenticity_token": "[FILTERED]",
"controller": "work_package_relations",
"id": "29349",
"work_package_id": "6362"
}
```
* Create a relation between 2 work packages
* Delete the
* Delete the same relation in the other browser tab
500 error, but the frontend does not show any signs of this error (so it's invisible to users, we only detected it thanks to appsignal)
### What is the expected behavior?
No 500 error
### Screenshots
### **Logs**
[https://appsignal.com/openproject-gmbh/sites/632371afd2a5e463ef717ecb/exceptions/incidents/6513](https://appsignal.com/openproject-gmbh/sites/632371afd2a5e463ef717ecb/exceptions/incidents/6513)
[https://appsignal.com/openproject-gmbh/sites/673c8be183eb67dcd6c4e75d/exceptions/incidents/1212](https://appsignal.com/openproject-gmbh/sites/673c8be183eb67dcd6c4e75d/exceptions/incidents/1212)
https://appsignal.com/openproject-gmbh/sites/673c8d4183eb67dcd6c4e764/exceptions/incidents/1132
```text
Couldn't find Relation with 'id'=1567 [WHERE ("relations"."from_id" = $1 OR "relations"."to_id" = $2)]
app/controllers/work_package_relations_controller.rb:118 WorkPackageRelationsController#set_relation
Parameters:
{
"_method": "delete",
"action": "destroy",
"authenticity_token": "[FILTERED]",
"controller": "work_package_relations",
"id": "29349",
"work_package_id": "6362"
}
```