[MAGNOLIA-227] Activation does not work when author uses https Created: 30/Nov/04  Updated: 06/Dec/04  Resolved: 06/Dec/04

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 2.0 Final
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Ralf Hirning Assignee: Sameer Charles
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

The author instance (running on port 8081) is accessed via HTTPS, Apache, mod_jk.
The public instance (running on port 8082) is accessed via HTTP, Apache, mod_jk.


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Activation does not work because

  • in info.magnolia.cms.servlets.SimpleExchange.getProtocolName() the protocol to access the author instance is determined using the activation request (instead of how to access the author instance
  • the port to access the author instance is determined using the request-header remote-port.

Please send the protocol to access the author instance as request-header (like you do with the remote-port)
for example:

In info.magnolia.cms.exchange.simple.Syndicator.addActivationHeaders():

String remoteProtocol = this.request.isSecure()?"HTTPS":"HTTP";
connection.addRequestProperty("remote-protocol",remoteProtocol);

In info.magnolia.cms.servlets.SimpleExchange.doGet():
this.protocol = this.request.getHeader("remote-protocol");



 Comments   
Comment by Sameer Charles [ 06/Dec/04 ]

define perperty "senderURL" with value identifying yourself.
/config/subscribers/..../SUBSCRIBER/senderURL
eg. https://localhost:8081
if you leave this property empty or do not include, SimpleExchange will try to find out from the request headers which does not work in case of different protocol on either side.

fix updated on svn.magnolia.info/svn/magnolia

Generated at Mon Feb 12 03:15:20 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.