// trim the permissions (remove spaces)
for (int i = 0; i < this.basePermission.length; i++) {
this.basePermission[i] = this.basePermission[i].trim();
if (this.basePermission[i].indexOf('_') != -1) {
this.basePermission[i] = this.basePermission[i].substring(0, this.basePermission[i].indexOf('_'));
}
}
So if you put MY_APP as a permission it will end as MY (I will add a comment at http://cwiki.apache.org/confluence/display/OFBTECH/OFBiz+security)
Also because the comment and the code are not consistent I wonder what those lines are really for...
This is from pre Apache Era. I prefer to not touch...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890311 13f79535-47bb-0310-9956-ffa450edef68
The WSDL generated by ModelService is not correct for Visual Studio or Apache Synapse, causing Web services not to work properly. The soap:action tag is missing the URI for soapAction and needs to specify that this style is "rpc" for RPC/literal.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890245 13f79535-47bb-0310-9956-ffa450edef68
anything yet, and is rather stupid, in that it only does printlns. Not
adding this to the existing test infrastructure, until it is ready.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889763 13f79535-47bb-0310-9956-ffa450edef68
Fix title of buttons to Find, for all the find screens to maintain consistency.
Thanks Chandan for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889084 13f79535-47bb-0310-9956-ffa450edef68
The visual editor is using this line to fix a minimum height for the textarea box.
if (!o(idTa).rows < 5) o(idTa).rows='15';//IE won't use % from style
No matter the size we give it, it stays at 15. So I commented the line in the .js file. While I was at it, I updated whizzywig.js to the last version (55i ->59) and put the new toolbar icons system
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889014 13f79535-47bb-0310-9956-ffa450edef68
Note that in ofbizwebsite/data/OfbizData.xml there are a lot of old tinylinks...
It'd be a pity to have to rewrite them all or to lost them :/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888587 13f79535-47bb-0310-9956-ffa450edef68
By default screenlets status are saved. A new "save-collapsed" screenlet attribute (default=true) can be used to disable this feature for selected screenlets.
An userPreference with key = screenlet.id+"_collapsed" is used to save the status.
Screenlets that share the same ID, share the same saved status also (i.e. all searchOptions screenlets used in the FindScreenDecorator use the same status). In order to have them separated a different ID should be specified.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888030 13f79535-47bb-0310-9956-ffa450edef68
This add synchronization for ServerHit entities creation. Hence startTime is no longer used.
I have also removed some comment about the problem, and added one for startTime no longer used.
Note: If synchronization proves to slow down sites we could introduce a properties in serverstats.properties to switch from using it or not since I did not remove startTime from the method signature
Then we will use one or the other lines
- serverHit.set("hitStartDateTime", new java.sql.Timestamp(startTime));
+ serverHit.set("hitStartDateTime", getNowTimestamp());
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887916 13f79535-47bb-0310-9956-ffa450edef68
And generalized to all FTL files where needed.
I only tested for lookups, but should be ok, since the same trick is used in other FTL files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887166 13f79535-47bb-0310-9956-ffa450edef68
corrected the XML tests
added new functions in selenium for better conversion from selenese and use with the XML tests :
* echo
* verifyTextPresent
* verifyTextNotPresent
* assertTitle
* assertConfirmation
Removed comments
* waitForPageToLoad : just wait the page to load before any other action (time in ms)
* click : make a click on an element
* assertContains : assert an element contains some code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887126 13f79535-47bb-0310-9956-ffa450edef68