Test mode rollback doesn't work right in GenericDelegator for calls to removeByPrimary() key and removeByValue() when the row to be deleted didn't exist in the first place. It creates a TestOperation with a null value and subsequently fails to create that during rollback.
First, the TestOperation shouldn't be created at all. Second, if null is passed to GenericDelegator.create() it tries to handle this, but fails with a NullPointerException.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1104423 13f79535-47bb-0310-9956-ffa450edef68
XmlFileLoader: File file:.....framework/entity/config/entityengine.xml process fatal error. Line: 686. Error message: Invalid byte 2 of 2-byte UTF-8 sequence.
After having manually put back the line modified by an automatically applied patch, I got this mis-representation. Not sure why, and anyway had no chances to think about it (certainly due to a difference on how UTF-8 was represented on these servers and on my machine - XP with Putty and SSH)
So I remove this weirdness to prevent future possible nervous crises ;o)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1104173 13f79535-47bb-0310-9956-ffa450edef68
e.g. in lookup dialog (in layer mode), one href value of a link is "javascript:set_value('123/ABC');", then the ofbiz framework will parse it to "javascript:lookupAjaxRequest('ABC'');&presentation=layer')". It's wrong. Correct one should be given href itself.
to fix:
judge whether the link contains "javascript:set_" before split it by slash '/'.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1103714 13f79535-47bb-0310-9956-ffa450edef68
If the session is timed out the request handler checks weather it is an ajax request or not (The information comes from the request header if the X-Requested-With contains XMLHttpRequest we haven an ajax request.).
If it is an ajax request it don't return the normal "checkLogin" request, i return a a special ajaxCheckLogin request. This request can point to an site which shows the "Please Login Hint".
Orig Msg:
Take the following page (for example) https://localhost/content/control/findContent
field "Data Resource Id" has an icon beside it that creates an ajax dialog pop up. If the session has already timed out. The dialog box would show the login screen.
I suspect that all pages containing this functionality would exhibit the same symptom.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1102615 13f79535-47bb-0310-9956-ffa450edef68
Replaces the <if> task (used javascript in a file with .py suffix :/ ). I kept it commented out for now, in case someone is using it (not used OOTB)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1100795 13f79535-47bb-0310-9956-ffa450edef68
This fixes it: you can now swap the INPUT type from a list type (drop-down for the value) to a input value type (like quantity or list price) or vice versa. The last input value is kept in the background, we could resetting the value to null, but I think it makes sense because with the value still in the background it's easy to get back to the original value if you change your mind (or in case of error).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1100589 13f79535-47bb-0310-9956-ffa450edef68
I wondered if I should not remove the event from the common-controller since I guess this is rarely used. But, as the functionality is available OOTB, I preferred to keep it as is. So I simply remove the never-cache from UserLoginAndProtectedView view-entity. Since it will almost always be empty, no memory issues and better performance are expected. If I remember well, at the moment I committed this, I checked: the performance impact was already not noticeable (most of the time only one check in the event).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1100197 13f79535-47bb-0310-9956-ffa450edef68
After uploading a product-category-image, you receive the result of the upload-process in a screenlet.
Up to now, the screenlet has a div of the class "screenlet-title-bar", but no "screenlet-body".
To be consitent and to ensure a clear rendering, we should have the result-message in a div of the class "screenlet-body"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1100141 13f79535-47bb-0310-9956-ffa450edef68
Currently the labels that indicate the totals on the balancesheet are hardcoded in the balancesheet.groovy file. This patch makes them dynamic, re-using existing labels in accountinguilabels.xml and adding 2 new ones. A side effect is that these labels are not capitalized anymore in the balancesheet screen...
Also other dutch translations are included in this patch in the accounting ui and entity labels files.
JLR: as requested by Willem I have replaced
+import org.ofbiz.base.util.*
by
+import org.ofbiz.base.util.UtilProperties;
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1100140 13f79535-47bb-0310-9956-ffa450edef68
Actually in R10.04 the problem is reported as a warning but the service is not rolled back. Not sure if it's a desired change (then how to use Integer as field type in an entity also used by a service?)
GenericEntity.java:426:WARN ]
---- exception report ----------------------------------------------------------
=-=-=-=-=-=-=-=-= Database type warning GenericEntity.set =-=-=-=-=-=-=-=-= In entity field [ProtectedView.maxHits] set the value passed in [java.lang.Integer] is not compatible with the Java type of the fiel
d [Long]
Exception: java.lang.Exception
Message: Location of database type warning
---- stack trace ---------------------------------------------------------------
java.lang.Exception: Location of database type warning
org.ofbiz.entity.GenericEntity.set(GenericEntity.java:426)
org.ofbiz.entity.GenericEntity.set(GenericEntity.java:372)
org.ofbiz.entity.GenericEntity.setAllFields(GenericEntity.java:906)
org.ofbiz.entity.GenericEntity.setNonPKFields(GenericEntity.java:862)
org.ofbiz.service.engine.EntityAutoEngine.runSync(EntityAutoEngine.java:235)
org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:832)
_$gen.file_58$.D_58$.workspace.ofbizDev.framework.common.servicedef.services_95$security_46$xml_35$addProtectedViewToSecurityGroup.runSync(file:/D:/workspace/ofbizDev/framework/common/servicedef/services_secu
rity.xml#addProtectedViewToSecurityGroup:95)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1099388 13f79535-47bb-0310-9956-ffa450edef68