Skip to content

REST DSL editor keeps GET when POST is typed and confirmed with Enter #3474

Description

@etzel-mes

Describe the Bug

In the REST DSL editor's Add REST Method dialog, the HTTP Method field is initialized with get.

When a user types the exact valid value post and confirms it with Enter, the dropdown closes and the field appears to contain post, but the underlying operation remains get. After adding the operation, the REST tree and generated Camel REST DSL show GET instead of POST.

Selecting post by clicking the option in the dropdown works correctly. This makes the keyboard interaction misleading because it visually accepts a valid method without persisting it.

Expected behavior: confirming the exact post option with Enter updates the model and creates a POST operation.

Actual behavior: the visible input shows post, but the initialized get value remains in the model and a GET operation is created.

Workaround: open the dropdown and click the post option with the mouse.

Steps to Reproduce the Bug or Issue

  1. Open the REST DSL editor.
  2. Create or select a REST service.
  3. Choose Actions → Add Operation.
  4. In HTTP Method, replace the default get value by typing post.
  5. Press Enter to confirm the exact matching option.
  6. Enter a path and ID, then click Add.
  7. Inspect the operation in the REST tree or generated Camel YAML.

The operation is created as GET, although the dialog appeared to accept post.

Repeat the same steps, but select post by clicking it in the open dropdown. The operation is then correctly created as POST.

Screenshots or Videos

A recording can be provided if needed. The important comparison is:

  • Type post + press Enter → operation remains GET.
  • Click the post dropdown option → operation becomes POST.

Platform

  • OS: macOS
  • Browser: Chromium-based embedded browser
  • Kaoto version: 2.11.0
  • @kaoto/forms version: 1.8.0

Found while embedding Kaoto in another application, but the behavior is in Kaoto's REST DSL editor/typeahead interaction. Report prepared with AI assistance and reviewed by a human, following the project's CONTRIBUTING.md guidance.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status
New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions