Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid warning open_basedir restriction (using fetch instead of display) #154

Merged
merged 3 commits into from
Jun 29, 2022

Conversation

PrestaEdit
Copy link
Contributor

@PrestaEdit PrestaEdit commented Dec 7, 2021

Questions Answers
Description? Avoided the "Warning: file_exists(): open_basedir restriction in effect. File(/views/templates/front/customerAccount.tpl) is not within the allowed path(s)" due a slash before the "views" on the file route. Also update the line with the "$this->fetch" function (like #152 , thx to @danidomen) + use of fetch instead of display)
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket?  
How to test? Enable debug mode, check that warning not rise

Copy link
Contributor

@matks matks left a comment

Choose a reason for hiding this comment

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

Code seems good but can you please submit a bug report to help QA team analyze and explore this topic?

@PrestaEdit
Copy link
Contributor Author

Regarding the other PR discussion, no needs :D

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Nice, we could also use fetch on the other PR

@PrestaEdit
Copy link
Contributor Author

It's the same issue, I can even close this one and make a suggestion to the another, I don't think about it. My bad.

@ghost
Copy link

ghost commented Dec 7, 2021

Oh sorry I didn't see that it was for the same file.

I prefer fetch to display.

The PR is in QA let's wait for it to be merged and then yours so that everyone's work is rewarded.

matks
matks previously requested changes Dec 20, 2021
Copy link
Contributor

@matks matks left a comment

Choose a reason for hiding this comment

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

Hi everyone, unfortunately php-cs-fixer rejects this contribution.

Also can someone to write clearly what is supposed to be broken in develop, why this PR fixes it, and the difference between display() and fetch() and why fetch() is better 😉

Don't assume the person in front knows all 😄 these informations will be very useful

  • for reviewers
  • for testers
  • for developers who discover this change in the future and wonder why such changes were needed

Copy link

@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 @PierreRambaud,

Can we have an issue and the steps to reproduce to let the team QA test it correctly ?

Thank you :)

@PierreRambaud
Copy link
Contributor

HI @PierreRambaud,

Can we have an issue and the steps to reproduce to let the team QA test it correctly ?

Thank you :)

It can be tested by a dev as the only thing you have to do is to configure the open_basedir php configuration

@matks
Copy link
Contributor

matks commented Jun 7, 2022

@AureRita Is this OK for you if we consider this PR should be tested by developers?

@AureRita
Copy link

AureRita commented Jun 7, 2022

Hi @matks ,

Yes, I think this PR could be tested by developers

@atomiix
Copy link
Contributor

atomiix commented Jun 29, 2022

Everything worked as expected, it's QA ✔
Thanks @PrestaEdit

@Progi1984 Progi1984 added this to the 1.4.3 milestone Jun 29, 2022
@atomiix atomiix merged commit 316f10a into PrestaShop:dev Jun 29, 2022
@Progi1984 Progi1984 added the bug Something isn't working label Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working QA ✔️
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants