core icon indicating copy to clipboard operation
core copied to clipboard

dotContent Pull with Random sort fails

Open prasadbhvn opened this issue 12 years ago • 5 comments

Reproduced in 31-10-2014//Ubuntu14.4

Steps: 1.1.Create a html page ->Add Widget -> Create Simple Widget 2 Paste below code.

foreach($con in $dotcontent.pull("+structureName:News +(conhost:48190c8c-42c4-46af-8d1a-0cd5db894797 conhost:SYSTEM_HOST)",10,"random"))

$con.title

end

3.Save and Publish it, You will see that dotContent pull fails to load with Random sort. Please see http://screencast.com/t/axamS50Bp

Test info: Ubuntu//Postgres//Chrome

prasadbhvn avatar Nov 01 '14 12:11 prasadbhvn

@jcastro-dotcms please enable es.script.disable_dynamic by default. This should fix right?

jtesser avatar Nov 04 '14 13:11 jtesser

Broke here https://github.com/dotCMS/core/issues/6347

jtesser avatar Nov 04 '14 13:11 jtesser

The scripts are a security hole - not sure how to mitigate these risks. In ES 1.2+, scripts are off by defualt.

http://security.stackexchange.com/questions/58862/logging-server-compromised-iptables-and-iptablex

Let's discuss.

dotcmsCodeReview avatar Nov 04 '14 14:11 dotcmsCodeReview

Pull request: https://github.com/dotCMS/core/pull/6661

jcastro-dotcms avatar Nov 04 '14 16:11 jcastro-dotcms

Fixed, tested on master distribution // Postgres // FF

bryanboza avatar Dec 18 '14 18:12 bryanboza