shesha-io / shesha-framework

An open-source Low-Code development framework for .NET developers. Create .NET based business applications with 80% less code.
https://shesha.io
Apache License 2.0
285 stars 45 forks source link

ImportPackage endpoint fail when importing permissions #1435

Closed hlayisanimazuze closed 1 week ago

hlayisanimazuze commented 2 weeks ago

I created approximately 2 permissions and their child permissions. I exported the JSON file of these permissions, deleted them from the system, and attempted to reload them using the downloaded JSON file. Upon clicking the import button, the endpoint throws an error

Steps to reproduce the behavior:

  1. Go to 'https://function-adminportal-test.shesha.dev/dynamic/Shesha/permission-configurator'
  2. Add a new permission
  3. Navigate to: https://function-adminportal-test.shesha.dev/dynamic/shesha/forms
  4. Click on export and export the permission you created
  5. Navigate back to permissions and delete the permission you've created
  6. Afterwards, navigate to: https://function-adminportal-test.shesha.dev/dynamic/shesha/forms and click on import
  7. Attach the downloaded JSON file and click on Import button
  8. Actual Results: A 500 error gets displayed There is no permission with name: Testing

Expected behavior The permissions should successfully gets imported

image
hlayisanimazuze commented 2 weeks ago

Related Item

1338