Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

303 redirect issue in edge ui

Not applicable

Hi

We had set up EDGE UI on Port 443(HTTPS) for the server(Apigee Edge Private Cloud Installation). The server is a Virtual Machine in Azure Cloud which has a private IP(for use within the VPN) as well as a public IP(for internet access).

I am able to access the Edge UI when using the private IP.

Ex:-

If i give https://<privateIP>; in the browser it redirects to EDGE UI login page https://<privateIP>/login.

But if i try to access the EDGE UI through Public IP (internet) i get an error.

Ex:-

https://<publicIP>; or https://<publicIP>/login will give:-

" This page isn’t working <Public IP> redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS"

I cleared the cookies and browser history. I tried debugging the issue and i can see the URL (using Public IP) is giving 303 redirect response to the same page and it goes on an infinite loop.

Is there anywhere i need to update the IP or URL in the configuration file?

0 6 980
6 REPLIES 6

What was the solution ? I have the same problem after upgrading to 4.18.05

I am not sure what did the trick but i basically disabled ssl mode. Re-checked all file/folder permissions, Network access and allow local ip address access(https://docs.apigee.com/private-cloud/v4.18.01/allowing-trace-tool-access-local-ip-addresses ).

Then redo the enable TLS steps.

I already have those values set to true 😞

Is there any errors/exception in the logs?

Check logs in /opt/apigee/var/log/edge-ui/edge-ui.log or /opt/apigee/var/log/edge-management-server/logs/system.log

I do see this in managment server logs a little after. Not sure if it is related.

2018-07-16 09:42:37,636 org: env: target: contextId: action: qtp1189651769-49 ERROR REST - Authorizer.beforeInvocation() : Authorizer.beforeInvocation: Detected an authentication failure. 2018-07-16 09:42:37,637 org: env: target: contextId: action: qtp1189651769-49 ERROR REST - CustomJAXRSInvoker.performInvocation() : CustomJAXRSInvoker.performInvocation : Method com.apigee.analytics.dataapi.impl.DataAPIResourceHandlerImpl.getStats threw an exception. 2018-07-16 09:42:37,638 org: env: target: contextId: action: qtp1189651769-49 ERROR REST - ExceptionMapper.toResponse() : Error occurred : Authentication failed for user : {0} com.apigee.security.providers.UserAccessController.authenticate(UserAccessController.java:95) com.apigee.rest.framework.security.authentication.ApigeeLoginModule.login(ApigeeLoginModule.java:47) sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

I dont think thats the issue. Have you tried reconfiguring SSL for Edge UI?