Remove uptime from the motd-news user agent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-files (Ubuntu) |
Fix Released
|
High
|
Andreas Hasenack | ||
Xenial |
Fix Released
|
Undecided
|
Andreas Hasenack | ||
Bionic |
Fix Released
|
Undecided
|
Andreas Hasenack | ||
Focal |
Fix Released
|
Undecided
|
Andreas Hasenack |
Bug Description
[Impact]
The uptime value in the user-agent string sent to the motd-news server is unused and not necessary. It should be removed.
[Test Case]
Inspect the /etc/update-
Previous version:
$ grep uptime /etc/update-
# Some messages may only be pertinent before or after some amount of uptime
read up idle < /proc/uptime
uptime=
USER_AGENT=
Updated version:
$ grep uptime /etc/update-
(no output)
[Regression Potential]
The server side, if it were checking this value, could be surprised by this change.
[Other Info]
N/A
[Original Description]
I don't why that was included but it shouldn't be. Please remove it.
Related branches
- Christian Ehrhardt (community): Approve
- Canonical Server: Pending requested
-
Diff: 362 lines (+197/-15)10 files modifieddebian/changelog (+35/-0)
debian/conffiles (+0/-1)
debian/control (+13/-1)
debian/motd-news-config.conffiles (+1/-0)
debian/motd-news-config.postinst (+50/-0)
debian/postinst.in (+19/-0)
debian/postrm (+6/-0)
debian/preinst (+34/-0)
debian/rules (+19/-4)
debian/update-motd.d/50-motd-news (+20/-9)
- Christian Ehrhardt (community): Approve
- Canonical Server: Pending requested
-
Diff: 254 lines (+137/-11)8 files modifieddebian/base-files.maintscript (+2/-0)
debian/changelog (+33/-0)
debian/control (+13/-1)
debian/motd-news-config.install (+1/-0)
debian/motd-news-config.postinst (+55/-0)
debian/postinst.in (+13/-0)
debian/rules (+0/-1)
update-motd.d/50-motd-news (+20/-9)
- Christian Ehrhardt (community): Approve
- Canonical Server: Pending requested
-
Diff: 252 lines (+137/-11)8 files modifieddebian/base-files.maintscript (+1/-0)
debian/changelog (+33/-0)
debian/control (+14/-1)
debian/motd-news-config.install (+1/-0)
debian/motd-news-config.postinst (+55/-0)
debian/postinst.in (+13/-0)
debian/rules (+0/-1)
motd/50-motd-news (+20/-9)
- Bryce Harrington (community): Approve
- Canonical Server Core Reviewers: Pending requested
-
Diff: 33 lines (+8/-5)2 files modifieddebian/changelog (+7/-0)
motd/50-motd-news (+1/-5)
Changed in base-files (Ubuntu): | |
status: | New → In Progress |
description: | updated |
Changed in base-files (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in base-files (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in base-files (Ubuntu Focal): | |
status: | New → In Progress |
Changed in base-files (Ubuntu Xenial): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
Changed in base-files (Ubuntu Bionic): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
Changed in base-files (Ubuntu Focal): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
tags: | removed: verification-needed |
There is this comment next to the uptime grabbing: "uptime/ $up/$idle"
# Some messages may only be pertinent before or after some amount of uptime
read up idle < /proc/uptime
uptime=
As far as I know, this was never used, as the server serves static content.