Merge lp:~teward/ubuntu-cdimage/use-relative-css-links into lp:ubuntu-cdimage

Proposed by Thomas Ward
Status: Rejected
Rejected by: Steve Langasek
Proposed branch: lp:~teward/ubuntu-cdimage/use-relative-css-links
Merge into: lp:ubuntu-cdimage
Diff against target: 40 lines (+7/-7)
2 files modified
lib/cdimage/tests/test_tree.py (+4/-4)
lib/cdimage/tree.py (+3/-3)
To merge this branch: bzr merge lp:~teward/ubuntu-cdimage/use-relative-css-links
Reviewer Review Type Date Requested Status
Steve Langasek Needs Resubmitting
Review via email: mp+359295@code.launchpad.net

Commit message

Use relative CSS inlude links instead of releases.u.c hardlinks

Description of the change

Per RT ticket #32732, the Ubuntu Mirrors and web design teams are now using *relative* CSS includes for the CSS stylesheets. This was done so that people running mirrors behind HTTPS:// will be able to properly include the CSS stylesheets without issues, because even if we enforce HTTPS upgrades for includes, we will *not* be able to get https://releases.ubuntu.com/... because there is no HTTPS listener or SSL certificate.

This is why RT ticket #32732 was created, and why the team used relative CSS paths for includes.

However, this is not done for the cdimages' pages CSS which will fail to be included properly and suffer the same problem (which prompted RT ticket #32842). In order for these to properly work for the individual pages on other mirrors, the CSS include paths need to be relative to the mirror's root directory (/include/...) rather than still referring to releases.ubuntu.com (//releases.ubuntu.com/include). With this change in place, the cdimages' HEADER and FOOTER pages for the web page displays will easily be fixed to be compliant with RT ticket #32732.

The branch changes implement changes which allow mirror-root relative includes rather than releases.u.c external required includes to fix the issues observed on HTTPS mirrors.

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

No longer applies cleanly against the source, and the source is being moved to git. Please resubmit there.

review: Needs Resubmitting

Unmerged revisions

1762. By Thomas Ward

Use relative CSS links instead of hardlinking (RT #32732 and #32842)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/cdimage/tests/test_tree.py'
2--- lib/cdimage/tests/test_tree.py 2018-11-06 18:34:26 +0000
3+++ lib/cdimage/tests/test_tree.py 2018-11-23 17:25:09 +0000
4@@ -317,13 +317,13 @@
5 assets = 'https://assets.ubuntu.com/v1'
6 for project, expected in (
7 ("ubuntu", [assets + "/vanilla-framework-version-1.8.0.min.css"]),
8- ("kubuntu", ["//releases.ubuntu.com/include/kubuntu.css"]),
9+ ("kubuntu", ["/include/kubuntu.css"]),
10 ("kubuntu-plasma5",
11- ["//releases.ubuntu.com/include/kubuntu-plasma5.css"]),
12+ ["/include/kubuntu-plasma5.css"]),
13 ("lubuntu",
14- ["//cdimage.ubuntu.com/include/lubuntu/style.css"]),
15+ ["/include/lubuntu/style.css"]),
16 ("lubuntu-next",
17- ["//cdimage.ubuntu.com/include/lubuntu/style.css"]),
18+ ["/include/lubuntu/style.css"]),
19 ):
20 self.config["PROJECT"] = project
21 publisher = Publisher(self.tree, "daily")
22
23=== modified file 'lib/cdimage/tree.py'
24--- lib/cdimage/tree.py 2018-11-12 19:19:26 +0000
25+++ lib/cdimage/tree.py 2018-11-23 17:25:09 +0000
26@@ -473,11 +473,11 @@
27
28 def cssincludes(self):
29 if self.project == "kubuntu":
30- return ["//releases.ubuntu.com/include/kubuntu.css"]
31+ return ["/include/kubuntu.css"]
32 if self.project == "kubuntu-plasma5":
33- return ["//releases.ubuntu.com/include/kubuntu-plasma5.css"]
34+ return ["/include/kubuntu-plasma5.css"]
35 if self.project in ("lubuntu", "lubuntu-next"):
36- return ["//cdimage.ubuntu.com/include/lubuntu/style.css"]
37+ return ["/include/lubuntu/style.css"]
38 else:
39 return ["https://assets.ubuntu.com/v1/" +
40 "vanilla-framework-version-1.8.0.min.css"]

Subscribers

People subscribed via source and target branches