? ? Pending

User tests: Successful: Unsuccessful:

avatar datsepp
datsepp
25 Oct 2019

Pull Request for Issue #26637.

Summary of Changes

Good evening/night. I wanted to go to bed 2 or 3 hours ago, now I am here.
I started to work on the issue #26637. First of all I thought it's just a small change in the request.xml of the com_privacy module, until I determine that this wasn't the case.

After switching from class to class I got into the validate() method of the FormModel, afterwards into the validate() method of FormField. Here I found the 'testing' rules part which got packed into a try catch block.

Tl;dr in conclusion: I changed return statements to throw statements in the EmailRule for fitting into the try catch block of FormField.php, which catches these exceptions. Other rules are doing that as well as far as I could observe.

Testing Instructions

Thats the awesome part: It's working everywhere, where you have to test if an email address is valid.

You can test it like this (#26637 ):

  1. open your admin control panel
  2. navigate to users -> privacy -> requests
  3. press new on the top left
  4. enter a non valid e-mail address
  5. save&close it.

Expected result

image

Documentation Changes Required

I added a throw paragraph. Hope that's enough for that.

avatar datsepp datsepp - open - 25 Oct 2019
avatar datsepp datsepp - change - 25 Oct 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Oct 2019
Category Libraries
avatar datsepp datsepp - change - 25 Oct 2019
The description was changed
avatar datsepp datsepp - edited - 25 Oct 2019
avatar ChristineWk ChristineWk - test_item - 25 Oct 2019 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 25 Oct 2019

I have tested this item successfully on 71b13d9


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26810.

avatar datsepp datsepp - change - 25 Oct 2019
Labels Added: ?
avatar richard67 richard67 - test_item - 25 Oct 2019 - Tested successfully
avatar richard67
richard67 - comment - 25 Oct 2019

I have tested this item successfully on 401ceb5


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26810.

avatar richard67
richard67 - comment - 25 Oct 2019

@datsepp Good catch ? Only the introduction of the summary of changes reads a bit long at the beginning ?

avatar richard67
richard67 - comment - 25 Oct 2019

@Quy RTC please.

avatar Quy Quy - change - 25 Oct 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 25 Oct 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26810.

avatar datsepp datsepp - change - 25 Oct 2019
Labels Added: ?
avatar deepa-g deepa-g - test_item - 2 Nov 2019 - Tested successfully
avatar deepa-g
deepa-g - comment - 2 Nov 2019

I have tested this item successfully on 77a71a7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26810.

avatar rajnish-dargan rajnish-dargan - test_item - 2 Nov 2019 - Tested successfully
avatar rajnish-dargan
rajnish-dargan - comment - 2 Nov 2019

I have tested this item successfully on 77a71a7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26810.

avatar wilsonge wilsonge - change - 3 Nov 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-11-03 00:43:53
Closed_By wilsonge
avatar wilsonge wilsonge - close - 3 Nov 2019
avatar wilsonge wilsonge - merge - 3 Nov 2019
avatar wilsonge
wilsonge - comment - 3 Nov 2019

Thanks!

Add a Comment

Login with GitHub to post a comment