Commit Graph
27737 Commits
Author SHA1 Message Date
James Yong 256fd74497 Fixed: Empty Space above Find Payment header
OFBIZ-9965

This fix will check paymentId is non-empty before including the PaymentSubTabBar menu.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814340 13f79535-47bb-0310-9956-ffa450edef68
2017-11-05 07:35:53 +00:00
Michael Brohl 4a698b614b Improved: Remove deprecated method
GenericDelegator.decryptFieldValue(String, String).
(OFBIZ-9916)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814327 13f79535-47bb-0310-9956-ffa450edef68
2017-11-04 22:23:20 +00:00
Michael Brohl 002fe23568 Fixed: UtilMisc.ensureLocale does not always return a valid Locale.
(OFBIZ-9964)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814319 13f79535-47bb-0310-9956-ffa450edef68
2017-11-04 19:38:12 +00:00
Jacques Le Roux 8693fb0bdc Improved: Replace Inline Javascript with External Javascript
(OFBIZ-9465)

As discussed in http://ofbiz.markmail.org/thread/ti54omjdt4fy662m 
inline javascript for various macros like renderLookupField, makeHyperlinkString,
shortDateInput etc in HtmlFormMacroLibrary.ftl should be replaced with a generic 
code written as external javascript. Generic Javascript code should be written 
in OfbizUtil.js and appropriate classes or identifiers should be used for 
applying that. Any additional data can be passed with HTML 5 custom data attribute 
(https://www.w3.org/TR/2011/WD-html5-20110525/elements.html
#embedding-custom-non-visible-data-with-the-data-attributes).


Deepak: I think we can use data-mask attribute to recognize the element instead 
of adding class. 

jeloux: I noticed a MaskFieldExampleForm was introduced with r1804027 but
not used in FormWidgetExampleScreens.xml so was not visible


Thanks: Aditya and Deepak


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814292 13f79535-47bb-0310-9956-ffa450edef68
2017-11-04 14:06:56 +00:00
Michael Brohl 4dd29160eb Improved: make utility function findWebsite public to be usable from
outside. This matches the pattern from other worker classes like 
PartyWorker.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814279 13f79535-47bb-0310-9956-ffa450edef68
2017-11-04 11:50:07 +00:00
Jacques Le Roux ab855f7774 Fixed: Sales by Store report calculates Value Sold incorrectly
(OFBIZ-9958)

Sales by Store report calculate Value Sold without taking into account order 
item quantity. 

jleroux: I also noticed that given products (free ones, due to^promotion) are 
counted as paid products, another thing to fix

Thanks: Oleg Andreyev

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814277 13f79535-47bb-0310-9956-ffa450edef68
2017-11-04 11:36:25 +00:00
Michael Brohl fb12f1fb4d Fixed: Corrected wrong FindBugs/refactoring change introduced in
r1813640.
(OFBIZ-9716)

Thanks Suraj Khurana for reporting and Dennis Balkir for providing the
patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814230 13f79535-47bb-0310-9956-ffa450edef68
2017-11-03 17:47:41 +00:00
Jacques Le Roux 62d3137e59 Better formatting (not sure the wiki import will work though)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814229 13f79535-47bb-0310-9956-ffa450edef68
2017-11-03 17:26:09 +00:00
Jacques Le Roux 4c773ecf93 Better formatting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814228 13f79535-47bb-0310-9956-ffa450edef68
2017-11-03 17:19:43 +00:00
Jacques Le Roux 564f7eacc7 The ® sign was duplicated there
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814180 13f79535-47bb-0310-9956-ffa450edef68
2017-11-03 13:14:52 +00:00
Jacques Le Roux fee69ad58d The ® signs was a bit ostentatious there
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814179 13f79535-47bb-0310-9956-ffa450edef68
2017-11-03 13:13:25 +00:00
Deepak Dixit ae6440d8c1 Improved: Added toString() method in ServiceEcaAction class file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814161 13f79535-47bb-0310-9956-ffa450edef68
2017-11-03 10:31:06 +00:00
Deepak Dixit aae3cebccc Improved: Add ability to disable entity eca rule (OFBIZ-9897)
We have enabled flag in EntityEcaRule class, if its set false then entity eca rule will not be execute.
But there is not way to disable entity eca.

We can add enabled flag in Entity ECA definition to disable the existing entity eca rule.

    Add new attribute on entity eca tag named enabled
    Default value will be true for this.
    If user want to disable existing OOTB entity eca rule, then user can define same rule in custom component and set the enabled=false

Also as per current flow if same seca rule is define more then once, system will execute all the rule, ideally it should not execute same rule (same rule, condition and action) if its defined more than one.

Also need to ovride hasCode, equals and toString method for EntityEcaRule, EntityEcaAction and EntityEcaCondition class file.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814160 13f79535-47bb-0310-9956-ffa450edef68
2017-11-03 10:28:05 +00:00
Jacques Le Roux 4785a20bb5 No functional change, completes r1813964 as suggested on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814155 13f79535-47bb-0310-9956-ffa450edef68
2017-11-03 09:49:21 +00:00
Jacques Le Roux f78a98f616 No functional change, removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814117 13f79535-47bb-0310-9956-ffa450edef68
2017-11-02 22:10:23 +00:00
Jacques Le Roux a0e85e028a Fixed: Error on first access to Online Help
(OFBIZ-9925)

There are maybe better fixes but adding a default theme when it's null works

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814116 13f79535-47bb-0310-9956-ffa450edef68
2017-11-02 21:58:37 +00:00
Jacques Le Roux 3b1354db19 Fixed: The online help is broken
(OFBIZ-9837)

Completes r1814063

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814090 13f79535-47bb-0310-9956-ffa450edef68
2017-11-02 15:07:48 +00:00
Jacques Le Roux 778a0616cf Fixed: The online help is broken
(OFBIZ-9837)

When you get to cmssite/cms/APACHE_OFBIZ_HTML in trunk HEAD you get this error:
ERROR in error page, (infinite loop or error page not found with name 
[/error/error.jsp])

It because the related code does not use the Common Theme. And also because
the Css styles missed in themes/common/widget/Theme.xml 

While fixing that I also fixed few points of the Common Theme documentation 
in the main README.md file

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814063 13f79535-47bb-0310-9956-ffa450edef68
2017-11-02 11:18:33 +00:00
Deepak Dixit 5eb0b46ce3 Improved: Removed io.jsonwebtoken:jjwt dependecy from build.gradle, as these dependency will be downloaded with io.jsonwebtoken:jjwt
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814049 13f79535-47bb-0310-9956-ffa450edef68
2017-11-02 09:05:29 +00:00
Deepak Dixit 1738e721b8 Fixed: doDecrypt method may return ClassNotFoundException, BadPaddingException,so instead of handling GeneralException used Exception class to handle all exception
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813964 13f79535-47bb-0310-9956-ffa450edef68
2017-11-01 10:43:14 +00:00
Deepak Dixit d261ed11ec Fixed: Added check in checkoutValidation method, as it should validate only for Sales order, as shipping method, and payment mehtod not set in purchase order (OFBIZ-9755)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813961 13f79535-47bb-0310-9956-ffa450edef68
2017-11-01 10:37:51 +00:00
Jacques Le Roux 6accef9785 No functional change, formatting while reviewing r1812049
Actually I'm unsure of how to present multiple expressions for autocloseables
in try blocks (here automatically done by my Eclipse formatter). This should be 
discussed with the community so we agreed on formatting rules to create an
official Eclipse formatter as being discussed at https://s.apache.org/0ptF

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813854 13f79535-47bb-0310-9956-ffa450edef68
2017-10-31 08:15:00 +00:00
Jacques Le Roux 5d4f865cd2 Fixed: ofbizsetup cannot create first customer. problem with state/province
dropdown
(OFBIZ-6054)

Load only seed and seed-initial
Go to url. https://localhost:8443/ofbizsetup/control/firstcustomer

When entering the postal address, the state/province dropdown is empty and 
remains empty regardless of selection of the country dropdown.

Thanks: Wai for report and Oleg Andreyev for patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813833 13f79535-47bb-0310-9956-ffa450edef68
2017-10-30 22:06:33 +00:00
Jacques Le Roux 6fe07e9961 Implemented: Token Based Authentication
(OFBIZ-9833)

Fixes a typo

Thanks: Deepak on dev ML 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813732 13f79535-47bb-0310-9956-ffa450edef68
2017-10-30 08:19:08 +00:00
Rishi Solanki 9b848c5f4d Improved: Move all data in applications to the datamodel component. Remove unused files and added additional files to maintain all component data.
(OFBIZ-9501)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813726 13f79535-47bb-0310-9956-ffa450edef68
2017-10-30 05:57:21 +00:00
Rishi Solanki a102c955fc Improved: Move all data in applications to the datamodel component. Remove unused files and added additional files to maintain all component data.
(OFBIZ-9501)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813725 13f79535-47bb-0310-9956-ffa450edef68
2017-10-30 05:51:08 +00:00
Rishi Solanki 42cc28f78e Improved: Move all data in applications to the datamodel component. Moved seed and seed-initial data from party, content, security ext and work effort component. Left with few data changes which can be moved to some plugins or confusing. Will share the data over community and proceed accordingly once base effort is complete. Thanks Sourabh Jain, Saurabh Dixit and Prakhar Kumar for your contribution.
(OFBIZ-9501)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813724 13f79535-47bb-0310-9956-ffa450edef68
2017-10-30 05:33:32 +00:00
Jacques Le Roux 90a349b441 Implemented: Token Based Authentication
(OFBIZ-9833)

This works the same way than externalLoginKey but between 2 servers, 
not 2 webapps on the same server. 

The Single Sign On (SSO) is ensured by a JWT token, then all is handled as 
normal by a session on the reached server. The servers may or may not share a 
database but the loginUserIds on the 2 servers must be the same.

OOTB the JWT masterSecretKey is not properly initialised and can not be OOTB.
As we sign on on several servers, so have different sessions, we can't use the 
externalLoginKey way to create the JWT masterSecretKey.
The best way to create the JWT masterSecretKey is to use a temporary way to load 
in a static final key when compiling. This is simple and most secure. 
One of the proposed way is to use sed and uuidgen to modify the masterSecretKey 
value. The magic words here are TEMPORARY and FINAL!

I have not tested this between 2 servers yet, only locally where it works well.
I'll do after this commit between my local instance and the trunk demo.

Thanks: Nicolas for the sed ans uuidgen suggestion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813679 13f79535-47bb-0310-9956-ffa450edef68
2017-10-29 11:02:00 +00:00
Jacques Le Roux 59fcf3bea6 Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change, better way to do that

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813675 13f79535-47bb-0310-9956-ffa450edef68
2017-10-29 09:23:24 +00:00
Jacques Le Roux 0e6a56eda4 Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change, last changes, we need to check if the 
"SIL Open Font License" has been correctly handled 
http://www.apache.org/legal/resolved.html


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813673 13f79535-47bb-0310-9956-ffa450edef68
2017-10-29 08:54:08 +00:00
Jacques Le Roux 7ca508d5c7 No functional change.
While reviewing r1813634, I found that we could use a multi-catch, and while
doing so found that we were missing a CertificateException according to Eclipse

Confirmed by Java:
:compileJava
ofbiz\framework\service\src\main\java\org\apache\ofbiz\service\rmi\socket\ssl\
SSLServerSocketFactory.java:75: error: 
unreported exception CertificateException; must be caught or declared to be
thrown
                ks.load(fis, passphrase);

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813671 13f79535-47bb-0310-9956-ffa450edef68
2017-10-29 08:16:58 +00:00
Jacques Le Roux dfbd540ec4 Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change, some more

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813670 13f79535-47bb-0310-9956-ffa450edef68
2017-10-29 08:00:46 +00:00
Jacques Le Roux 6b43f7fc3b Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change, one more: js/plugins/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813669 13f79535-47bb-0310-9956-ffa450edef68
2017-10-29 07:53:57 +00:00
Jacques Le Roux 549a2655a7 Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change, most should be done now, the rest needs to be checked

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813668 13f79535-47bb-0310-9956-ffa450edef68
2017-10-29 07:46:41 +00:00
Jacques Le Roux 6ba7d490b4 Improved: Add rat exclude files to excludes those files that does not need
license header 
(OFBIZ-9856)

No functional change, adds docbook again after INFRA-15395


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813667 13f79535-47bb-0310-9956-ffa450edef68
2017-10-29 07:39:35 +00:00
Jacques Le Roux 8f42e873cd Improved: Improve Rainbow theme showing themes
(OFBIZ-9862)

I have added the missing CSS styles for Rainbow theme in 
themes/rainbowstone/webapp/rainbowstone/style.css to improve the rendering of 
the list of visual themes also attached a screenshot for your quick reference. 

Thanks: Yogesh Naroliya for the patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813647 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 16:31:08 +00:00
Michael Brohl 89b36c49a8 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.entity.
(OFBIZ-9716)

I modified the patch slightly.

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813640 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 15:19:56 +00:00
Michael Brohl 6ec41780eb Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.datafile.
(OFBIZ-9715)

I modified the patch slightly and did some additional code cleanup by 
removing commented out code and some formatting.

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813637 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 14:45:17 +00:00
Michael Brohl b73414c870 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.service.rmi.socket.ssl.
(OFBIZ-9714)

I modified the patch to keep the previous logic to get the SSL server 
socket. The cast should be safe because of the SSLServerSocketFactory
being used to get the socket.

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813634 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 14:19:22 +00:00
Michael Brohl 972cf88c01 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.entity.condition.
(OFBIZ-9713)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813633 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 14:10:07 +00:00
Michael Brohl e687edb25f Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.entity.finder.
(OFBIZ-9712)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813632 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 13:39:24 +00:00
Michael Brohl e3665de1f2 Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.entity.cache.
(OFBIZ-9711)

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813631 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 13:36:26 +00:00
Michael Brohl 1f7abbf690 Improved: Update to Apache Derby 10.14.1.0.
(OFBIZ-9887)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813630 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 13:31:31 +00:00
Michael Brohl 1d1e2f9485 Improved: Added a hint to skip tasks which are automatically invoked
during the main task and provided an example to run ./gradle build 
without the JUnit tests (useful for server deployments).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813628 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 13:23:40 +00:00
Arun Patidar 3bbb6b8a76 Fixed: Issue while creating new person in the party component.
(OFBIZ-9653)

Thanks Rubia Elza Joshep and Suraj Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813627 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 13:16:01 +00:00
Arun Patidar 4a28d14ac6 FIXED:Request handler exception in create billing account from suppliers profile page. (OFBIZ-9751)
Thanks Mr. Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813626 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 13:11:17 +00:00
Arun Patidar 71e4cfa0f4 BUG: Service level check is missing on transfer inventory. (OFBIZ-9842)
Thanks Mr. Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813624 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 13:05:53 +00:00
Arun Patidar 8a2ec7ddd4 IMPROVED: Replace ContentAssoc related CRUD services with entity-auto. (OFBIZ-9907)
Thanks Mr. Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813623 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 12:56:17 +00:00
Arun Patidar a35b4babfd FIXED: Fixed testExpirePartyRate test. Passed required field as per modification in service definetion. (OFBIZ-9904)
Thanks Suraj Khurana for reporting and patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813622 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 12:47:33 +00:00
Deepak Dixit 982fe0c58a Added missing licence header
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813620 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 12:46:43 +00:00