Coder Social home page Coder Social logo

Comments (5)

clafonta avatar clafonta commented on June 3, 2024

Roc - When you can, provide me a little more detail to recreate the issue so I can debug and fix. My dev' setup to debug and test is Tomcat with SSL enabled (https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html).

Note: in testing, I discovered a few places where Mockey wasn't correctly managing the display of HTTP/S. I made a few updates to the UI. Still, I didn't experience the issue you explained.

from mockey.

PengyuTang avatar PengyuTang commented on June 3, 2024

We use Docker container for Mockey, and deploy it on AWS. After hitting the domain name will go to load balance. The load balance will pick up a box to access. We close some ports, and only open 443. The domain we give is like "https://ourMockey.com", after clicking on "clear history", it redirect to "http://ourMockey.com/history".
By the way, those services url are defined like "http://ourMockey.com:80/service/btcs/v1"

from mockey.

PengyuTang avatar PengyuTang commented on June 3, 2024

I think the reason is here, we use load balancer with "https", but the following code will try to redirect to http.

the code is on HistoryServlet.java
String contextRoot = req.getContextPath();
resp.sendRedirect(Url.getContextAwarePath("/history", contextRoot));

from mockey.

clafonta avatar clafonta commented on June 3, 2024

It looks similar to this issue: https://stackoverflow.com/questions/18891210/how-to-reproduce-sendredirect-issue-https-change-to-http

..since I don't run in a load balancer, I'm unable to reproduce. As a possible solution, I updated the app to sendRedirect to an absolute path with appropriate scheme instead of relative. Let me know if the latest build works for you.

from mockey.

clafonta avatar clafonta commented on June 3, 2024

I'm going to close this - I believe it's fixed.

from mockey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.