Skip to content

Change how we get the Request object#1590

Merged
Quetzacoalt91 merged 1 commit intoPrestaShop:devfrom
Quetzacoalt91:request-get
Jan 20, 2026
Merged

Change how we get the Request object#1590
Quetzacoalt91 merged 1 commit intoPrestaShop:devfrom
Quetzacoalt91:request-get

Conversation

@Quetzacoalt91
Copy link
Member

@Quetzacoalt91 Quetzacoalt91 commented Jan 7, 2026

Questions Answers
Description? Update Assistant breaks the BO when a module is uploaded and handled in the request. This PR tends to use the existing request from Symfony when possible. There are some limitations though:
  • It appears the service "request_stack" may be non-existing on PS 1.7 because of the limited integration of Symfony on these versions, especially on legacy pages
  • The request stack may have no requests in their list.
In these cases, we still rely on the use of Request::createFromGlobals() with the risk of failures on pages where a file is uploaded. The issue is not completely fixed but mitigated.
Type? bug fix
BC breaks? Nope
Deprecations? Nope
Fixed ticket? Fixes #1586, Fixes #1578, Fixes PrestaShop/PrestaShop#39239
Sponsor company @PrestaShopCorp
How to test? Use the module test_module_40410.zip, configure it with Update Assistant installed. On the configuration of this test module, select a file and upload it, you'll get the exception about a non-existing file that is fixed by this PR.

@Quetzacoalt91 Quetzacoalt91 added this to the 7.6.0 milestone Jan 7, 2026
@Quetzacoalt91 Quetzacoalt91 self-assigned this Jan 7, 2026
@Quetzacoalt91 Quetzacoalt91 added the bug Type: Bug fix label Jan 7, 2026
@github-project-automation github-project-automation bot moved this to Ready for review in PR Dashboard Jan 7, 2026
@Quetzacoalt91 Quetzacoalt91 marked this pull request as ready for review January 8, 2026 16:50
@Quetzacoalt91 Quetzacoalt91 force-pushed the request-get branch 6 times, most recently from 0319f95 to 18c7de6 Compare January 9, 2026 14:28
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 9, 2026

@Quetzacoalt91 Quetzacoalt91 requested a review from a team January 16, 2026 15:23
@AureRita AureRita self-assigned this Jan 19, 2026
Copy link
Contributor

@AureRita AureRita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @

Thank you for your PR, I tested it and it seems to works as you can see :

Capture.video.du.2026-01-19.18-04-53.mp4

Tested on :
9.0.2

Because the PR seems to works as expected, It's QA ✔️

Thank you

@AureRita AureRita added QA ✔️ Status: Check done, Code approved and removed waiting for QA labels Jan 19, 2026
@Quetzacoalt91 Quetzacoalt91 merged commit de41461 into PrestaShop:dev Jan 20, 2026
56 checks passed
@github-project-automation github-project-automation bot moved this from Ready for review to Merged in PR Dashboard Jan 20, 2026
@Quetzacoalt91 Quetzacoalt91 deleted the request-get branch January 20, 2026 09:07
@ingridusta
Copy link

FYI following v7.6 beta release tests, it's not working on 8.2.3 neither (but works on 9.0.3 😉).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Type: Bug fix QA ✔️ Status: Check done, Code approved

Projects

Archived in project

5 participants