Alfred Maxwell Byers
c0ac870199
The content length was being calculated on the wrong string.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@797681 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 22:41:34 +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
Adrian Crum
e4ee374a66
Conversion from java.util.Calendar to com.ibm.icu.util.Calendar. I didn't convert the Cloud component - I wasn't sure if the Calendar class was being passed through SOAP.
...
OFBiz users who have modifications or add-ons can make the same substitution to get them to compile.
I'll let the dust settle from this, then I'll add the user-selected calendar capability.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792987 13f79535-47bb-0310-9956-ffa450edef68
2009-07-10 15:39:21 +00:00
Scott Gray
dec24b29f2
Sorry for the big commit, got a bit carried away.
...
Added override and deprecated annotations wherever they were missing
Removed the use of any deprecated classes/methods (except OutputFormat in UtilXml)
A few other random generics and misc. cleanups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791212 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 10:01:19 +00:00
Adrian Crum
f83c020c1b
Code cleanup and bug fixes in WebDAV and iCalendar.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789871 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 18:46:10 +00:00
Adrian Crum
5c4ddcf56f
More iCalendar improvements. Added HTTP challenge/response authentication, enforce SSL.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789490 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 23:28:37 +00:00
Adam Heath
dd51c0108b
Add a simple initCause helper method.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789400 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 18:13:19 +00:00
Scott Gray
1d43a59500
Do not save the view if the last view is the same as the current view and saveCurrentView is false
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789303 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 12:05:57 +00:00
Adam Heath
0e54c940c9
Add a variant of appendContentPrefix that takes an Appendable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789201 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 03:22:03 +00:00
Adam Heath
2752e89c06
Switch to ContentUrlTag.appendContentPrefix to StringBuilder, and
...
deprecate to the StringBuffer variant.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789177 13f79535-47bb-0310-9956-ffa450edef68
2009-06-28 23:50:53 +00:00
Adrian Crum
09061f7f31
Oops, C&P was my enemy again.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787919 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 06:07:35 +00:00
Adrian Crum
9ae2dd39b9
A rudimentary WebDAV servlet. This is in preparation for the forthcoming iCalendar improvements. It is only a beginning - it needs to be built out.
...
I put this in the framework because it is reusable and extensible. For example, a WebDAV interface to the Content component could be useful.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787915 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 05:58:56 +00:00
Scott Gray
ed77ea73ee
Fix an attribute name
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787442 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 23:24:01 +00:00
Scott Gray
66c49c1305
Clean up the mess that I just made :-/
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787436 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 23:04:51 +00:00
Scott Gray
65ebff46d6
Prevent view-last from overwriting the event/error messages of the current event
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787435 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 23:01:35 +00:00
Scott Gray
8e19d2e4e4
Removing the transform I added in r784712, thanks Adrian for pointing out its redundancy
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@785037 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 00:39:33 +00:00
Scott Gray
a1c341d5ef
Add a new template transform for including templates in freemarker templates using component notation:
...
<@includeTemplate location="component://common/webcommon/includes/cctypes.ftl"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@784712 13f79535-47bb-0310-9956-ffa450edef68
2009-06-15 10:18:55 +00:00
Adrian Crum
c24450819b
Oops, I should have looked closer at that patch.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783830 13f79535-47bb-0310-9956-ffa450edef68
2009-06-11 16:14:38 +00:00
Adrian Crum
96fa7e81ae
Eliminated confusing property setting - https://issues.apache.org/jira/browse/OFBIZ-2577 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783824 13f79535-47bb-0310-9956-ffa450edef68
2009-06-11 16:04:12 +00:00
Hans Bakker
aca1f239c9
remove on mycommlist did not work and returned to a old unused saved view. save-home now clears save-current/last view
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783266 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 09:21:18 +00:00
Adrian Crum
70956fc56f
Fixed a problem with BsfEventHandler.java not recognizing the "component://" location syntax. Reported by Marco Risaliti - https://issues.apache.org/jira/browse/OFBIZ-2539 .
...
I also fixed a couple other problems with the class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@779639 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 16:11:50 +00:00
Christian Geisert
4dafa44a64
fixed eol-style
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778786 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 16:11:43 +00:00
Jacques Le Roux
62d6877937
A patch from Ray Barlow " ProtectedViews aren't limiting by user login, just view name" ( https://issues.apache.org/jira/browse/OFBIZ-2466 ) - OFBIZ-2466
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@774014 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 18:42:06 +00:00
Jacques Le Roux
94b3482509
Simplify rendering within a sole string (\n were rendered as <br> in plain text)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@773076 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 20:18:23 +00:00
Jacques Le Roux
058d6aed57
A patch from Ashish Vijaywargiya "Change Copyright Year" ( https://issues.apache.org/jira/browse/OFBIZ-2346 ) - OFBIZ-2346
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772936 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 10:56:14 +00:00
Scott Gray
e5cb2d7634
Remove unused properties file
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771153 13f79535-47bb-0310-9956-ffa450edef68
2009-05-04 01:03:53 +00:00
Adam Heath
1a31984695
Several minor generics fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771124 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 20:35:52 +00:00
Andrew Zeneski
485805fe3f
Renamed AbtractAuthorization to AbstractAuthorization (bad typo)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770836 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 21:53:29 +00:00
Andrew Zeneski
87535e2f67
Often thread pools do not clear ThreadLocal, implemented a workaround to handle this
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770771 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 17:47:52 +00:00
Andrew Zeneski
f36c5a9335
No longer requiring the boolean field 'expanded' as part of the API; after dicussing w/ Adrian; the FSE can handle pre-expanded strings
...
Added new API method findMatchingPermission() which takes a regular expression for the base permission returning the value of all matching permissions (see unit tests)
Fixed missing base permission in SecurityData.xml
JIRA OFBIZ-2381
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770401 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 19:14:48 +00:00
Andrew Zeneski
8b50910fc8
integration with Authz Integration with new Authz API - JIRA OFBIZ-2381
...
use request.getAttribute("authz") instead of request.getAttribute("security")
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769937 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 21:14:21 +00:00
Jacopo Cappellato
3b7e656368
As suggested by Joe Eckard in the ml, this will fix the barcode rendering that was broken after recent upgrade of FOP.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769500 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 19:04:37 +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
Adrian Crum
d7704fc741
Removed two duplicate jar files from framework/webapp. The serializer jar already exists in framework/base, and the xalan classes should be included in the xerces jar - also in framework/base.
...
I'm not sure why the xalan jar was needed here. After removing the jar I did a clean and build and there were no error messages - so I'm assuming it isn't needed. If anyone spots any problems, it can be restored.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768545 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 15:09:55 +00:00
Jacques Le Roux
c50dd8feab
Allow new lines, and more, in error and event messages
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@767694 13f79535-47bb-0310-9956-ffa450edef68
2009-04-22 22:29:29 +00:00
Jacques Le Roux
269f7facf9
As suggested on dev ML, a message with more information to track unsecured URLs in Freemarker Templates
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@767688 13f79535-47bb-0310-9956-ffa450edef68
2009-04-22 22:02:27 +00:00
Jacques Le Roux
46038493c4
Revert r766443 commited by accident
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766446 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 11:06:54 +00:00
Jacques Le Roux
59dcd48d1b
This was a commit error
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766443 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 10:27:47 +00:00
Jacques Le Roux
2ca2feef1a
Changes from Erwan de FERRIERES "Upgrade of the fop library (0.94 -> 0.95)" https://issues.apache.org/jira/browse/OFBIZ-2317 - OFBIZ-2317
...
+ LICENCE updated (libraries wiki page also updated)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766125 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 19:42:46 +00:00
David E. Jones
78d8c7cdc0
Consolidated code to check for non-encrypted parameters sent to service calls, enhanced to support a new url.properties property (service.http.parameters.require.encrypted) that controls whether or not this will throw an exception
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764286 13f79535-47bb-0310-9956-ffa450edef68
2009-04-12 07:30:29 +00:00
David E. Jones
8821b17e3e
A small change to address an issue reported by Angelo Matarazzo when HTTPS is disabled and form data is POSTed; note that deploying so that OFBiz doesn't know if the request is over HTTPS or not is NOT recommended as this DOES open a security vulnerability for XSRF and such when data is POSTed not over HTTPS
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763855 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 01:41:52 +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
ff5b74da4d
use 'home' to go back if 'last save' is not available
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@761175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 06:15:50 +00:00
Adam Heath
6d524e41c0
Fix lines that *only* have whitespace.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759243 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 16:58:52 +00:00
David E. Jones
1ae162b803
Small change to error message for non-secure parameters to mention the form field that will hopefully help it mean more to more people; also changed the service-multi handler to be consistent with the service one
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@758734 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 16:45:29 +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
4a1705a315
Removed some more references to applications stuff from framework, including small cleanup of service engine to get rid of WebAppDispatcher and use new factory method in GenericDispatcher, and changed AvailableServices.groovy to get the real dispatcher list instead of a hard-coded one; also updated eclipse classpath file for new webslinger stuff
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757671 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 06:27:03 +00:00
Hans Bakker
874ffe7c49
better error messages in request handler instead of null pointer exceptions
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757334 13f79535-47bb-0310-9956-ffa450edef68
2009-03-23 07:32:21 +00:00
David E. Jones
efcadbe25f
Small change so that if a service attribute has allow-html=any then don't canonicalize the input, ie get it straight from the request; this fixes Jira #OFBIZ-2231 and should fix other related issues, and should not open any security holes (except from trusted users, as long as services are setup correctly)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757318 13f79535-47bb-0310-9956-ffa450edef68
2009-03-23 04:50:57 +00:00