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

Fix setup detection for local users #3888

Merged
merged 2 commits into from
Sep 22, 2019
Merged

Fix setup detection for local users #3888

merged 2 commits into from
Sep 22, 2019

Conversation

nwmac
Copy link
Contributor

@nwmac nwmac commented Sep 20, 2019

Setup detection does not consider local user auth config - so if UAA_ENDPOINT is not set, you will see the setup screen, even if you have configured local user auth.

@nwmac nwmac self-assigned this Sep 20, 2019
@cfdreddbot
Copy link

✅ Hey nwmac! The commit authors and yourself have already signed the CLA.

@codecov
Copy link

codecov bot commented Sep 20, 2019

Codecov Report

Merging #3888 into v2-master will increase coverage by <.01%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           v2-master    #3888      +/-   ##
=============================================
+ Coverage      52.22%   52.22%   +<.01%     
=============================================
  Files            785      785              
  Lines          23010    23010              
  Branches        4124     4124              
=============================================
+ Hits           12016    12017       +1     
+ Misses         10994    10993       -1

Copy link
Contributor

@richard-cox richard-cox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good and can now correctly log in, however i get an error when viewing the user profile

UAA_ENDPOINT=
AUTH_ENDPOINT_TYPE=local
LOCAL_USER=lu
LOCAL_USER_PASSWORD=lup
LOCAL_USER_SCOPE=stratos.admin
DEBU[Fri Sep 20 09:34:44 BST 2019] sessionCleanupMiddleware                     
DEBU[Fri Sep 20 09:34:44 BST 2019] errorLoggingMiddleware                       
DEBU[Fri Sep 20 09:34:44 BST 2019] urlCheckMiddleware                           
DEBU[Fri Sep 20 09:34:44 BST 2019] sessionMiddleware                            
DEBU[Fri Sep 20 09:34:44 BST 2019] getSessionValue                              
DEBU[Fri Sep 20 09:34:44 BST 2019] getSession                                   
DEBU[Fri Sep 20 09:34:44 BST 2019] xsrfMiddleware                               
DEBU[Fri Sep 20 09:34:44 BST 2019] uaa request                                  
DEBU[Fri Sep 20 09:34:44 BST 2019] GetSessionInt64Value                         
DEBU[Fri Sep 20 09:34:44 BST 2019] getSessionValue                              
DEBU[Fri Sep 20 09:34:44 BST 2019] getSession                                   
DEBU[Fri Sep 20 09:34:44 BST 2019] GetSessionStringValue                        
DEBU[Fri Sep 20 09:34:44 BST 2019] getSessionValue                              
DEBU[Fri Sep 20 09:34:44 BST 2019] getSession                                   
DEBU[Fri Sep 20 09:34:44 BST 2019] GetUAATokenRecord                            
DEBU[Fri Sep 20 09:34:44 BST 2019] NewPgsqlTokenRepository                      
DEBU[Fri Sep 20 09:34:44 BST 2019] FindAuthToken                                
DEBU[Fri Sep 20 09:34:44 BST 2019] Unable to Find UAA token: sql: no rows in result set 
ERRO[Fri Sep 20 09:34:44 BST 2019] Database error finding UAA token: Unable to Find UAA token: sql: no rows in result set 
{"time":"2019-09-20T09:34:44.452442325+01:00","level":"ERROR","prefix":"echo","file":"main.go","line":"953","message":"Unable to Find UAA token: sql: no rows in result set"}
Request: [2019-09-20T09:34:44+01:00] Remote-IP:"127.0.0.1" Method:"GET" Path:"/pp/v1/uaa/Users/fe9067e2-e224-43c0-acef-6a57d08cbbc7" Status:500 Latency:589.769µs Bytes-In:0 Bytes-Out:21

@richard-cox richard-cox added needs attention This PR needs attention ready for review and removed ready for review needs attention This PR needs attention labels Sep 20, 2019
Copy link
Contributor

@richard-cox richard-cox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore previous comment, as per discussion I derped

@nwmac nwmac merged commit 7b8f236 into v2-master Sep 22, 2019
@nwmac nwmac deleted the fix-local-user-config branch September 22, 2019 23:14
KlapTrap pushed a commit that referenced this pull request Sep 23, 2019
* v2-master:
  Add support for view and edit profile for local user (#3883)
  Add fix to wait until delete indicator has been removed (#3889)
  FIx setup detection for local users (#3888)
  Ensure stepper buttons are always visible and content scrolls (#3890)
  E2E Test should run as user not admin (#3894)
KlapTrap pushed a commit that referenced this pull request Sep 25, 2019
* v3-master:
  Fix cf summary unit test failures - cf now has dependency on autoscaler - see #3916
  catalogue: fixed initial state that was overwritten
  Travis: Build once and share build in e2e tests (#3901)
  Improve user clean up
  Ensure MB is only shown for memory based quota values in edit quota forms (#3892)
  Fix domains in create app shell stepper
  Fix git commit world
  WIP
  Fix two actionBuilder params issues - Fix three places where `includeRelations` were passed incorrectly to actionBuilder - Fix bind service
  Ensure multi endpoint requests only go out to connected/unconnectable endpoints - Fixes #3887
  Travis: Build once and share build in e2e tests (#3901)
  Improve user clean up
  Ensure MB is only shown for memory based quota values in edit quota forms (#3892)
  Add support for view and edit profile for local user (#3883)
  Add fix to wait until delete indicator has been removed (#3889)
  FIx setup detection for local users (#3888)
  Ensure stepper buttons are always visible and content scrolls (#3890)
  E2E Test should run as user not admin (#3894)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants