Top Menu

Jump to content
    Global modules

    Global modules

    • Home
    • Projects
    • Activity
    • Work packages
    • Gantt charts
    • Calendars
    • Team planners
    • Boards
    • News
    Home
    Home
Help
    Getting started
    • Introduction video
  • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support
  • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation

User menu

Sign in
Forgot your password?

or sign in with your existing account

OpenProject ID Google

Side Menu

Collapse project menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Expand project menu

Updated by Jan Sandbrink 3 days ago

### Steps to reproduce

1. Call a writing API endpoint (i.e. create or update) that accepts `_links`

2. Instead of passing a valid link object (`{ "href": "something" }`), pass a string


Full example:

```text
PATCH https://openproject.local/api/v3/storages/2

{
"_links": {
"banana": "is healthy"
}
}
```

### What is the buggy behavior?

An error occurs and the server responds in an HTTP 500.

```text
undefined method 'merge' for an instance of String
```

### What is the expected behavior?

Since the error is on the client side, an HTTP 4xx should be raised and it should indicate what's wrong about the request.

### Logs

* AppSignal: https://appsignal.com/openproject-gmbh/sites/678fa146338a5d816f8d696c/exceptions/incidents/978

Back

Loading...