Commit Graph
14503 Commits
Author SHA1 Message Date
Ashish Vijaywargiya b256c3d7cc Applied similar fix as we did on trunk r1300463.
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
2012-05-11 04:46:26 +00:00
Jacques Le Roux 9435e7d948 A patch from Pierre Smits "Help screens in Manufacturing" https://issues.apache.org/jira/browse/OFBIZ-4802
Fix the help screens of Manufacturing

jleroux: We maybe need to think about the components order in help

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1336921 13f79535-47bb-0310-9956-ffa450edef68
2012-05-10 22:03:33 +00:00
Jacques Le Roux f546e5b6fc A patch from Tom Burns for "Catalog Edit Product Store Promos List Not Displayed" https://issues.apache.org/jira/browse/OFBIZ-4859
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
2012-05-08 05:56:32 +00:00
Jacques Le Roux 3f7748f393 We missed a lookup there
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334923 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 08:46:04 +00:00
Jacques Le Roux 8f1f8c2e79 Non functional changes.
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
2012-05-05 20:46:39 +00:00
Scott Gray c54d605219 Fix incorrectly cased private field on ShoppingCartItem, EstimatedShipDate -> estimatedShipDate
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334424 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 14:06:05 +00:00
Jacques Le Roux ffe1e4b1b0 A slightly modified patch from Ankit Jain "Error on View Facility Inventory Items Details Page" https://issues.apache.org/jira/browse/OFBIZ-4851
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
2012-05-04 21:46:25 +00:00
Adam Heath da8bf922fc FIX: Properly fix 1327736, which was reverted in 1327866. I have no
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
2012-05-04 20:42:57 +00:00
Adam Heath a0108243f5 FIX/DEPRECATION: Fix all the HashCrypt deprecated uses. All proper methods in HashCrypt
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
2012-05-04 20:42:45 +00:00
Adam Heath 33101dbaa2 FEATURE/DEPRECATION: Deprecate HashCrypt.cryptPassword; previously,
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
2012-05-04 20:42:26 +00:00
Jacques Le Roux 3c7c4ef1da Removes a duplicated label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333885 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 11:48:09 +00:00
Adam Heath b767ef1868 OPTIMIZE: Remove cryptPassword(String, String); it is not nescessary to
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
2012-05-03 22:20:24 +00:00
Christian Geisert 15b09dae60 German translation for AccountingEntityLabels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333439 13f79535-47bb-0310-9956-ffa450edef68
2012-05-03 12:54:27 +00:00
Scott Gray f55e4fe144 Fix incorrect BigDecimal comparison, the goal is to find out if baseQuantity is greater than 1)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331753 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 12:12:00 +00:00
Scott Gray 639c0159f2 Remove two redundant null assignments and fix a comment typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331747 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 10:51:04 +00:00
Scott Gray c76f942063 Fix potential (but unlikely) NPE
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331741 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 10:30:40 +00:00
Scott Gray beb24b2345 Remove a bunch of redundant null checks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331740 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 10:30:31 +00:00
Ashish Vijaywargiya f27b8f8700 Bug fix - Applied patch from jira issue OFBIZ-4832 - Product images are getting removed when user uploads specific (small, medium, large or detail) image from product > content screen in 11.04 release and in trunk. Thanks Suprit for the contribution.
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
2012-04-27 19:43:45 +00:00
Ashish Vijaywargiya 3e5f2017b8 Bug fix. Steps to reproduce is shown below:
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
2012-04-27 18:47:04 +00:00
Jacopo Cappellato 6d07ddbccd Patch from Scott Gray to fix a bug that prevented to post the invoice transaction to the proper "sales" subledger.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331308 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 09:11:29 +00:00
Ashish Vijaywargiya 712831e20a Bug fix - OFBIZ-4732 - Not able to add Order Item Type for PO while adding item to existing PO.
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
2012-04-26 18:36:09 +00:00
Ashish Vijaywargiya 9782c5c736 Bug fix - OFBIZ-4754 - Fixed fix me for ajax auto-completer for order entry process.
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
2012-04-26 18:25:30 +00:00
Jacques Le Roux 054e80091c A completing patch from Tom Burns "Add Support for Dependent Country State Drop Downs to SFA New Postal Address " https://issues.apache.org/jira/browse/OFBIZ-OFBIZ-4801
Duplicate line for stateProvinceGeoId in AccountForms.xml

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1329332 13f79535-47bb-0310-9956-ffa450edef68
2012-04-23 16:57:40 +00:00
Hans Bakker 481f789da5 fix image sort order and spelling error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1329038 13f79535-47bb-0310-9956-ffa450edef68
2012-04-23 02:39:26 +00:00
Hans Bakker 47be844030 ftl null pointer error corrected by Jacques in the mailing list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1329036 13f79535-47bb-0310-9956-ffa450edef68
2012-04-23 02:33:22 +00:00
Jacques Le Roux d3dfd92678 A patch from Tom Burns for "Update Company Contact Information Fails" https://issues.apache.org/jira/browse/OFBIZ-4804
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
2012-04-22 19:37:06 +00:00
Adrian Crum d66f311eb7 Updated all Mini-language xml files to use the new schema.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328827 13f79535-47bb-0310-9956-ffa450edef68
2012-04-22 09:18:24 +00:00
Erwan de Ferrieres abfa330848 Corrected a French translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328519 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 21:42:07 +00:00
Christian Geisert 99643c782f Replace german translation for Vendor with Verkaeufer (instead of Lieferant) and Distributor with Grosshaendler
Submitted by Markus M. May" <m.may@mvb-online.de>
See OFBIZ-4622


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328246 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 08:15:19 +00:00
Ashish Vijaywargiya 342debb0d5 Applied similar fix as we did on trunk r1300463.
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
2012-04-20 04:47:37 +00:00
Jacques Le Roux 5e5f0e27a5 This introduces a mean to hide a service result in log (when the service is longer than 50 ms and Debug.timingOn() or > 200 ms and Debug.infoOn(), see ServiceDispatcher.java, just above line 600)
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
2012-04-19 21:41:39 +00:00
Jacopo Cappellato 3736c9856c Reverted rev. 1327736: with it it was impossible to log in with demo accounts.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327866 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 08:43:54 +00:00
Hans Bakker 7a1ece1c21 productsummary screen is used both in order and ecommerce. Alternative urls should only be used in the ecommerce, not in the order component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327853 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 07:49:30 +00:00
Adam Heath f092508550 FEATURE: Make use of new HashCrypt cryptPassword functionality.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327741 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:49:22 +00:00
Adam Heath 13146509e2 FIX: UserLogin.currentPassword should be treated as opaque, so don't do any explicit compares against it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327739 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:49:04 +00:00
Adam Heath 6ea609d022 FIX: Fix a bunch of hashed passwords that had the oldFunnyHex encoding.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327736 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 23:48:51 +00:00
Adam Heath f640f0c901 FIX: UpdateFacilityGroupMembers.facilityId needs to link to Facility, not
FacilityGroup.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327249 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:17 +00:00
Adam Heath 755d06783e FIX: Fix off-by-one error in recently added shopping list pagination code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327248 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:11 +00:00
Adam Heath 895478438e FIX: Fix some entity relations that had spaces in their titles.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327247 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:05 +00:00
Erwan de Ferrieres a7eaf555b8 moving GetMenuContext.groovy to its right location with the other groovy scripts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327181 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 17:00:59 +00:00
Erwan de Ferrieres 3a790cb6ad tabs to spaces, no functional change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327038 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 10:50:19 +00:00
Erwan de Ferrieres a4f06bc9b8 Adding missing internationalization in FinAccounts.ftl
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327031 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 10:31:58 +00:00
Erwan de Ferrieres cc348ba512 Adding missing uiLabels in PartySalesOpportunities form
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326788 13f79535-47bb-0310-9956-ffa450edef68
2012-04-16 20:40:37 +00:00
Jacques Le Roux 97fd47f4c5 Completes r1326572, found while reviewing: useless as David noted, it's cloned later in the process
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326580 13f79535-47bb-0310-9956-ffa450edef68
2012-04-16 12:58:06 +00:00
Sascha Rodekamp c7d0a04b27 Replaces if-compare with if-compare-field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326572 13f79535-47bb-0310-9956-ffa450edef68
2012-04-16 12:19:42 +00:00
Sascha Rodekamp 1461d5819b createPartyContactMech: check for infoString is done without using the contactMechTypeId https://issues.apache.org/jira/browse/OFBIZ-4810 A slightly modified patch from Michael Brohl: The block which was commented out is needed for the condition list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326567 13f79535-47bb-0310-9956-ffa450edef68
2012-04-16 12:10:14 +00:00
Jacques Le Roux 4cd76a7bad Fixes a bug reported by Dimitrios Moustos on dev ML
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
2012-04-16 06:27:45 +00:00
Christian Geisert 70939b1439 added/corrected a few German Labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326399 13f79535-47bb-0310-9956-ffa450edef68
2012-04-15 19:00:07 +00:00
Jacques Le Roux 6dec5661a3 Replaces ProductCountry and mostly PartyCountry by CommonCountry and merges all labels in CommonCountry
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326270 13f79535-47bb-0310-9956-ffa450edef68
2012-04-15 08:24:45 +00:00
Hans Bakker 3416f110b9 improve error messages by replacing null pointer exception with meaningfull message
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326268 13f79535-47bb-0310-9956-ffa450edef68
2012-04-15 07:58:09 +00:00