TheThingsNetwork / lorawan-stack

The Things Stack, an Open Source LoRaWAN Network Server
https://www.thethingsindustries.com/stack/
Apache License 2.0
932 stars 301 forks source link

Deleted user can't be restored or purged #7150

Open kewe1 opened 2 weeks ago

kewe1 commented 2 weeks ago

Summary

I have an user on my TTS account that I cannot restore or purge, it shows an empty error message on the down right notification

I also tried adding it back normally and it does nothing.

User account is : je-bouazzaoui

Steps to Reproduce

  1. Access admin panel
  2. Acess user management
  3. Deleted (Admin)
  4. Click on restore
  5. Errors pops

Current Result

I cannot restore back my user

Expected Result

I want my user "je-bouazzaoui" restored

Relevant Logs

Seen on browser console : https://iothink-solutions.eu1.cloud.thethings.industries/api/v3/users/je-bouazzaoui/restore 400 (Bad Request)

URL

iothink-solutions.eu1.cloud.thethings.industries

Deployment

The Things Stack Enterprise (self-hosted)

The Things Stack Version

No response

Client Name and Version

No response

Other Information

No response

Proposed Fix

No response

Contributing

Validation

Code of Conduct

KrishnaIyer commented 2 weeks ago

This is a valid bug. @ryaplots the console makes a DELETE request to /api/v3/users/{users.user_id} instead of /api/v3/users/{users.user_id}/purge when purging a user.