Merchandise order form allows selection of wrong shipping option #877

Closed
opened 2019-04-15 08:54:28 +00:00 by reinhard · 6 comments
Member

The merchandise order form does not verify whether the selected shipping option matches the country of the shipping address. So it's currently possible, for example, to enter Germany as the detination address and still select the option for internation shipping.

The merchandise order form does not verify whether the selected shipping option matches the country of the shipping address. So it's currently possible, for example, to enter Germany as the detination address and still select the option for internation shipping.
reinhard added the
cgi Scripting
label 2019-04-15 10:07:55 +00:00
monochromec self-assigned this 2019-05-25 13:36:10 +00:00
Member

When trying to push the changes, I get the following error message:

! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.fsfe.org/FSFE/fsfe-website

Apparently this boils down to some server-side scripts doing a form of pre-validation. As soon as this is fixed, I am going to try to push the changes again.

When trying to push the changes, I get the following error message: ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.fsfe.org/FSFE/fsfe-website Apparently this boils down to some server-side scripts doing a form of pre-validation. As soon as this is fixed, I am going to try to push the changes again.
Owner

@monochromec, you seem to push to upstream master, this is discouraged. Could you please open a new branch on either your fork or this repo, and create a pull request?

@monochromec, you seem to push to upstream master, this is discouraged. Could you please open a new branch on either your fork or this repo, and create a pull request?
Member

Also, as the pre-validation is checking for valid xml files, there might be an issue with the syntax.

Also, [as the pre-validation is checking for valid xml files](https://git.fsfe.org/FSFE/fsfe-website/src/commit/c1fc1dbf9719d566c805a4ae5cba7e0fda030b99/tools/githooks/pre-receive), there might be an issue with the syntax.
Member

Hi @Max, I'm pretty sure I created a new branch when I cloned the repo but I'll double-check. @vincent: Would it be possible to post / send me the output of the bash script including the error message so that I can try to recreate the issue with the XML file failing (if it's an XML error)?

Hi @Max, I'm pretty sure I created a new branch when I cloned the repo but I'll double-check. @vincent: Would it be possible to post / send me the output of the bash script including the error message so that I can try to recreate the issue with the XML file failing (if it's an XML error)?
Owner

@monochromec These are the two hooks that we have running: https://git.fsfe.org/FSFE/fsfe-website/src/branch/master/tools/githooks

I strongly suggest to activate the client-side pre-commit hook: https://wiki.fsfe.org/TechDocs/Mainpage/Editing#Enabling_XML_syntax_check

@monochromec These are the two hooks that we have running: https://git.fsfe.org/FSFE/fsfe-website/src/branch/master/tools/githooks I strongly suggest to activate the client-side pre-commit hook: https://wiki.fsfe.org/TechDocs/Mainpage/Editing#Enabling_XML_syntax_check
Member

Sorry, forgot to checkout the branch - I'm getting old :-). Commits have now been pushed but as I don't have the back-end locally, Q/A has been limited. Let me know if there are any issues with the code.

Sorry, forgot to checkout the branch - I'm getting old :-). Commits have now been pushed but as I don't have the back-end locally, Q/A has been limited. Let me know if there are any issues with the code.
Sign in to join this conversation.
No Milestone
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FSFE/fsfe-website#877
No description provided.