POST /api/routes/{routeId} Make endpoint idempotent #1291

Closed
opened 2025-11-20 05:27:36 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @alexcupertme on GitHub (Sep 27, 2024).

Describe the problem

Method is not idempotent -> it assigns same peer multiple times, but should throw error

image

To Reproduce

Steps to reproduce the behavior:

  1. POST /api/routes/{routeId} with some peerId
  2. POST again with same peerId

Expected behavior

Throw error

Are you using NetBird Cloud?

Please specify whether you use NetBird Cloud or self-host NetBird's control plane.

NetBird version

netbird version

NetBird status -dA output:

If applicable, add the `netbird status -dA' command output.

Do you face any (non-mobile) client issues?

Please provide the file created by netbird debug for 1m -AS.
We advise reviewing the anonymized files for any remaining PII.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Originally created by @alexcupertme on GitHub (Sep 27, 2024). **Describe the problem** Method is not idempotent -> it assigns same peer multiple times, but should throw error ![image](https://github.com/user-attachments/assets/35895b2f-a364-4c3f-acc4-f2856011b3ec) **To Reproduce** Steps to reproduce the behavior: 1. POST /api/routes/{routeId} with some peerId 2. POST again with same peerId **Expected behavior** Throw error **Are you using NetBird Cloud?** Please specify whether you use NetBird Cloud or self-host NetBird's control plane. **NetBird version** `netbird version` **NetBird status -dA output:** If applicable, add the `netbird status -dA' command output. **Do you face any (non-mobile) client issues?** Please provide the file created by `netbird debug for 1m -AS`. We advise reviewing the anonymized files for any remaining PII. **Screenshots** If applicable, add screenshots to help explain your problem. **Additional context** Add any other context about the problem here.
saavagebueno added the bugmanagement-servicewaiting-feedbackroutesapi labels 2025-11-20 05:27:37 -05:00
Author
Owner

@nazarewk commented on GitHub (Apr 28, 2025):

Hello @alexcupertme,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

@nazarewk commented on GitHub (Apr 28, 2025): Hello @alexcupertme, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@mlsmaycon commented on GitHub (Jun 1, 2025):

closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.

@mlsmaycon commented on GitHub (Jun 1, 2025): closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1291