apache / streampipes

Apache StreamPipes - A self-service (Industrial) IoT toolbox to enable non-technical users to connect, analyze and explore IoT data streams.
https://streampipes.apache.org
Apache License 2.0
560 stars 172 forks source link

No user feedback when self registration fails #2661

Closed bossenti closed 1 week ago

bossenti commented 2 months ago

Apache StreamPipes version

dev (current development state)

Affected StreamPipes components

UI

What happened?

If the self-registration of a new user fails, e.g, due to misconfigured Email settings, the UI does not display any feedback, whereas it does when the user already exists. email-registration

How to reproduce?

No response

Expected behavior

Show an error message in the UI for internal errors (response code 500) as well

Additional technical information

No response

Are you willing to submit a PR?

No, I don't want to submit a PR.

IsaakKrut commented 2 weeks ago

Hi @bossenti. could you help me reproduce this? I enabled registration by manually returning true in the RegistrationAllowedCanActivateGuard class. But I'm getting 403 returned from the backend. Do you know what could be the issue? Additionally, how can I reproduce 500 errors specifically?

bossenti commented 2 weeks ago

Have you enabled self-configuration via the UI and configured the email settings? image

image

This is required that the self registration is activated. Then StreamPipes tries to send an email to the new user asking for confirmation. If the Email server is configured wrongly, the email dispatching fails, the backend should return a 500 error code

Hope this helps 🙂