Git Product home page Git Product logo

Comments (6)

reusr1 avatar reusr1 commented on June 4, 2024

Cris, thank you for reporting this issue . Is this in an author or publish scenario and are you using one or multiple servers behind the ELB?

from peregrine-cms.

cmrockwell avatar cmrockwell commented on June 4, 2024

This is in author mode. I'm using httpd on another instance between the peregrine instance and the ELB. When I access via http, everything seems fine. It might be a problem with the Authorization header. When the problem happens, the access.log at peregrine shows the request to /system/sling/info.sessionInfo from anonymous.

from peregrine-cms.

reusr1 avatar reusr1 commented on June 4, 2024

just wondering - are you using 2 authors behind the elb or just one? If you install an out of the box sling instance - do you see the same issue?

from peregrine-cms.

cmrockwell avatar cmrockwell commented on June 4, 2024

For now, I have taken httpd out of the mix. As of now there is only one author and one elb.
No I don't think Sling or Composum have exactly this same problem. When I log in direct to https:///bin/browser.html it will redirect after authn to http. But Sling and Composum still render when I request https URI's

I feel the problem relates to 302 sent from com.peregrine.admin.servlets.AccessServlet, which seems to be giving the location fully qualified location including http protocol. When the front end requests /perapi/admin/access.json it is handled by AccessServlet and redirected to http:///system/sling/info.sessionInfo

Since the application is behind an ELB or proxy that is terminating SSL, the location could be given with only the path like Location: /system/sling/info.sessionInfo which should allow the browser to use the protocol and domain inherited from the requested document.

from peregrine-cms.

cmrockwell avatar cmrockwell commented on June 4, 2024

I know this is not the best fix. But it avoids the problem and allows the app to render from https...

screenshot from 2018-10-07 14-26-54

from peregrine-cms.

schaefa avatar schaefa commented on June 4, 2024

The current 'master' branch has a fix for this issue but it also contains other changes beside that.

from peregrine-cms.

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.