Bug 40121 - OX doesn't work with apache2/force_https
OX doesn't work with apache2/force_https
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Apache
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-0-errata
Assigned To: Florian Best
Daniel Tröder
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-27 15:40 CET by Florian Best
Modified: 2016-01-13 13:10 CET (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): External feedback
Max CVSS v3 score:
best: Patch_Available+


Attachments
patch (743 bytes, patch)
2015-11-27 15:40 CET, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2015-11-27 15:40:48 CET
Created attachment 7324 [details]
patch

We received the feedback that owncloud doesn't work with apache2/force_https due to the wrong HTTP redirection status. Modifying the status from 302 (See also) to 301 (Moved permanently) will fix this. Patch attached.
Comment 1 Florian Best univentionstaff 2015-11-27 15:41:47 CET
Sorry, OX not owncloud.
Comment 2 Florian Best univentionstaff 2015-11-27 15:46:19 CET
This has also been reported previously in Ticket#2015112021000124.
Comment 3 Florian Best univentionstaff 2015-12-09 18:16:39 CET
We should also add the following line (Bug #40173) to the patch:
print 'RewriteCond %{REQUEST_URI} != /server-status'
Comment 4 Florian Best univentionstaff 2016-01-04 13:51:40 CET
univention-apache (8.0.1-3):
r66559 | Bug #40121: Bug #40173: fix HTTP status when redirecting to HTTPS

univention-apache.yaml:
r66562 | YAML Bug #40121 Bug #40173
Comment 5 Florian Best univentionstaff 2016-01-12 12:22:43 CET
r66733 | Bug #40121: fix syntax error
Comment 6 Daniel Tröder univentionstaff 2016-01-12 12:44:02 CET
OK: Code
OK: advisory
OK: manual test:
* HTTP status before upgrade: "302 Found" (my OX didn't have an issue with that)
* HTTP status after upgrade: "301 Moved Permanently":

wget --no-check-certificate http://10.200.3.22/appsuite/
HTTP-Anforderung gesendet, warte auf Antwort... 301 Moved Permanently
Platz: https://10.200.3.22/appsuite/[folge]
--2016-01-12 12:33:45--  https://10.200.3.22/appsuite/
Verbindungsaufbau zu 10.200.3.22:443... verbunden.
Comment 7 Janek Walkenhorst univentionstaff 2016-01-13 13:10:44 CET
<http://errata.software-univention.de/ucs/4.1/48.html>