postalserver / postalserver/postal

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

Open
#3,101 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Ruby
Stars
16.8k
Forks
1.3k
Avg merge
13d 7h
Merged PRs (30d)
2

Description

## 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](https://github.com/user-attachments/assets/6271c73d-d625-49bb-a3a3-bf9bfcb00694)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.