User tests: Successful: Unsuccessful:
content-type:text/html; charset=UTF-8
and the HTTP method is GET
content-type:application/json; charset=utf-8
and the HTTP method is POST
trigger_error('aaa', E_USER_WARNING);
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
i think that's unrelated to this issue.
ok - fair enough ;)
Being completely honest with you, the last time I tried working with JDocumentJson
it just felt completely broken (like it doesn't even JSON encode the data buffer for starters). Also seems pretty stupid if it forces downloads (which it didn't in that case where I was using it in Chrome, and this was last month I was working with it).
BTW, this is just me being nit-picky for the sake of being nit-picky, but headers should be consistently set and sent through the application like https://github.com/joomla/joomla-cms/blob/staging/components/com_finder/controllers/suggestions.json.php does (the day components ever get real automated tests written for them using PHP's header()
function will just make things act up).
ok just changed jquery javascript to handle the json object data without the need to use parseJSON (it's already fetched as a json object).
ready for testing.
NOTE: i also changed the HTTP method to POST so the smtp server password doesn't appear in the server/proxies log files.
Title |
|
@piotrmocko please try now i have added some ajax fail treatments in this PR.
Don't forgot to clear the browser cache.
no it also works on malformed json , just tested.
to trown a warning i added
trigger_error('aaa', E_USER_WARNING);
in https://github.com/joomla/joomla-cms/pull/9685/files#diff-f0600c10281461980c2770b1951d453eR42
HTTP status 200. Page:
Warning: aaa in /path/to/joomla-staging/administrator/components/com_config/controller/application/sendtestmail.php on line 42
{"success":true,"message":null,"messages":{"success":["The email was sent successfully to <strong>test@test.com<\/strong> using <strong>SMTP<\/strong>. You should check that you've received the test email."]},"data":true}
I will test it again
ok, don't forget to clear the browser cache
Title |
|
I have tested this item successfully on 6d22f55
Tested as described in the instructions, but with Firefox/Firebug and not Chrome console
Finally it helped :) It looks like it has changed in jQuery in last years.
You may consider to display in the message:
(jqXHR.responseText.indexOf('<html') === -1 ? jqXHR.responseText : error)
This PR has received new commits.
CC: @richard67
This PR has received new commits.
CC: @richard67
@richard67 @piotrmocko
Added better error reporting,Test instructions updated. Please test now.
If you explain me what "mimified" means
If you explain me what "mimified" means
copy pasting ... errors... and lack of sleep
Ah, I thought maybe it has to do with a girl named "Mimi"
@andrepereiradasilva The error message I get in the test looks as follows:
A parse error as occured while processing the following JSON data:
Warning: aaa in /homepages/38/d391032706/htdocs/test7/administrator/components/com_config/controller/application/sendtestmail.php on line 43
{"success":true,"message":null,"messages":{"success":["The email was sent successfully to admin@richard-fath.de<\/strong> using PHP Mail<\/strong>. You should check that you've received the test email."]},"data":true}
Was that intentional, that the json part is in the message?
Who is mimi and who gave her a massage?
@richard67 yes it's intentional to show why the parse error.
Who is mimi and who gave her a massage?
The question is: who got a massage from mimi ;)
I have tested this item successfully on 69bb1de
@piotrmocko can you test this so it can be RTC for 3.5.2 too?
Category | ⇒ | JavaScript |
I will test it today
02.04.2016 13:37 "andrepereiradasilva" notifications@github.com
napisał(a):
@piotrmocko https://github.com/piotrmocko can you test this so it can
be RTC for 3.5.2 too?—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#9685 (comment)
I have tested this item successfully on 69bb1de
TEST OK
Status | Pending | ⇒ | Ready to Commit |
RTC - thanks
Labels |
Added:
?
|
Milestone |
Added: |
Sorry to be a pain as this is already RTC but is there a reason why these javascript errors can't be made lang strings?
is it possible to merge this and them i will take care of the messages in a new PR?
Just saying this because @anibalsanchez wants to make a PR too (see anibalsanchez#1) to correct a bug.
But since this has a minified js it gets conflicts and we have to redo the js.
ok, will made the changes needed.
This PR has received new commits.
CC: @mikeveeckmans, @richard67
Labels |
Added:
?
|
This PR has received new commits.
CC: @mikeveeckmans, @richard67
This PR has received new commits.
CC: @mikeveeckmans, @richard67
This PR has received new commits.
CC: @mikeveeckmans, @richard67
ok. language variables added.
Category | JavaScript | ⇒ | JavaScript Language & Strings |
Labels |
Status | Ready to Commit | ⇒ | Pending |
Removed the RTC label and made some comments on the language strings
Labels |
Removed:
?
|
This PR has received new commits.
CC: @mikeveeckmans, @richard67
The latest change was adding javascript language vars as @wilsonge requested.
@mikeveeckmans, @richard67, @brianteeman can you retest to get this RTC again?
This looks MUCH better - thankyou!
I have tested this item successfully on f56e8c8
I have tested this item successfully on f56e8c8
Test OK
Status | Pending | ⇒ | Ready to Commit |
Labels |
Labels |
Added:
?
|
I have updated #9768 with the code from this issue.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-04-12 20:16:32 |
Closed_By | ⇒ | rdeutz |
Milestone |
Removed: |
Milestone |
Added: |
Milestone |
Added: |
Milestone |
Removed: |
Labels |
Removed:
?
|
is #5238 related?
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9685.