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

[Bug]: Enterprise Mode is not working after Version 2.3.1 #1258

Open
1 task done
devapplicationbuilder opened this issue Oct 28, 2024 · 1 comment
Open
1 task done
Assignees
Labels
Bug Something isn't working Java Backend Pull requests that update Java code

Comments

@devapplicationbuilder
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If I start the application in enterprise mode and try to create an account (which I expect to be an administrator account later), I receive the following error in the logs:

2024-10-25 16:33:58.865 ERROR o.l.a.f.exception.CustomErrorWebExceptionHandler#render:92 [nioEventLoopGroup-3-4]: oops class java.lang.NullPointerException, Cannot invoke "org.lowcoder.domain.user.model.ConnectionAuthToken." getExpireAt()" because the return value of "org.lowcoder.domain.user.model.Connection.getAuthConnectionAuthToken()" is null
2024-10-25 16:33:58.896 ERROR org.springframework.core.log.CompositeLog#error:102 [nioEventLoopGroup-3-4]: [ea703a0c-4] 500 Server Error for HTTP GET "/api/users/me "
java.lang.NullPointerException: Cannot invoke "org.lowcoder.domain.user.model.ConnectionAuthToken.getExpireAt()" because the return value of "org.lowcoder.domain.user.model.Connection.getAuthConnectionAuthToken()" is null
at org.lowcoder.api.framework.filter.UserSessionPersistenceFilter.lambda$filter$1(UserSessionPersistenceFilter.java:83)
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Assembly trace from producer [reactor.core.publisher.MonoMapFuseable] :
reactor.core.publisher.Mono.map
org.lowcoder.api.framework.filter.UserSessionPersistenceFilter.filter(UserSessionPersistenceFilter.java:66)

Expected Behavior

I expect that when I want to start the application in enterprise mode, I can create an account in the application, and the first account I log in with will be an administrator account. As it happens in version 2.3.1

Steps to reproduce

  1. docker pull lowcoderorg/lowcoder-ce
  2. start container using ENV_VARIABLE: LOWCODER_WORKSPACE_MODE = ENTERPRISE
  3. sign up with an user

Environment

I tried both on version 2.4.10 and on the latest version from docker hub

Additional Information

No response

@FalkWolsky FalkWolsky changed the title [Bug]: ENTERPRISE MODE IS NOT WORKING AFTER VERSION 2.3.1 [Bug]: Enterprise Mode is not working after Version 2.3.1 Oct 28, 2024
@FalkWolsky
Copy link
Contributor

For the upcoming v2.5 we introduce a major change about this general issue - the Login Flow.
Aside of better control for the login by workspace, we also introduce the /admin/login path - where a Super Admin can login and create the settings for the Auth Providers. Based on the ENV Variables we also allow then to effectively disable eMail as Auth Provider. Also, you can make use of the SuperAdmin ENV Variables to control the user credentials.

@FalkWolsky FalkWolsky assigned FalkWolsky and dragonpoo and unassigned FalkWolsky Nov 18, 2024
@FalkWolsky FalkWolsky added Bug Something isn't working Java Backend Pull requests that update Java code labels Nov 18, 2024
@FalkWolsky FalkWolsky moved this to 🆕 New in Lowcoder Nov 18, 2024
@FalkWolsky FalkWolsky moved this from 🆕 New to 🏗 In progress in Lowcoder Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Java Backend Pull requests that update Java code
Projects
Status: 🏗 In progress
Development

No branches or pull requests

3 participants