Content
View differences
Updated by Benjamin Bädorf over 5 years ago
### **Environment**:
Your OpenProject Version: `dev`
Operating System / Browser / OpenProject language:
Linux / Firefox / English
### **Logs**
Request:
```json
PATCH http://localhost:4200/api/v3/grids/6
{"_links":{},"rowCount":5,"columnCount":2,"options":{},"widgets":[{"id":"19","startRow":1,"endRow":2,"startColumn":1,"endColumn":3,"identifier":"custom_text","options":{"name":"Welcome","text":{"format":"markdown","raw":"","html":"<p><img src=\"/api/v3/attachments/1/content\" alt=\"Teaser\"></p>"}}},{"id":"20","startRow":2,"endRow":5,"startColumn":1,"endColumn":2,"identifier":"custom_text","options":{"name":"Getting started","text":{"raw":"We are glad you joined! We suggest to try a few things to get started in OpenProject.\n\nDiscover the most important features with our [Guided Tour](http://localhost:4200/projects/demo-project/work_packages/?start_onboarding_tour=true).\n\n_Try the following steps:_\n\n1. _Invite new members to your project_: → Go to [Members](http://localhost:4200/projects/demo-project/members) in the project navigation.\n2. _View the work in your project_: → Go to [Work packages](http://localhost:4200/projects/demo-project/work_packages) in the project navigation.\n3. _Create a new work package_: → Go to [Work packages → Create](http://localhost:4200/projects/demo-project/work_packages/new).\n4. _Create and update a project plan_: → Go to [Project plan](http://localhost:4200/projects/demo-project/work_packages?query_id=1) in the project navigation.\n5. _Activate further modules_: → Go to [Project settings → Modules](http://localhost:4200/projects/demo-project/settings/modules).\n6. _Complete your tasks in the project_: → Go to [Work packages → Tasks](http://localhost:4200/projects/demo-project/work_packages/details/3/overview?query_id=3).\n\nHere you will find our [User Guides](https://docs.openproject.org/user-guide/). Please let us know if you have any questions or need support. Contact us: [support\\[at\\]openproject.com](mailto:support@openproject.com).\n\n<figure class=\"table\"><table><tbody><tr><td>test</td><td>test</td></tr><tr><td>test</td><td>test</td></tr></tbody></table></figure>"}}},{"id":"21","startRow":2,"endRow":3,"startColumn":2,"endColumn":3,"identifier":"project_status","options":{}},{"id":"22","startRow":3,"endRow":4,"startColumn":2,"endColumn":3,"identifier":"project_description","options":{}},{"id":"23","startRow":4,"endRow":5,"startColumn":2,"endColumn":3,"identifier":"members","options":{"name":"Members"}},{"id":"24","startRow":5,"endRow":6,"startColumn":1,"endColumn":3,"identifier":"work_packages_overview","options":{"name":"Work packages"}},{"id":"25","startRow":6,"endRow":7,"startColumn":1,"endColumn":3,"identifier":"work_packages_table","options":{"name":"Milestones","queryId":"2"}}],"id":"6"}
```
Response:
```text
422 Unprocessable Entity
{"_type":"Error","errorIdentifier":"urn:openproject-org:api:v3:errors:PropertyConstraintViolation","message":"Widgets is outside of the grid.","_embedded":{"details":{"attribute":"widgets"}}}
```
### **Steps to reproduce:**
1. Create a fresh install
2. Edit something on the home grid (for example the text of the "Getting Started" widget)
3. Look at the browser request logs
### **Actual Behavior**
An 422 error is thrown.
### **Expected Behavior**
No error is thrown.
Your OpenProject Version: `dev`
Operating System / Browser / OpenProject language:
Linux / Firefox / English
### **Logs**
Request:
```json
PATCH http://localhost:4200/api/v3/grids/6
{"_links":{},"rowCount":5,"columnCount":2,"options":{},"widgets":[{"id":"19","startRow":1,"endRow":2,"startColumn":1,"endColumn":3,"identifier":"custom_text","options":{"name":"Welcome","text":{"format":"markdown","raw":"","html":"<p><img src=\"/api/v3/attachments/1/content\" alt=\"Teaser\"></p>"}}},{"id":"20","startRow":2,"endRow":5,"startColumn":1,"endColumn":2,"identifier":"custom_text","options":{"name":"Getting started","text":{"raw":"We are glad you joined! We suggest to try a few things to get started in OpenProject.\n\nDiscover the most important features with our [Guided Tour](http://localhost:4200/projects/demo-project/work_packages/?start_onboarding_tour=true).\n\n_Try the following steps:_\n\n1. _Invite new members to your project_: → Go to [Members](http://localhost:4200/projects/demo-project/members) in the project navigation.\n2. _View the work in your project_: → Go to [Work packages](http://localhost:4200/projects/demo-project/work_packages) in the project navigation.\n3. _Create a new work package_: → Go to [Work packages → Create](http://localhost:4200/projects/demo-project/work_packages/new).\n4. _Create and update a project plan_: → Go to [Project plan](http://localhost:4200/projects/demo-project/work_packages?query_id=1) in the project navigation.\n5. _Activate further modules_: → Go to [Project settings → Modules](http://localhost:4200/projects/demo-project/settings/modules).\n6. _Complete your tasks in the project_: → Go to [Work packages → Tasks](http://localhost:4200/projects/demo-project/work_packages/details/3/overview?query_id=3).\n\nHere you will find our [User Guides](https://docs.openproject.org/user-guide/). Please let us know if you have any questions or need support. Contact us: [support\\[at\\]openproject.com](mailto:support@openproject.com).\n\n<figure class=\"table\"><table><tbody><tr><td>test</td><td>test</td></tr><tr><td>test</td><td>test</td></tr></tbody></table></figure>"}}},{"id":"21","startRow":2,"endRow":3,"startColumn":2,"endColumn":3,"identifier":"project_status","options":{}},{"id":"22","startRow":3,"endRow":4,"startColumn":2,"endColumn":3,"identifier":"project_description","options":{}},{"id":"23","startRow":4,"endRow":5,"startColumn":2,"endColumn":3,"identifier":"members","options":{"name":"Members"}},{"id":"24","startRow":5,"endRow":6,"startColumn":1,"endColumn":3,"identifier":"work_packages_overview","options":{"name":"Work packages"}},{"id":"25","startRow":6,"endRow":7,"startColumn":1,"endColumn":3,"identifier":"work_packages_table","options":{"name":"Milestones","queryId":"2"}}],"id":"6"}
```
Response:
```text
422 Unprocessable Entity
{"_type":"Error","errorIdentifier":"urn:openproject-org:api:v3:errors:PropertyConstraintViolation","message":"Widgets is outside of the grid.","_embedded":{"details":{"attribute":"widgets"}}}
```
### **Steps to reproduce:**
1. Create a fresh install
2. Edit something on the home grid (for example the text of the "Getting Started" widget)
3. Look at the browser request logs
### **Actual Behavior**
An 422 error is thrown.
### **Expected Behavior**
No error is thrown.