Skip to content

Test rigorously for URLs while allowing relative URLs.#134

Merged
kpodemski merged 5 commits intoPrestaShop:devfrom
lmeyer1:fix-relative-url
Mar 15, 2023
Merged

Test rigorously for URLs while allowing relative URLs.#134
kpodemski merged 5 commits intoPrestaShop:devfrom
lmeyer1:fix-relative-url

Conversation

@lmeyer1
Copy link
Contributor

@lmeyer1 lmeyer1 commented Aug 5, 2021

Questions Answers
Description? "Test rigorously for URLs while allowing relative URLs. Symfony 3.4 has not the option relativeProtocol as newer version have. I use therefore directly a regex.
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#25299
How to test? See steps to reproduce in issue PrestaShop/PrestaShop#25299

Progi1984
Progi1984 previously approved these changes Oct 28, 2021
Copy link
Member

@Progi1984 Progi1984 left a comment

Choose a reason for hiding this comment

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

@PierreRambaud I approve. With this, the module is compatible with a bigger range of modules.

Copy link
Contributor

@PierreRambaud PierreRambaud left a comment

Choose a reason for hiding this comment

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

Few comments

@Progi1984 Progi1984 added the Waiting for author Waiting for author feedback label Nov 2, 2021
@lmeyer1
Copy link
Contributor Author

lmeyer1 commented Dec 6, 2021

@Progi1984
About Waiting for Author tag: As far as I understand, I'm done. I've fixed what @PierreRambaud asked for.

@atomiix atomiix removed the Waiting for author Waiting for author feedback label Dec 9, 2021
atomiix
atomiix previously approved these changes Dec 9, 2021
@lmeyer1 lmeyer1 requested a review from PierreRambaud December 9, 2021 18:07
@khouloudbelguith
Copy link

Hi @lmeyer1, @matks,

Yes, I was able to reproduce the issue with dev branch.
I created a new issue: PrestaShop/PrestaShop#28292

But this PR, I think, is blocked by this issue.
Ping @matks what do you think?

Thanks!

@jf-viguier
Copy link

Could you please reopen the PR ? It could then be tested by QA.

@ghost ghost reopened this Aug 23, 2022
@ghost
Copy link

ghost commented Aug 23, 2022

Hello @jf-viguier @khouloudbelguith && @lmeyer1

Pull Request reopen

@jf-viguier
Copy link

Thanks @okom3pom, curiously, this PR is tagged in the next version here : 5.0.5

@ghost ghost removed this from the 5.0.5 milestone Aug 23, 2022
@lmeyer1
Copy link
Contributor Author

lmeyer1 commented Aug 31, 2022

This PR has a Waiting for author label. What am I supposed to do ? @khouloudbelguith

@matks matks removed the Waiting for author Waiting for author feedback label Sep 1, 2022
@matks
Copy link
Contributor

matks commented Sep 1, 2022

This PR has a Waiting for author label. What am I supposed to do ? @khouloudbelguith

This ping was the right thing to do 😄

@khouloudbelguith
Copy link

Hello,

I think we need to add the Blocked label since this PR cannot be tested because of this issue PrestaShop/PrestaShop#28292
I still reproduce the same bug with PS1.7.8.7 and the dev branch of the module ps_linklist.

Thanks!

@khouloudbelguith khouloudbelguith added Waiting for QA Blocked Status: The issue is blocked by another task labels Sep 1, 2022
@lmeyer1
Copy link
Contributor Author

lmeyer1 commented Oct 17, 2022

@khouloudbelguith This PR should be unblocked and PrestaShop/PrestaShop#28292 should be closed. It seems the latter has been fixed here: 0011b28

@kpodemski kpodemski removed the Blocked Status: The issue is blocked by another task label Oct 17, 2022
@hibatallahAouadni hibatallahAouadni self-assigned this Nov 8, 2022
Copy link

@hibatallahAouadni hibatallahAouadni left a comment

Choose a reason for hiding this comment

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

Hello @lmeyer1

Thanks for your PR 🚀
The issue of custom link url validation has been fixed with this PR 👏
But I found another issue, see the attached screen record below:

issue_25299.webm

When I tried to add a custom URL while my domain is composed (ex: prestashop/prestashop800/) the linklist module will use only the first part of the URL (ex:prestashop).
So, is this issue should be fixed in this PR or it's out of scope this PR?
Waiting for your feedback.

Thanks!

@hibatallahAouadni hibatallahAouadni added Waiting for author Waiting for author feedback and removed Waiting for QA labels Nov 8, 2022
@lmeyer1
Copy link
Contributor Author

lmeyer1 commented Nov 8, 2022

@hibatallahAouadni
The scope of the PR was limited to allow relative URLs.
I'm aware, that relative URLs won't work in a multishop context, if there is a Virtual URI part that differs from one shop to the other.
If we have a Physical URI part in the shop URLs, IMHO, it is up to the user, to add this part in the field URL. for your case, include prestashop800/ in the relative URL.

Without this PR, the custom URL part of this module is not usable in a multishop context. Now it is, with the exception when the participating shop do not all share the same Virtual URI (by default /)

@hibatallahAouadni hibatallahAouadni removed their assignment Nov 8, 2022
@kpodemski kpodemski removed the Waiting for author Waiting for author feedback label Mar 15, 2023
@kpodemski kpodemski added this to the 6.0.1 milestone Mar 15, 2023
@kpodemski kpodemski merged commit a5a2050 into PrestaShop:dev Mar 15, 2023
@kpodemski
Copy link
Contributor

Thanks @lmeyer1

Sorry for the late response, it was still marked as "Waiting for author" :-(

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native module ps_linklist custom link url validation