Commit Graph
30 Commits
Author SHA1 Message Date
Jacques Le Roux 5661bad7fa I forgot to improve Angelo Matarazzo's patch I committed for "view-last-noparam" (https://issues.apache.org/jira/browse/OFBIZ-3027) - OFBIZ-3027 in r829727
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883914 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 22:54:47 +00:00
Jacques Le Roux bf71e5ec52 A slightly modified patch from Patrick Antivackis "A way to generate no cache header for the views" (https://issues.apache.org/jira/browse/OFBIZ-3091) - OFBIZ-3091
Patrick : The goal of this improvement is to allow at the view level, through setup in the controller.xml file, to generate no-cache http headers. Example is included for the showcart view of the ecommerce application.
JLR : I have commented out Patrick's example in controller and put a comment about its usage

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833096 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 17:38:42 +00:00
Scott Gray 99ec7450cf For view-last responses if no previous view can be found then allow the value attribute to be used as the default view.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@796918 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23 01:00:58 +00:00
Jacques Le Roux 5177814312 Reformatting, easier to read (also can't resist to use Ctrl+Shift+F in Eclipse+Oxygen).
We can do better by hand, so I kept those already well formatted.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769425 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 14:55:36 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Bilgin Ismet Ibryam 7e7c1f375a Added an optional "name" attribute to event element in controller.xml This attribute is used only (also required) in events inside
firstvisit, after-login, before-logout, preprocessor and postprocessor elements. Events with same name will be overridden and only the last one will be executed. Overriding works also in cases when a controller.xml includes other controller files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@761220 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 09:47:48 +00:00
Hans Bakker cc860ba38b rather big change which contains the following:
1. created a new function in the partyManager called 'myCommunications'
This function enables the sending and receiving of email and internal communications to/from the current userlogin. It looks like an email client for internal and external email.
2. merged the party/webapp/partymgr/communication/CommMenus.xml and party/widget/partymgr/PartyMenus.xml
3. moved all forms/screens from my portal back into the party component
4. fixed some more problems with myportal
5. added 'save-home' and save 'current' in the same pattern as 'save-last' function in the controler.xml
6. added 'view-home' in the same pattern as 'view-last'
7. moved all related uilabels from myportal to party
8. This update needs a re-creation of the portlet/portal entities.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@758522 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 06:06:12 +00:00
David E. Jones f876f9a0c1 Simple implementation of feature discussed on the mailing list to facilitate getting back to a view after some generic action, like schanging the locale which this commit has use the new feature as a test case; I'm not sure I like this approach, will send message to dev list about it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749959 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 10:27:52 +00:00
David E. Jones afe3dc9c81 A few related changes:
Big refactor of ControlServlet, RequestManager, RequestHandler, and ConfigXMLReader so that simple objects are used instead of Maps within Maps within Maps for the data from the controller.xml file, which results in eliminating hundreds of lines of code including the entire RequestHandler class. I have tested this a lot with different apps that use the ControlServlet differently, but this is a very big change so there could still be issues. Based on this cleanup future issues and new features should be easier and less error prone, and that is why doing it now in order to help with a number of other improvements and bug fixes that are part of this commit.

Also added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues with form data, but if the ID to display (like following a crAlso added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues with form data, but if the ID to display (like following a crAlso added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues wd in and also going to the same page after login from auth=true or from clicking on the login link.

Related to cleaning up login URLs also changed how the request and parameters passed to a request before a login are saved and used after a login is successful so that it URL parameters go on the URL in a redirect to the original request to make it more transparent, and non-URL parameters just stay in the session and are used when the original request is run again to avoid putting sensitive information like passwords and big information like textarea data in the URL, which has been a problem before.

To see what some of these things combined can do try going to the example app, login, click on the New Example link, then logout in another tab or window, then go back to the New Example page and enter a name and a whole bunch of text in the long description then click Create, the system will show you the login page so enter username/password, and then after login you'll see a nice URL to EditExample with the correct exampleId parameter and all of the data entered before login successfully saved and never appearing in a URL.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741374 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 02:14:19 +00:00
David E. Jones 4bd8c4399b Added XSD catalog file for webapp component, like exists in other components
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740697 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 11:10:46 +00:00
Andrew Zeneski 70f3896222 implemented per-site "protect" settings. Instead of only per request or per instance (setting in security.properties), now we support per application with a new <protect view="name_of_view"/> element in controller.xml. If the "protect" response is not found, first it will check for a applicaiton default before falling back to per instance.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731660 13f79535-47bb-0310-9956-ffa450edef68
2009-01-05 19:46:16 +00:00
Jacques Le Roux 7ee3cf8194 Finally this was not needed now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726518 13f79535-47bb-0310-9956-ffa450edef68
2008-12-14 19:13:45 +00:00
Jacques Le Roux fe4fa08e79 A change needed for the protect view feature
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726180 13f79535-47bb-0310-9956-ffa450edef68
2008-12-13 07:22:20 +00:00
Scott Gray 9b786b8159 Reverted the rest of Si's recent work since it doesn't look like he is going to complete/correct the RequestHandler part any time soon
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688265 13f79535-47bb-0310-9956-ffa450edef68
2008-08-23 06:17:06 +00:00
Si Chen a00fc0f160 more comments on OFBIZ-1915
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686311 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 18:32:58 +00:00
Si Chen e5451f7f18 OFBIZ-1915 from Jeremy Wickersheimer for request-redirect-filter-param
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686301 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 18:15:39 +00:00
Andrew Zeneski 01aeb00f2f changed track-stats to track-serverhit to be more clear
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574715 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 22:48:55 +00:00
Andrew Zeneski 2e8645ed67 added code to disable ServiceHit and Visit tracking for defined requests (use new track-stats and track-visit attributes on the request URI); also supports disabling tracking per webapp (use init param track-stats and track-visit)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574709 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 22:09:40 +00:00
Andrew Zeneski 7cbcc85cbd refactored x509 implementations; now it will use the certificate to determine the userlogin; tomcat changed to ignore cert files (just pass through) so all checking can be handled by ofbiz; login worker updated to use new method of cert checking; added isser entity to configure what issuers are allowed to sign login certs (the certificate must also be included in a trust store) new component based trust/cert stores configured in ofbiz-component.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@531272 13f79535-47bb-0310-9956-ffa450edef68
2007-04-22 20:56:58 +00:00
Andrew Zeneski 8a49232950 implemented x509 certificate security for specific requests (define with security attribute x509=true)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@527718 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 23:36:50 +00:00
Andrew Zeneski 2f30ad50f1 implemented default request for web applications; setting a default-request will forward all requests which do not have a valid mapping to this specific request. Here you can process additional information, forward to a landing page, etc
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@509068 13f79535-47bb-0310-9956-ffa450edef68
2007-02-19 02:52:31 +00:00
David E. Jones 3415c28553 Based on feedback from Anil Patel changed the max to unbounded for the include element so represent how it is actually implemented
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@505674 13f79535-47bb-0310-9956-ffa450edef68
2007-02-10 11:12:59 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
David E. Jones 4472bb323d Created ecomclone webapp in the ecommerce component that uses the new include stuff, and acts as a test case for it; as part of this found a couple of bugs and some room for improvement in the ConfigXMLReader, and fixed those up
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@476650 13f79535-47bb-0310-9956-ffa450edef68
2006-11-18 23:03:25 +00:00
David E. Jones 031b093d5d A few include enhancements so that everything in the other controller.xml file is included, though everything can be overriden
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@476624 13f79535-47bb-0310-9956-ffa450edef68
2006-11-18 22:16:35 +00:00
David E. Jones a733b283d3 Applied patch from Peter Goron to implement include by location from one controller.xml file to another; Jira OFBIZ-370; made small change so that the include element comes first in the controller.xml file
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@476610 13f79535-47bb-0310-9956-ffa450edef68
2006-11-18 21:37:23 +00:00
Si Chen 47bc48ede2 OFBIZ-333: Enhance ServiceMultiEventHandler to support configurable global transaction
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@472647 13f79535-47bb-0310-9956-ffa450edef68
2006-11-08 21:14:46 +00:00
Hans Bakker 23ff1648b5 update the xsd to add the 'request-redirect-noparam' parameter in revision 462775
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@462999 13f79535-47bb-0310-9956-ffa450edef68
2006-10-11 22:15:49 +00:00
Jacopo Cappellato bf65daa750 License change from MIT to ASL2.0 for the files of the webapp component.
Thanks to Scott Gray for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@423844 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 09:08:06 +00:00
David E. Jones 94fe6d1cda Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 19:05:20 +00:00