dotContent Pull with Random sort fails
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
@jcastro-dotcms please enable es.script.disable_dynamic by default. This should fix right?
Broke here https://github.com/dotCMS/core/issues/6347
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.
Pull request: https://github.com/dotCMS/core/pull/6661
Fixed, tested on master distribution // Postgres // FF