default page, ubuntu_logo.png is missing

Bug #1947459 reported by psl
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Fix Released
Low
Mitchell Dzurick
Jammy
Invalid
Low
Unassigned
Mantic
In Progress
Undecided
Mitchell Dzurick

Bug Description

[ Impact ]

The default page of apache2 is missing the Ubuntu branding.

[ Test Plan ]

1. Create an ubuntu desktop VM
$ lxc launch images:ubuntu/23.10/desktop mantic-desktop --vm -c limits.cpu=4 -c limits.memory=4GiB --console=vga

2. Install required packages
$ sudo apt update -y && sudo apt install -y apache2
$ sudo snap install firefox

3. Open firefox and type in "localhost"

[ Where problems could occur ]

1. Specific browsers could not render the image properly. Only firefox was tested here.
2. Adding the image into the package will increase the package size. Uncompressed image is 7.3K

Related branches

Revision history for this message
Bryce Harrington (bryce) wrote :

Confirmed issue as described. CLI test case for verifying issue:

$ sudo apt-get install -y apache2
$ sudo apt-get install -y linkchecker
$ linkchecker --check-extern /var/www/html/index.html
...
URL `/icons/ubuntu-logo.png'
Name `Ubuntu Logo'
Parent URL file:///var/www/html/index.html, line 196, col 9
Real URL file:///icons/ubuntu-logo.png
Check time 0.001 seconds
Result Error: URLError: <urlopen error [Errno 2] No such file or directory: '/icons/ubuntu-logo.png'>

URL `/manual'
Name `manual'
Parent URL file:///var/www/html/index.html, line 258, col 40
Real URL file:///manual
Check time 0.003 seconds
Result Error: URLError: <urlopen error [Errno 2] No such file or directory: '/manual'>
 1 thread active, 0 links queued, 4 links in 4 URLs checked, runtime 1 seconds

I've reproduced this on both bionic and impish. Since this is more a cosmetic issue with an example web page, I am doubtful the impact significant enough to be valid for SRU (feel free to make a case otherwise though). So, I'll target to ubuntu-devel only at this time.

tags: added: server-todo
Changed in apache2 (Ubuntu Jammy):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Lena Voytek (lvoytek) wrote :

Hello,

This issue should only happen when opening /var/www/html/index.html directly. The Ubuntu logo should appear when accessing the file through the webserver: http://127.0.0.1

The image shows up properly when accessing it this way because /usr/share/apache2 is the location apache2 considers to be its filesystem base. Therefore a call to /icons/ubuntu-logo.png is actually a call to /usr/share/apache2/icons/ubuntu-logo.png.

Changed in apache2 (Ubuntu Jammy):
status: Triaged → Invalid
Revision history for this message
Marc Cawood (cawoodm) wrote :

I can confirm this is still an issue with a fresh install of Ubuntu 23.10 over http://localhost

The file /usr/share/apache2/icons/ubuntu-logo.png just does not exist

Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Thanks Marc, I am also able to reproduce.

Reproduction steps:

$ lxc launch images:ubuntu/23.10/desktop mantic-desktop --vm -c limits.cpu=4 -c limits.memory=4GiB --console=vga

In VM:
$ sudo apt update -y
$ sudo snap install firefox

In firefox inside the VM:
type in "localhost"

Top left of the welcome page shows "Ubuntu Logo" instead of displaying the logo.

Changed in apache2 (Ubuntu Jammy):
status: Invalid → New
Changed in apache2 (Ubuntu):
status: Invalid → Confirmed
Changed in apache2 (Ubuntu):
status: Confirmed → New
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Tried it on Jammy, and I see the logo, so setting to invalid.

I reproduced it on Mantic so far.

Changed in apache2 (Ubuntu Jammy):
status: New → Invalid
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Lunar is fine. I'll submit an MP for Mantic/Noble soon.

Changed in apache2 (Ubuntu):
status: New → Triaged
Lena Voytek (lvoytek)
Changed in apache2 (Ubuntu Mantic):
status: New → Triaged
Changed in apache2 (Ubuntu Mantic):
assignee: nobody → Mitchell Dzurick (mitchdz)
Changed in apache2 (Ubuntu):
assignee: nobody → Mitchell Dzurick (mitchdz)
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

I'm adding an autopkgtest in Noble so hopefully this gets caught in future merges.

tags: added: block-proposed-mantic
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apache2 - 2.4.57-2ubuntu3

---------------
apache2 (2.4.57-2ubuntu3) noble; urgency=medium

  * d/icons/ubuntu-logo.png: add Ubuntu image for welcome page (LP: #1947459).
  * d/t/check-ubuntu-branding: add check for ubuntu branding.

 -- Mitchell Dzurick <email address hidden> Mon, 13 Nov 2023 10:49:48 -0700

Changed in apache2 (Ubuntu):
status: Triaged → Fix Released
Changed in apache2 (Ubuntu Mantic):
status: Triaged → In Progress
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Just a quick comment about the test case: you don't need to deploy a "heavy" ubuntu desktop VM and use the browser from the VM. Use a lxd, and access it from your host with the browser pointing at the IP of the lxd container.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.