This will prevent submission of add forge now requests with invalid
forge URLs from the Web UI and the Web API.
Details
- Reviewers
jayeshv - Group Reviewers
Reviewers - Commits
- rDWAPPS39abda7135c0: add_forge_now: Add client-side and server-side forge URL validation
Diff Detail
- Repository
- rDWAPPS Web applications
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Build has FAILED
Patch application report for D8247 (id=29764)
Rebasing onto 27e448ca12...
Current branch diff-target is up to date.
Changes applied before test
commit 7cd88d370c860cfe9ee77b1248843d32dd9eac21 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Tue Aug 16 16:14:10 2022 +0200 add_forge_now: Add client-side and server-side forge URL validation This will prevent submission of add forge now requests with invalid forge URLs from the Web UI and the Web API.
Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1966/
See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1966/console
Build has FAILED
Patch application report for D8247 (id=29764)
Rebasing onto 27e448ca12...
Current branch diff-target is up to date.
Changes applied before test
commit 7cd88d370c860cfe9ee77b1248843d32dd9eac21 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Tue Aug 16 16:14:10 2022 +0200 add_forge_now: Add client-side and server-side forge URL validation This will prevent submission of add forge now requests with invalid forge URLs from the Web UI and the Web API.
Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1969/
See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1969/console
Build has FAILED
Patch application report for D8247 (id=29780)
Rebasing onto 27e448ca12...
Current branch diff-target is up to date.
Changes applied before test
commit 49edb72083a0136f04be1d9de2235daaa7352600 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Tue Aug 16 16:14:10 2022 +0200 add_forge_now: Add client-side and server-side forge URL validation This will prevent submission of add forge now requests with invalid forge URLs from the Web UI and the Web API.
Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1972/
See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1972/console
Build is green
Patch application report for D8247 (id=29780)
Rebasing onto 27e448ca12...
Current branch diff-target is up to date.
Changes applied before test
commit 49edb72083a0136f04be1d9de2235daaa7352600 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Tue Aug 16 16:14:10 2022 +0200 add_forge_now: Add client-side and server-side forge URL validation This will prevent submission of add forge now requests with invalid forge URLs from the Web UI and the Web API.
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1973/ for more details.
swh/web/templates/add_forge_now/creation_form.html | ||
---|---|---|
48 | Can we avoid this validation using URL field in a Django form? That seems to support custom validation as well. |
swh/web/templates/add_forge_now/creation_form.html | ||
---|---|---|
48 | At the moment we cannot as we do not use django ModelForm the right way (we handled the HTML form ourself instead of "simply" including the django form in the template and we send form data to server through js). Proceeding like this also enables to save an HTTP request to validate form data. |
Build is green
Patch application report for D8247 (id=29792)
Rebasing onto b6ddca59dd...
Current branch diff-target is up to date.
Changes applied before test
commit 39abda7135c0203177ee35b2d01e0c5befb7bf1f Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Tue Aug 16 16:14:10 2022 +0200 add_forge_now: Add client-side and server-side forge URL validation This will prevent submission of add forge now requests with invalid forge URLs from the Web UI and the Web API.
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1976/ for more details.