Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting an address endpoint causes not to be able to load routes anymore #3101

Open
mohamed-mourabit opened this issue Aug 24, 2024 · 1 comment
Labels

Comments

@mohamed-mourabit
Copy link

Describe the bug

I deleted an address endpoint. After deleting the address endpoint i cannot access the route tab anymore.
It is only in this specific mailserver. All other route setting of other servers are working,

To Reproduce

  1. Go to "Routing"
  2. Click on Address endpoints
  3. delete one ( i had only one)
  4. See error:

ERROR GET /org/dso/servers/dev-solus/routes (500) event=request transaction=6781af57e59fa2b6ab0c controller=RoutesController action=index format=html method=GET path=/org/dso/servers/dev-solus/routes request_id=937b3635-78ea-4ad6-83b9-e50555ef75e6 ip_address=172.24.0.13 status=500 db_runtime=6.428897857666016 exception_class=ActionView::Template::Error exception_message=undefined method description' for nil:NilClass exception_backtrace=/opt/postal/app/app/views/routes/index.html.haml:43:in block (2 levels) in _app_views_routes_index_html_haml__1911547863970772885_58660'\n/usr/local/bundle/gems/actionview-7.0.8.1/lib/action_view/helpers/capture_helper.rb:45:in block in capture'\n/usr/local/bundle/gems/actionview-7.0.8.1/lib/action_view/helpers/capture_helper.rb:209:in with_output_buffer'\n/usr/local/bundle/gems/actionview-7.0.8.1/lib/action_view/helpers/capture_helper.rb:45:in `capture'
105.72.255.108 - - [24/Aug/2024:23:13:06 +0000] "GET /500 HTTP/1.1" 500 1477 0.0350

Screenshots

image

@mohamed-mourabit mohamed-mourabit changed the title Deleting an address endpoint causes not to be able to load routes anymore #2967 Deleting an address endpoint causes not to be able to load routes anymore Aug 24, 2024
@willpower232
Copy link
Collaborator

Definitely something the code needs to deal with. Somehow the array of routes in the page isn't right (perhaps the deletion did not succeed on some level?)

- for route in @routes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants