Commit Graph
27737 Commits
Author SHA1 Message Date
Adam Heath 01822c38e0 FEATURE: Add safeAdd, which protects against BigDecimal addition when the right operand is null.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482506 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:16 +00:00
Adam Heath ff32c8ebda FEATURE: In makeItem(), move the production validation code to a separate helper method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482505 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:08 +00:00
Adam Heath de328403ab FEATURE: In makeItem(), move the product lookup code into it's own helper method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482504 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:02 +00:00
Adam Heath a4b4054c77 FEATURE: Remove use of empty ArrayList/HashMap, instead using
Collections emptyList/emptyMap.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482441 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 16:38:30 +00:00
Adam Heath dbfb52c701 FORMATTING: Improve formatting; no single-line if, use {} for if.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482440 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 16:38:23 +00:00
Hans Bakker e72c65e187 add an optional timeout parameter to the ftp service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482177 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 02:53:33 +00:00
Adam Heath 8b9c0e537b OPTIMIZE: Remove all SuppressWarnings("unchecked") from the entity
engine.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482152 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 23:52:52 +00:00
Adam Heath ec142071b0 FEATURE: If the user gets forcibly logged out, store a message into the
request that mentions this; currently, nothing uses this, but that is
coming soon.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482132 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:31:20 +00:00
Adam Heath 4e5c0a7647 FIX: in urlEncodeArgs, don't call obj.toString if the obj is an Array or
a Collection; instead, iterate over each memeber and encode that.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482131 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:31:12 +00:00
Adam Heath e787885bb6 FEATURE: Allow events to return "none"; they can already return null,
which stops processing.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482130 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:31:04 +00:00
Adam Heath da1f1f92e6 FEATURE: Allow first-visit and preprocessor events to run "none"; this
is the same as null, and will stop processing.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482129 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:55 +00:00
Adam Heath 2b25d70adf FEATURE: Split checkLogin, creating checkLogout, which is a helper
method that returns a valid UserLogin entity, or null if permissions or
other reasons cause it to be invalid for the current scenario.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482128 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:47 +00:00
Adam Heath 2ebf5a22ed FEATURE: Make isUserLoggedIn(request), loginUserWithUserLoginId(request,
response, userLoginId) and hasBasePermission(userLogin, request) public,
instead of private/protected.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482127 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:40 +00:00
Adam Heath 2046bec01a FIX: Forgot to add this new file when I added the ability to disable ssl
certificate checking.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482126 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:32 +00:00
Adam Heath 805dce79b8 FIX: I have no idea why an explicit <mkdir> is neeeded for build/rmi; in
all cases I could find, it was already auto-created.  It's only the
buildbot that is broken.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482125 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:25 +00:00
Adam Heath 2cbd5ac701 FEATURE: Add a join() variant that takes a collection.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482069 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:06:11 +00:00
Adam Heath 92079f7a65 OPTIMIZE: join() now calls UtilValidate.isEmpty().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482067 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:06:03 +00:00
Adam Heath 43e898976b FORMATTING: Add some final newlines in a few files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482066 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:56 +00:00
Adam Heath 64b3c95c45 FIX: Start using ${externalKeyParam} everywhere consistently. I only
did what was included by the main ordermgr view order screen.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482065 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:47 +00:00
Adam Heath 105854b8f6 FEATURE: Add ability to disable client and server side certificate
checking.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482064 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:33 +00:00
Adam Heath a5385a682f FEATURE: Reworked to expose a getSSLContext helper method, called by
everything else.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482062 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:26 +00:00
Adam Heath 3cfa43e2b1 FIX: In stripNamedParamsFromQueryString, prevent && from occuring in the
resultant buffer.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482061 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:18 +00:00
Adam Heath 69671f1fe7 FEATURE: Instead of placing the rmi jar into build/lib, but with a .raj
extension, place it into build/rmi, and let it keep the correct .jar
extension. This means you don't need to rename the jar when you copy it
to the remote java virtual machine, but just have to move it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482060 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:11 +00:00
Adam Heath a9895a1c75 FEATURE: Split out the definition of all the handlers into a separate
file; this allows for webapps that need to do non-standard things, but
not have to define all the available handlers themselves.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482059 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:06 +00:00
Adam Heath 432ce20711 FEATURE: Switch derby <inline-jdbc> to use the external
passwords.properties.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482057 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:04:59 +00:00
Adam Heath 158bc8b1de FEATURE: Allow for passwords in entityengine.xml to come from an
external passwords.properties file; nothing actually uses this yet,
however.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482056 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:04:51 +00:00
Adam Heath 5f7e967d2c OPTIMIZE: Move the fetching of the jdbc-password attribute into a single
global static method.  Soon, this logic will be changed to support
looking the password up in an external file, so that security can be
imported.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482055 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:04:43 +00:00
Adam Heath 7e7d53af0f FEATURE: Add getFirst/getOnly variants that take a collection.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482005 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 18:02:16 +00:00
Adam Heath 7beb84c605 FEATURE: getFirst/getOnly now use UtilValidate to verify non-emptiness.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482004 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 18:02:08 +00:00
Adam Heath dbbc11d18e FEATURE: Switch ResourceLoader.getXmlDocument() to a version of
UtilXml.readXmlDocument that records line/column information.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482003 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 18:02:01 +00:00
Adam Heath 4aaf4f720d FEATURE: When there is no configured eca handler configured, only print
out the warning once, instead of on every single call.  This actually
gives a rather impressive performance improvement.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482002 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 18:01:54 +00:00
Adam Heath 1625a1a80f FIX/FEATURE: When shutting down, make certain to close down log4j as
well.  This will ensure that any asynchronous logs have finished
writing to disk, or to the console.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482000 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 18:01:47 +00:00
Adam Heath 523ffda8be FIX: Make commons-daemon reflection access work again; this was broken
because the constructor was private, and the init(String[]) method was
removed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481999 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 18:01:39 +00:00
Adam Heath 0dde029713 FORMATTING: The empty constructor body is no longer on a single line.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481998 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 18:01:32 +00:00
Adam Heath 0460f698d5 FEATURE: Add ability to call an external hook script; this can be useful
for redirecting runtime/data/derby to /dev/shm, for greatly speeding up
test cases.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481997 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 18:01:25 +00:00
Jacopo Cappellato f4fad5a6a9 Upgraded Tomcat from 7.0.39 to latest 7.0.40
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481739 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 09:09:16 +00:00
Adrian Crum e12fd283bb Removed duplicate relationship.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481519 13f79535-47bb-0310-9956-ffa450edef68
2013-05-12 10:58:32 +00:00
Adrian Crum eb7dd6969a Improvements to the ModelRelation and ModelKeyMap classes. Now the entity engine can accurately detect duplicate relations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481518 13f79535-47bb-0310-9956-ffa450edef68
2013-05-12 10:52:55 +00:00
Adrian Crum df4f66cf6b Reverted revision 1480891 and fixed the problem it tried to fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481367 13f79535-47bb-0310-9956-ffa450edef68
2013-05-11 16:12:05 +00:00
Jacques Le Roux 38504d481c revert r1481274
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481296 13f79535-47bb-0310-9956-ffa450edef68
2013-05-11 11:32:19 +00:00
Adrian Crum d24e90b7cc Copied the fix from revision 1480407 to the rest of the screen widgets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481287 13f79535-47bb-0310-9956-ffa450edef68
2013-05-11 10:34:57 +00:00
Jacques Le Roux 6db2cef559 Fix "Name in List Related Contacts form doesn't get updated" reported by Karl Beecher at https://issues.apache.org/jira/browse/OFBIZ-5192
If a person is set as a related contact for a party, updates to their name are not immediately displayed by the ListRelatedContacts form.

To reproduce (with OFBiz demo data):
* In the Party Manager, go to the profile page of DemoSupplier (they have a related contact called 'Peter Manager'
* Follow the link to Peter Manager's profile page.
* Click Update and change the name (e.g. to 'Peter Manageress')
* Save
* Return to DemoSupplier's profile page. Observe that the name of the related contact is still 'Peter Manager'. Refreshing doesn't change that.
* Restart OFBiz
* Refreshing the profile page now displays the updated name.

jleroux: to test in trunk I used company and scrum employee

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481274 13f79535-47bb-0310-9956-ffa450edef68
2013-05-11 08:52:25 +00:00
Hans Bakker 8e3733c1df simplify and fix error: list always empty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1480891 13f79535-47bb-0310-9956-ffa450edef68
2013-05-10 06:15:28 +00:00
Adrian Crum 6a5387a708 Fixed a problem in Web Tools that was caused by recent entity model changes. Reported by Olivier Heintz on the user mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1480702 13f79535-47bb-0310-9956-ffa450edef68
2013-05-09 15:56:46 +00:00
Adrian Crum 5639dec18e Fixed an exception in the form widget - reported by Jacques on the dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1480407 13f79535-47bb-0310-9956-ffa450edef68
2013-05-08 18:57:58 +00:00
Adrian Crum fe963375c8 Fixed a problem in Web Tools that was caused by recent entity model changes. Reported by Atul Vani on the user mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1480248 13f79535-47bb-0310-9956-ffa450edef68
2013-05-08 12:26:24 +00:00
Jacques Le Roux 0638e8fa03 A sligthly modified patch from Christoph Neuroth for "Exceptions logged when caches contain collections with unserializable objects" https://issues.apache.org/jira/browse/OFBIZ-5184
jacopoc commited revision 1352575 which would prevent stack traces to be logged when viewing the cache overview screen in /webtools. However, a stacktrace is still logged when the caches contain collections which themselves contain objects which cannot be serialized.

jleroux: I simply used logWarning instead of info

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1480079 13f79535-47bb-0310-9956-ffa450edef68
2013-05-07 21:09:47 +00:00
Jacques Le Roux dca9ace3ee A patch from Iurii Volosheniuk for "Russian translation for framework/common/config/CommonErrorUiLabels.xml, framework/common/config/CommonHelpUiLabels.xml, framework/common/config/CommonPortalEntityLabels.xml, framework/common/config/PrefErrorUiLabels.xml " https://issues.apache.org/jira/browse/OFBIZ-5187
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1479666 13f79535-47bb-0310-9956-ffa450edef68
2013-05-06 18:30:32 +00:00
Adrian Crum 06cc7b2e41 Remove Javolution from ModelViewEntity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1478620 13f79535-47bb-0310-9956-ffa450edef68
2013-05-03 01:02:56 +00:00
Ashish Vijaywargiya 2d3cb10275 Applied bug fix from - OFBIZ-5085 - Search result for "Find Communications" does not work. Refer following section from OFBIZ-5085.
=========================
And secondly I think that in ListCommEvents form of CommunicationEventForms.xml partyId should be passed in place of the partyIdFrom. As in ViewCommunicationEvent screen, value of the partyIdFrom is set via parameters.partyId.
=========================

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1478499 13f79535-47bb-0310-9956-ffa450edef68
2013-05-02 19:31:33 +00:00