Skip to content

[BUG] First save creates service on GET path #1179

Description

@matKlju

Bug description:

First-time saving of a POST service creates its DSL file under the GET path. Later edits save to the correct POST path, where no file exists, causing the save to fail.

  1. Create a new POST service and save it for the first time.
  2. Edit the service.
  3. Save the edited service.

The first save creates the draft service file in the GET directory:

`/rasa/shared-data/services/GET/services/draft/greeting_2.tmp`

However, that file declares method: post.

Image

On a later save, the application attempts to delete/save the service in the POST directory:

`/shared-data/services/POST/services/draft/greeting_2.tmp`

The POST-path file does not exist, so the operation fails.

Expected behavior:

A POST service must be created and subsequently updated using the POST service path:

`/shared-data/services/POST/services/draft/<service_name>.tmp`

The request-method path must remain consistent across first and subsequent saves.

Screenshots:
DataMapper logs:
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv3.3.3Release v3.3.3

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions