Skip to content

Admin UI gives no feedback for reset password email #3078

@foerster-finsternis

Description

@foerster-finsternis
  • I am a system/ELN admin

Describe the bug

When an administrator uses the Admin UI to send "Send Password Instructions" to a user (whose authentication is handled via OIDC), the email is delivered successfully, but the Admin UI shows no feedback (no success notice, no error message). Such a feedback ("email sent successfully") was shown in former versions 2.X

Expected Behavior

The Admin UI should display a success (or error) notification after the reset password email is sent, regardless of the user's authentication provider.

Current Behavior

No UI feedback is shown. The email is sent, though. The application log reveals that the email is delivered, but a Net::ReadTimeout exception is raised immediately after, causing the API response to fail before it can return a status to the frontend.

Failure Information

Relevant log excerpt

2026-04-01 14:17:36 +0200, [INFO]: [eln.scadsai] [94245abe-ecb2-48c7-977f-4114cc696484] Started PUT "/api/v1/admin/users/11/resetPassword/" for [REDACTED IP] at 2026-04-01 14:17:36 +0200
2026-04-01 14:17:36 +0200, [INFO]: [eln.scadsai] [94245abe-ecb2-48c7-977f-4114cc696484]   Rendered devise/mailer/reset_password_instructions.html.haml (Duration: 0.2ms | Allocations: 84)
2026-04-01 14:17:42 +0200, [INFO]: [eln.scadsai] [94245abe-ecb2-48c7-977f-4114cc696484] Delivered mail 69cd0ce0b7aba_6a848696ef@68970202ff19.mail (5408.6ms)
2026-04-01 14:17:42 +0200, [FATAL]: [eln.scadsai] [94245abe-ecb2-48c7-977f-4114cc696484]
   | Net::ReadTimeout (Net::ReadTimeout with #<TCPSocket:(closed)>):
   | app/api/chemotion/admin_user_api.rb:168:in `block (4 levels) in <class:AdminUserAPI>'

Analysis / suspected cause [With help of Claude Sonnet 4.6]

The timeout occurs at admin_user_api.rb:168, after the mail is already delivered. This suggests that line 168 makes an outbound network call (possibly to the OIDC provider or another external service) that times out. Because this raises an unhandled exception, the API never returns a success response to the frontend, leaving the UI without any feedback. The email delivery itself works correctly, this is purely a backend exception causing a missing UI response.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  • Log in as an administrator.
  • Navigate to the Admin panel → Users.
  • Select a user that is authenticated via OIDC.
  • Click "Send reset password instructions".
  • Observe: the email is delivered, but no feedback appears in the UI.

Context

  • Chemotion ELN version: 3.0.0
  • Chemotion CLI version: 0.2.27
  • Deployment OS: Debian (in a VM), deployed via Chemotion CLI
  • Auth method: OIDC (local password reset triggered manually via Admin UI)
  • Firefox Browser, v149 64bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions