2023-04-12 14:33:16 |
William Desportes |
bug |
|
|
added bug |
2023-04-12 23:42:09 |
Athos Ribeiro |
nominated for series |
|
Ubuntu Jammy |
|
2023-04-12 23:42:09 |
Athos Ribeiro |
bug task added |
|
phpmyadmin (Ubuntu Jammy) |
|
2023-04-12 23:42:09 |
Athos Ribeiro |
nominated for series |
|
Ubuntu Kinetic |
|
2023-04-12 23:42:09 |
Athos Ribeiro |
bug task added |
|
phpmyadmin (Ubuntu Kinetic) |
|
2023-04-12 23:42:09 |
Athos Ribeiro |
nominated for series |
|
Ubuntu Lunar |
|
2023-04-12 23:42:09 |
Athos Ribeiro |
bug task added |
|
phpmyadmin (Ubuntu Lunar) |
|
2023-04-12 23:46:14 |
Athos Ribeiro |
bug |
|
|
added subscriber Athos Ribeiro |
2023-04-14 16:25:31 |
William Desportes |
attachment added |
|
debdiff for lunar https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/2016016/+attachment/5664064/+files/5.2.1+dfsg-1ubuntu1.patch |
|
2023-04-14 16:27:42 |
Ubuntu Foundations Team Bug Bot |
tags |
|
patch |
|
2023-04-14 16:27:50 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2023-05-12 02:24:06 |
Athos Ribeiro |
description |
[ Impact ]
* Forcing PHP 8 is required as users posted their concerns and invade Internet about this subject since then
- See: https://github.com/phpmyadmin/phpmyadmin/issues/17503
- See: https://github.com/phpmyadmin/phpmyadmin/issues/17523 (same as above but with the hate/heat enabled)
- The packaging of symfony is made so it's impossible to run PHP < 8
[ Test Plan ]
* To reproduce the forced PHP 8 message, install deb sury's PHP 7.4
or an Ubuntu jammy with PHP 7.4 installed and Apache2
and the packages mentioned in https://bugs.launchpad.net/ubuntu/+source/symfony/+bug/1975892
- Now that everything is installed, admire the error 500
- Apply my patch on `libraries/common.inc.php`
- Refresh, and see the HTML
Alternative solution, change the `PHP_VERSION_ID < 80000` to `true` and see the HTML.
[ Where problems could occur ]
* Users could complain about the change for the PHP 8 version required,
but that would mean they tweaked their distribution in a very weird way to have the symfony packages non buggy.
[ Other Info ]
See: https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/2013402 |
[ Impact ]
The lack of PHP < 8 support in Ubuntu's Symfony due to the Ubuntu PSR stack delta makes phpmyadmin crash when users try to run it through unsupported (non-Ubuntu) versions of PHP < 8 (See LP: #1975892).
This led to several complaints in the upstream channels
- See: https://github.com/phpmyadmin/phpmyadmin/issues/17503
- See: https://github.com/phpmyadmin/phpmyadmin/issues/17523 (same as above but with the hate/heat enabled)
[ Test Plan ]
From a clean ll/kk/jj install:
- Install phpmyadmin (no need to setup a DB)
# apt update
# apt install -y phpmyadmin
- Configure apache2
# echo 'Include /etc/phpmyadmin/apache.conf' >> /etc/apache2/apache2.conf
# systemctl restart apache2
- Verify the login page in http://localhost/phpmyadmin/ displays a login page.
- Install PHP 7.4 (you can use Onrej Sury's PPA for this purpose)
# add-apt-repository ppa:ondrej/php
# apt update
# apt install -y php7.4
- Run phpmyadmin with the custom php 7.4
# a2dismod php8.1
# a2enmod php7.4
# systemctl restart apache2
- Verify the login page in http://localhost/phpmyadmin/ is now blank. You should also see an error in your apache logs pointing to Symfony, such as "[php7:error] ... PHP Parse error: syntax error, unexpected 'static' (T_STATIC) in /usr/share/php/Symfony/Component/DependencyInjection/ContainerBuilder.php on line 27
- Install the proposed version of phpmyadmin (the fix provided here)
- Run phpmyadmin with the custom php 7.4
- Verify the login page in http://localhost/phpmyadmin/ is no longer blank. Instead of the blank page, you should now get a message informing you that you are running PHP < 8 and should use PHP >= 8 to run phpmyadmin.
- For completeness, you can verify that the package still works with php8. disable the php7.4 apache module and re-enable the php8.1 one.
# a2dismod php7.4
# a2enmod php8.1
# systemctl restart apache2
- Then verify that http://localhost/phpmyadmin/ displays the login page again.
[ Where problems could occur ]
Users with custom environments, using a third party PHP < 8 version and a third party PSR/symfony stack (non-Ubuntu) would experience a regression here. Their phpmyadmin installation would go from a functional state to a "gracefully halting" one.
This should not be a major issue given such users would be running an unsupported customization of our stack. The workaround for such users would be to consume phpmyadmin from a different source.
[ Other Info ]
While this SRU is proposing to fix a customized workflow (i.e., Ubuntu's PHP users are not affected here), there is a large user base consuming the PHP interpreter from third party sources. Therefore it would be nice from us to let them know this workflow is currently unsupported. This would also reduce the burden on the upstream project, as shown above.
Also, see: https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/2013402 |
|
2023-05-12 02:27:26 |
Athos Ribeiro |
summary |
[SRU] require PHP 8 (LP: #1975892) |
Require PHP >= 8.0 due to Symfony stack incompatibilities |
|
2023-05-12 02:47:07 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~athos-ribeiro/ubuntu/+source/phpmyadmin/+git/phpmyadmin/+merge/442711 |
|
2023-05-12 16:05:34 |
Robie Basak |
bug |
|
|
added subscriber Robie Basak |
2023-05-13 11:27:42 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~athos-ribeiro/ubuntu/+source/phpmyadmin/+git/phpmyadmin/+merge/442793 |
|
2023-05-13 18:10:09 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~athos-ribeiro/ubuntu/+source/phpmyadmin/+git/phpmyadmin/+merge/442796 |
|
2023-05-13 18:10:10 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~athos-ribeiro/ubuntu/+source/phpmyadmin/+git/phpmyadmin/+merge/442797 |
|
2023-05-16 22:37:26 |
Launchpad Janitor |
phpmyadmin (Ubuntu): status |
New |
Fix Released |
|
2023-05-19 20:44:55 |
Steve Langasek |
phpmyadmin (Ubuntu Lunar): status |
New |
Fix Committed |
|
2023-05-19 20:44:56 |
Steve Langasek |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2023-05-19 20:44:58 |
Steve Langasek |
bug |
|
|
added subscriber SRU Verification |
2023-05-19 20:45:01 |
Steve Langasek |
tags |
patch |
patch verification-needed verification-needed-lunar |
|
2023-06-06 17:31:30 |
Bryce Harrington |
removed subscriber Ubuntu Sponsors |
|
|
|
2023-07-14 17:02:15 |
Launchpad Janitor |
phpmyadmin (Ubuntu Jammy): status |
New |
Confirmed |
|
2023-07-14 17:02:15 |
Launchpad Janitor |
phpmyadmin (Ubuntu Kinetic): status |
New |
Confirmed |
|
2023-08-06 12:50:24 |
Athos Ribeiro |
phpmyadmin (Ubuntu Kinetic): status |
Confirmed |
Won't Fix |
|
2023-08-06 13:27:18 |
William Desportes |
tags |
patch verification-needed verification-needed-lunar |
patch verification-done-lunar verification-needed |
|
2023-08-07 15:34:53 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~athos-ribeiro/ubuntu/+source/phpmyadmin/+git/phpmyadmin/+merge/448616 |
|
2023-08-07 16:37:08 |
Athos Ribeiro |
phpmyadmin (Ubuntu Jammy): status |
Confirmed |
In Progress |
|
2023-08-10 18:55:34 |
Andreas Hasenack |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2023-08-10 18:56:10 |
Launchpad Janitor |
phpmyadmin (Ubuntu Lunar): status |
Fix Committed |
Fix Released |
|
2023-08-23 03:20:12 |
Chris Halse Rogers |
phpmyadmin (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2023-08-23 03:20:14 |
Chris Halse Rogers |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2023-08-23 03:20:19 |
Chris Halse Rogers |
tags |
patch verification-done-lunar verification-needed |
patch verification-done-lunar verification-needed verification-needed-jammy |
|
2023-08-31 20:26:40 |
Athos Ribeiro |
description |
[ Impact ]
The lack of PHP < 8 support in Ubuntu's Symfony due to the Ubuntu PSR stack delta makes phpmyadmin crash when users try to run it through unsupported (non-Ubuntu) versions of PHP < 8 (See LP: #1975892).
This led to several complaints in the upstream channels
- See: https://github.com/phpmyadmin/phpmyadmin/issues/17503
- See: https://github.com/phpmyadmin/phpmyadmin/issues/17523 (same as above but with the hate/heat enabled)
[ Test Plan ]
From a clean ll/kk/jj install:
- Install phpmyadmin (no need to setup a DB)
# apt update
# apt install -y phpmyadmin
- Configure apache2
# echo 'Include /etc/phpmyadmin/apache.conf' >> /etc/apache2/apache2.conf
# systemctl restart apache2
- Verify the login page in http://localhost/phpmyadmin/ displays a login page.
- Install PHP 7.4 (you can use Onrej Sury's PPA for this purpose)
# add-apt-repository ppa:ondrej/php
# apt update
# apt install -y php7.4
- Run phpmyadmin with the custom php 7.4
# a2dismod php8.1
# a2enmod php7.4
# systemctl restart apache2
- Verify the login page in http://localhost/phpmyadmin/ is now blank. You should also see an error in your apache logs pointing to Symfony, such as "[php7:error] ... PHP Parse error: syntax error, unexpected 'static' (T_STATIC) in /usr/share/php/Symfony/Component/DependencyInjection/ContainerBuilder.php on line 27
- Install the proposed version of phpmyadmin (the fix provided here)
- Run phpmyadmin with the custom php 7.4
- Verify the login page in http://localhost/phpmyadmin/ is no longer blank. Instead of the blank page, you should now get a message informing you that you are running PHP < 8 and should use PHP >= 8 to run phpmyadmin.
- For completeness, you can verify that the package still works with php8. disable the php7.4 apache module and re-enable the php8.1 one.
# a2dismod php7.4
# a2enmod php8.1
# systemctl restart apache2
- Then verify that http://localhost/phpmyadmin/ displays the login page again.
[ Where problems could occur ]
Users with custom environments, using a third party PHP < 8 version and a third party PSR/symfony stack (non-Ubuntu) would experience a regression here. Their phpmyadmin installation would go from a functional state to a "gracefully halting" one.
This should not be a major issue given such users would be running an unsupported customization of our stack. The workaround for such users would be to consume phpmyadmin from a different source.
[ Other Info ]
While this SRU is proposing to fix a customized workflow (i.e., Ubuntu's PHP users are not affected here), there is a large user base consuming the PHP interpreter from third party sources. Therefore it would be nice from us to let them know this workflow is currently unsupported. This would also reduce the burden on the upstream project, as shown above.
Also, see: https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/2013402 |
[ Impact ]
The lack of PHP < 8 support in Ubuntu's Symfony due to the Ubuntu PSR stack delta makes phpmyadmin crash when users try to run it through unsupported (non-Ubuntu) versions of PHP < 8 (See LP: #1975892).
This led to several complaints in the upstream channels
- See: https://github.com/phpmyadmin/phpmyadmin/issues/17503
- See: https://github.com/phpmyadmin/phpmyadmin/issues/17523 (same as above but with the hate/heat enabled)
[ Test Plan ]
From a clean ll/kk/jj install:
- Install phpmyadmin (no need to setup a DB)
# apt update
# apt install -y phpmyadmin libapache2-mod-php
- Configure apache2
# echo 'Include /etc/phpmyadmin/apache.conf' >> /etc/apache2/apache2.conf
# systemctl restart apache2
- Verify the login page in http://localhost/phpmyadmin/ displays a login page.
- Install PHP 7.4 (you can use Onrej Sury's PPA for this purpose)
# add-apt-repository ppa:ondrej/php
# apt update
# apt install -y php7.4
- Run phpmyadmin with the custom php 7.4
# a2dismod php8.1
# a2enmod php7.4
# systemctl restart apache2
- Verify the login page in http://localhost/phpmyadmin/ is now blank. You should also see an error in your apache logs pointing to Symfony, such as "[php7:error] ... PHP Parse error: syntax error, unexpected 'static' (T_STATIC) in /usr/share/php/Symfony/Component/DependencyInjection/ContainerBuilder.php on line 27
- Install the proposed version of phpmyadmin (the fix provided here)
- Run phpmyadmin with the custom php 7.4
- Verify the login page in http://localhost/phpmyadmin/ is no longer blank. Instead of the blank page, you should now get a message informing you that you are running PHP < 8 and should use PHP >= 8 to run phpmyadmin.
- For completeness, you can verify that the package still works with php8. disable the php7.4 apache module and re-enable the php8.1 one.
# a2dismod php7.4
# a2enmod php8.1
# systemctl restart apache2
- Then verify that http://localhost/phpmyadmin/ displays the login page again.
[ Where problems could occur ]
Users with custom environments, using a third party PHP < 8 version and a third party PSR/symfony stack (non-Ubuntu) would experience a regression here. Their phpmyadmin installation would go from a functional state to a "gracefully halting" one.
This should not be a major issue given such users would be running an unsupported customization of our stack. The workaround for such users would be to consume phpmyadmin from a different source.
[ Other Info ]
While this SRU is proposing to fix a customized workflow (i.e., Ubuntu's PHP users are not affected here), there is a large user base consuming the PHP interpreter from third party sources. Therefore it would be nice from us to let them know this workflow is currently unsupported. This would also reduce the burden on the upstream project, as shown above.
Also, see: https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/2013402 |
|
2023-08-31 20:37:25 |
Athos Ribeiro |
tags |
patch verification-done-lunar verification-needed verification-needed-jammy |
patch verification-done verification-done-jammy verification-done-lunar |
|
2023-11-27 16:02:15 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~mkukri/ubuntu/+source/phpmyadmin/+git/phpmyadmin/+merge/456374 |
|
2023-12-13 04:57:03 |
Chris Halse Rogers |
phpmyadmin (Ubuntu Jammy): status |
Fix Committed |
Confirmed |
|
2023-12-13 04:57:09 |
Chris Halse Rogers |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|