web interface unusable due to multiple 'undefined method' errors
Hello, i have finally managed to install schleuder and configured it to work through the cli.
However schleuder-web is unusable past the first screen as many actions break because of internal server errors. Looking at the logs, they turn out to be undefined methods in code.
I'm copying here some logs for example:
- GET /subscriptions/1
[2021-06-08T16:41:38.305505 #18] FATAL -- : [ee1288a5-2471-41f2-af2c-713b91db926a]
[ee1288a5-2471-41f2-af2c-713b91db926a] ActionView::Template::Error (undefined method `summary' for #<Key:0x000056388ab8dfd0>):
[ee1288a5-2471-41f2-af2c-713b91db926a] 1: - if key.trust_issues.blank?
[ee1288a5-2471-41f2-af2c-713b91db926a] 2: = link_to key.summary, list_key_path(@list, key), class: key_css_classes(key)
[ee1288a5-2471-41f2-af2c-713b91db926a] 3: - else
[ee1288a5-2471-41f2-af2c-713b91db926a] 4: = link_to list_key_path(@list, key), title: key_trust_title(key), class: key_css_classes(key) do
[ee1288a5-2471-41f2-af2c-713b91db926a] 5: = key.summary
[ee1288a5-2471-41f2-af2c-713b91db926a]
[ee1288a5-2471-41f2-af2c-713b91db926a] app/views/keys/_key_oneline.html.haml:2
[ee1288a5-2471-41f2-af2c-713b91db926a] app/views/subscriptions/show.html.haml:63
- GET /lists/1/edit
[70a55337-0724-4be1-9722-f629aed9cfa4] ActionView::Template::Error (undefined method `munge_from' for #<List:0x000056388a672668>):
[70a55337-0724-4be1-9722-f629aed9cfa4] 16: %fieldset
[70a55337-0724-4be1-9722-f629aed9cfa4] 17: %legend Message control
[70a55337-0724-4be1-9722-f629aed9cfa4] 18: = checkbox f, :keep_msgid, "Pass incoming Message-IDs to outgoing messages? This enables threading in Mail-clients and helps to identify messages."
[70a55337-0724-4be1-9722-f629aed9cfa4] 19: = checkbox f, :munge_from, "Include the original sender's email address into the From header of outgoing messages? If this is enabled recipients can see who sent the email before decrypting the content. Some people like that, but be aware that this puts information into the open which otherwise might have been hidden (depending on the encryption of the messages)."
[70a55337-0724-4be1-9722-f629aed9cfa4] 20: = checkbox f, :set_reply_to_to_sender, "Set a Reply-To header to outgoing messages, which contains the originally incoming Reply-To value, or the incoming From value? If this is enabled replies will by default be sent to this email address instead of to the list. PLEASE BEWARE: this might result in ACCIDENTALLY REVEALED EMAIL ADDRESSES of subscribers even to non-subscribers!"
[70a55337-0724-4be1-9722-f629aed9cfa4] 21: = f.input :max_message_size_kb, hint: "Emails bigger than this will be rejected (measured in kilo-bytes.)"
[70a55337-0724-4be1-9722-f629aed9cfa4] 22: = f.input :headers_to_meta, hint: "One header-name per line. Case-insensitive.", as: :text