? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
23 Feb 2017

Pull Request for Issue #14210

Summary of Changes

Remove default and mark query as required for the SQL field

Testing Instructions

  • Set up a sql field with default values
  • see the default is a dropdown of uses with id and name
  • apply this patch
  • notice that you now required to define a custom query else the result will be clear.

Expected result

you now required to define a custom query else the result will be clear.

Actual result

see the default is a dropdown of uses with id and name

Documentation Changes Required

None

avatar zero-24 zero-24 - open - 23 Feb 2017
avatar zero-24 zero-24 - change - 23 Feb 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Feb 2017
Category Front End Plugins
avatar PhilETaylor PhilETaylor - test_item - 23 Feb 2017 - Tested unsuccessfully
avatar PhilETaylor
PhilETaylor - comment - 23 Feb 2017

I have tested this item ? unsuccessfully on 436a897


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

avatar PhilETaylor PhilETaylor - test_item - 23 Feb 2017 - Tested successfully
avatar PhilETaylor
PhilETaylor - comment - 23 Feb 2017

I have tested this item successfully on 436a897

My first test I was able to save with no query - think that might have been a cached JS. But on second testing I was not able to save without sql query

HOWEVER if I put crap in the sql query I get a horrid raw mysql error message leaking parts of the query...


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

avatar mbabker
mbabker - comment - 23 Feb 2017

Because in that other PR you were commenting on someone decided the error handling should be to just catch every possible Exception that gets thrown (major no-go, unless you're trying to have a "handle all the errors" error handler) and just uses the Exception message as the message that gets displayed (which with 3.7 if it's catching a JDatabaseExceptionExecuting object shouldn't exist on the message property anyway.

avatar PhilETaylor
PhilETaylor - comment - 23 Feb 2017

forked that to #14215

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 23 Feb 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Feb 2017

I have tested this item successfully on 436a897


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 Feb 2017

RTC as there are 2 successfully Tests?

avatar zero-24
zero-24 - comment - 24 Feb 2017

I wait for response from phil and george ;)

avatar PhilETaylor
PhilETaylor - comment - 24 Feb 2017

Im happy with just the removing of the default sql that leaked information... additional validation (like searching for select, value and text can come later if needed.

avatar wilsonge wilsonge - change - 24 Feb 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-02-24 11:29:59
Closed_By wilsonge
Labels Added: ? ?
avatar wilsonge wilsonge - close - 24 Feb 2017
avatar wilsonge wilsonge - merge - 24 Feb 2017

Add a Comment

Login with GitHub to post a comment