View Issue Details

IDProjectCategoryView StatusLast Update
0002909SOGowith SOGopublic2016-05-27 18:49
ReporterWolf Assigned Toludovic  
PrioritylowSeveritytrivialReproducibilityalways
Status closedResolutionsuspended 
Platform[Server] LinuxOSRHEL/CentOSOS Version6
Product Version2.2.7 
Fixed in Version2.2.11 
Summary0002909: script updates.php not working in https environment
Description

The script updates.php is using the variable 'SCRIPT_URI' to determine the updateLink URI, but this variable 'SCRIPT_URI' is not set in https environment.

Using Apache/2.2.15 (Unix) on CentOS release 6.5

Steps To Reproduce

Switch protocol from http to https.

Additional Information

Please check the attached script. It is working for me in both environments.

TagsNo tags attached.

Activities

Wolf

Wolf

2014-08-28 07:46

reporter  

updates.php (3,406 bytes)
pienne

pienne

2014-09-01 07:49

reporter   ~0007455

just replace
<em:updateLink><?php echo $protocol . '://' . getenv ('SERVER_NAME') . dirname(getenv('REQUEST_URI')) . '/' . $plugin["filename"] ?></em:updateLink>

with the default line

<em:updateLink><?php echo dirname(getenv('SCRIPT_URI')) . '/' . $plugin["filename"] ?></em:updateLink>

the https or http will be used depending on what you defined in the integrator

ludovic

ludovic

2016-05-27 18:49

administrator   ~0010238

That was in 2.2.11, using https://github.com/inverse-inc/sogo/commit/e2d22125

Issue History

Date Modified Username Field Change
2014-08-28 07:46 Wolf New Issue
2014-08-28 07:46 Wolf File Added: updates.php
2014-09-01 07:49 pienne Note Added: 0007455
2016-05-27 18:49 ludovic Note Added: 0010238
2016-05-27 18:49 ludovic Status new => closed
2016-05-27 18:49 ludovic Assigned To => ludovic
2016-05-27 18:49 ludovic Resolution open => suspended
2016-05-27 18:49 ludovic Fixed in Version => 2.2.11