On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)
Bad use of Debug statement. On production system you will get false alarm that you are having error in code base although the resultant statement is only giving additional information instead of error message.
If conditional check is used for some debug level lets say "Verbose" then the containing Debug statement will be Debug.logVerbose() instead of Debug.logInfo() - Comment from Jacopo and Adrian.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337024 13f79535-47bb-0310-9956-ffa450edef68
Promotion list not displayed in trunk.
To duplicate:
Open Catalog Manager
Select Stores > Store Id 9000 > Promos
Expected: List of Promotions in the "Edit Product Store Promos" section.
Actual: No records in list.
Note: There is no component "Catalog" in the issue field Component/s drop above.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335343 13f79535-47bb-0310-9956-ffa450edef68
Removes a bunch of useless exceptions catches. There are still few cases to discuss, I believe there are useless (or at least without much more information) as well. we will decide on dev ML later...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334497 13f79535-47bb-0310-9956-ffa450edef68
Error on https://demo-trunk.ofbiz.apache.org:8443/facility/control/ViewFacilityInventoryItemsDetails Page, when you select Report Type - "By Inventory Item" or "By Product" its throwing error.
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen component://common/widget/CommonScreens.xml#GlobalDecorator: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field inventoryItemId of form ListFacilityInventoryItemsDetailsByItem (Return value from use-when condition eval was not a Boolean: null [null] on the field inventoryItemId of form ListFacilityInventoryItemsDetailsByItem)
jleroux: I supposed it was related to recent changes on scripts language, but was not sure. So I searched for ${bsh:* type="Boolean"/> and found some others of the same kind: in UpdateProductFacilityLocations, FindProject, sprintBacklogListItems forms and more in scrumForms.xml. I tried with UpdateProductFacilityLocations & FindProject but surprisingly did not reproduce the problem. At this stage I gave up...
Sligth changes from Ankit's patch: I simply used real ' instead of " and reformatted to make things more legible
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334201 13f79535-47bb-0310-9956-ffa450edef68
idea where those bad digest password values came from. Really, I have
no clue. Everything worked in testing. I'm very confused. I have
verified that I can log in now with the demo accounts. Sorry about the
breakage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334173 13f79535-47bb-0310-9956-ffa450edef68
now follow the same form: (String hashType, ..., String valueToHash).
Some methods also follow a polish notation suffix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334172 13f79535-47bb-0310-9956-ffa450edef68
it would call String.getBytes(), without specifying an encoding. That
meant that the platform default encoding would be used, which might
change between different installs(if someone changed an environment
variable, for instance). Now, there are explicit variants to be called.
When creating a new value, use cryptValueUTF8. If, for some reason,
calling code is doing it's own comparison, it must continue to use
cryptValueBytes(password.getBytes()).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334170 13f79535-47bb-0310-9956-ffa450edef68
go thru a deprecation cycle for this, as this method was only recently
added, and has never been officially released.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333664 13f79535-47bb-0310-9956-ffa450edef68
Details from jira issue:
In current system when user upload original image system will automatically create rest of images that is small, medium, large, detail and thumbnail but when user upload specific image like small, medium or other image of product, system will remove all the images from specific product folder and place only recently updated image. Also if there will be medium, large or detail images are exist in system and user upload small image to complete image set then system removed all three images and add small image instead system should add new small image without touching other images. So this is a bug in 11.04. Provided patch in the task to resolve this problem.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331554 13f79535-47bb-0310-9956-ffa450edef68
Login into partymgr application first time then click on submit button of Find Party Screen then Navigate to "Orders" button, now it will ask you to login into the application. After logging into the application it will give console error as shown below. Thanks Aditya for fixing this issue.
2012-04-28 00:06:04,082 (http-0.0.0.0-8443-1) [ Log4JLoggerFactory.java:96 :ERROR] Template processing error: "Expression requestParameters.hideFields is undefined on line 79, column 34 in component://order/webapp/ordermgr/order/findOrders.ftl."
Expression requestParameters.hideFields is undefined on line 79, column 34 in component://order/webapp/ordermgr/order/findOrders.ftl.
The problematic instruction:
----------
==> ${requestParameters.hideFields} [on line 79, column 32 in component://order/webapp/ordermgr/order/findOrders.ftl]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression requestParameters.hideFields is undefined on line 79, column 34 in component://order/webapp/ordermgr/order/findOrders.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)
at freemarker.core.Expression.getStringValue(Expression.java:118)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.IfBlock.accept(IfBlock.java:82)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:258)
at org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:225)
at org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:270)
at org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:130)
at org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:915)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:613)
at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:129)
at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:646)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:613)
at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:129)
at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:646)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:260)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:260)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:260)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
at org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
at org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:513)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
at org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
at org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:513)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
at org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:580)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
at org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:580)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
at org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:849)
at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:566)
at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:339)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
2012-04-28 00:06:04,111 (http-0.0.0.0-8443-1) [ Log4JLoggerFactory.java:96 :ERROR] Template processing error: "Expression requestParameters.hideFields is undefined on line 131, column 85 in component://order/webapp/ordermgr/order/findOrders.ftl."
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331536 13f79535-47bb-0310-9956-ffa450edef68
If we are creating PO then user can add order item type from show cart screen, so there should be an option to add order item type while adding item to existing PO on edit item screen.
Thanks Deepak.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331020 13f79535-47bb-0310-9956-ffa450edef68
Fixed fixme for ajax auto-completer for showcart screen of order entry process.
Currently call_fieldlookup2 is used for the product lookup, auto completer is not supported via call_fieldlookup2 and it open a window instead of layered lookup.Need to use htmlTemplate.lookup field for the product lookup. Also removed the FIXME comment.
The FIXME issue was fixed in OFBIZ-4646, Now its working fine.
Thanks Nitesh, Deepak & Rishi!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331010 13f79535-47bb-0310-9956-ffa450edef68
Updating the Company postal_address in Party Manager fails.
To reproduce:
In Party Manager lookup Party Id "Company"
Click Update in Contact Information > Postal Address
Make a change to the address
Click Save
Note the error message.
A postal_address update triggers an accounting SECA that runs:
PaymentMethodServices.xml (accounting) updatePaymentMethodAddress
services_paymentmethod.xml updateEftAccount
PaymentMethodServices.java updateEftAccount
The purpose of the SECA is to update the contact_mech_id field in CreditCard or EftAccount entities have the optional billing address information.
The updateEftAccount service sets the nameOnAccount field to optional="false".
The demo data that set up two EftAccount's for Company did not include nameOnAccount.
These are the only ETF's set up in demo data.
In the application ETF's are set up in eCommerce which requires "Name On Account" so the problem should not happen with address changes.
See eCommerce:
Login as DemoCustomer
Click "Profile" at the right of the top title bar
Click "Create New EFT Account" at the right of the title bar in the Payment Method Information section.
Note the first file "Name on Account" is required
Note the option to select a billing address.
Changing the DemoFinAccountData.xml file to enter the nameOnAccount field for the Company EftAccount's fixes the problem.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328946 13f79535-47bb-0310-9956-ffa450edef68
On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)
Bad use of Debug statement. On production system you will get false alarm that you are having error in code base although the resultant statement is only giving additional information instead of error message.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328196 13f79535-47bb-0310-9956-ffa450edef68
A hideResultInLog service attribute is added. If set to true the service result will be hidden from possible exposition in ServiceDispatcher.runSync()
This is convenient when used for sending a password to an user (the password must be legible in the sent mail).
I'm sure a lot of you would want to have no logs at all in production. But by experience I know that we need to log info in logs even in production. Especially when the system is quickly moving ahead...
So this is a sure mean to hide any password in logs, being current or backuped somewhere on the servers disks...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328122 13f79535-47bb-0310-9956-ffa450edef68
The relationship between lead owner and lead company is not expired when converting the lead.
The reason is that as the partyRelationship which is to be expired is looked up the party group information is taken from partyGroupPartyId, which does not exist.
The correct variable to use is partyGroupId.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326503 13f79535-47bb-0310-9956-ffa450edef68