(OFBIZ-9978)
Here is the first patch with Jquery upgrade from 1.11.0 to 3.2.1 with following
changes:
Removes JQuery 1.11.0 & JQuery migrate 1.2.1
Adds JQuery 3.2.1 & JQuery migrate 3.0.0
Adds JQuery Browse Plugin . The jQuery.browser() method has been deprecated
since jQuery 1.3 and is removed in 1.9.
Upgrades Fancybox 1.3.4 to v3.2.3
Upgrades JQuery Validation Plugin 1.11.0 to 1.17.0
Messages_en.js, Messages_cn.js, Messages_se.js, Messages_tw.js and
Messages_uq.js manually updated with new changes not present in JQuery
Validation Plugin package
Converted file additional-methods.js and validate.js from dos to unix text
Upgrades JQuery Form Plugin version: 2.87 (20-OCT-2011) to 4.2.2
Upgrades MockJax - jQuery Plugin to Mock Ajax requests 1.4.0 to 2.2.1
Thanks: Aditya
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1815824 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8341)
While reviewing r1812057 I spotted a bunch of swallowed ClassCastExceptions
I then reviewed all ClassCastExceptions and this fixes all of them with a
minimal logging
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1815797 13f79535-47bb-0310-9956-ffa450edef68
Also adds more information in README.txt in tools and updates the report used
in wiki. BTW the report seems more interesting, less false positive but still
a lot (due to how Gradle handles dependencies)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1815437 13f79535-47bb-0310-9956-ffa450edef68
With this fix, about the Quicksand Google font licensed under the
SIL OPEN FONT LICENSE Version 1.1, we are now clear from all licensing issues
Though we are still waiting for INFRA-15466 to check the RAT Buildbot result...
BTW I referred to https://nifi.apache.org/licensing-guide.html about how to
handle this case. Only a change in NOTICE was needed, not in LICENSE. Nice TLP
document, that I'll check again later...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1815412 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9405)
Refactoring various list forms into grids
Refactoring various list form references in screens
jleroux: slightly adapted because of r1799252
Thanks: Pierre Smits
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1815193 13f79535-47bb-0310-9956-ffa450edef68
org.apache.ofbiz.securityext.login.
(OFBIZ-9637)
No functional change.
I prefer to use URLEncoder.encode(reqParam, "UTF-8") rather than ESAPI HTML
encoder for 3 reasons:
* URLEncoder.encode() is sufficient to answer to HTTP response splitting using
Percent-encoding (aka URL encoding)
* Consistent and simpler code using basic Java
* Using "UTF-8" is (more than) recommended, see
https://docs.oracle.com/javase/8/docs/api/java/net/URLEncoder.html
I will check what using ESAPI HTML encoder entails. As JavaDOc says "Not doing
so may introduce incompatibilities." We have 30+ cases, they are maybe OK, but
we need to check...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1815192 13f79535-47bb-0310-9956-ffa450edef68
DataResourceWorker call the FreeMarkerWorker.renderTemplateFromString if dataTemplateTypeId is FTL,
and pass the dataResource.lastUpdatedStamp to update the ftl cache.
But if you use ftl file as objectInfo so dataResource.lastUpdatedStamp will not change if you update the ftl file
Thanks Suraj Khurana for reporting the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1815059 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9968)
For example: In 'ProductPromoUiLabels.xml' file
'ProductPromoCondition.PPIP_PRODUCT_TOTAL',
'ProductPromoCondition.PPIP_PRODUCT_AMOUNT' etc.
uilabels contain duplicated dollar symbols
Thanks: Sonal Patwari
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814934 13f79535-47bb-0310-9956-ffa450edef68
twice
(OFBIZ-9770)
GlobalActions screen of themes/common/widget/CommonScreens.xml is loaded twice.
1. Included in GlobalDecorator screen of themes/common/widget/CommonScreens.xml
2. Included in GlobalActions screen of framework/common/widget/CommonScreens.xml
Solution: removes the first instance i.e. from GlobalDecorator.
Steps to verify:
All the files (js, css etc) included in this screen are still available.
Thanks: Aditya for the patch et Aishwary Shrivastava for testing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814906 13f79535-47bb-0310-9956-ffa450edef68
pointer exception for BigDecimal comparison
(OFBIZ-9975)
The compareTo() method of BigDecimal is not null safe.
When totalAllowance value is null it throws null pointer exception which may be
difficult to trace sometimes.
Valid null pointer checks should be there before using compareTo() if the
variable may have a null value in any of the case.
Thanks: Aditya
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814873 13f79535-47bb-0310-9956-ffa450edef68
also remove checkToggle, toggleAll and selectAll js functions
Improved:
(OFBIZ-8300)
Remove inline js for toggleAll, checkToggle and selectAll calling from ftls in
Framework component. Add class="selectAll" on parent checkbox element for select
all functionality.
Also remove js functions from OFBIZUtil.js. Functions are: toggleAll, selectAll,
toggle and checkToggle, as all its usage replaced with generic selectAll class
usage.
Thanks: Amardeep Singh Jhajj and Aditya Sharma
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814723 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9973)
I missed to encode the request parameter prior to use the canonical pathname
Nevertheless Findbugs continues to complains about missing canonical pathname
I tried
String safePath = (new File(imageServerPath + "/" + productId + "/" + imageName))
.getCanonicalPath();
BufferedImage bufImg1 = ImageIO.read(FileUtil.getFile(safePath));
instead of
BufferedImage bufImg1 = ImageIO.read(new File(imageServerPath + "/" + productId
+ "/" + imageName).getCanonicalFile());
Same Findbugs report, I consider it's a false positive and keep the later
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814709 13f79535-47bb-0310-9956-ffa450edef68
Reason: When the field is encrypted with the old algorithm (3-DES), the new Shiro code will fail to decrypt it (using AES) and then it will
throw an org.apache.shiro.crypto.CryptoException that is a RuntimeException.
For backward compatibility we want instead to catch the exception and decrypt the code using the old algorithm.
This has been discussed at https://s.apache.org/b520
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814704 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9973)
FindBugs embeds an option to Find Security Bugs. Here are fixes for 2 cases FB
reported. They both relate to a request parameter that could be corrupted. They
are respectively fixed using URLEncoder.encode() and File.getCanonicalFile()
There are other formatting and minor no functional changes.
Remains not fixed issues related with possible SQL injections that I'll possibly
look at later...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814642 13f79535-47bb-0310-9956-ffa450edef68
The call of execute() directly is against gradle recommendations and I disliked
this piece of code from the moment I wrote it. Luckily the solution is rather
simple by simply replacing the direct call from the graph with a finalizedBy
clause in the java execution task.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814593 13f79535-47bb-0310-9956-ffa450edef68
selection criteria
(OFBIZ-7438)
1. Go to Facility -> Inventory
2. Select a status and perform find
3. Click on Print pdf button
Expected: PDF should show selected statusId
Actual: All available statusId's in the system get listed in the Pdf.
Thanks: Arvind Singh Tomar
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814591 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7322)
Steps to regenerate:
1) Go to Facility component. Select a facility and submit (Facility for which
some orders are available in ready to pick status).
2) Now go to picking screen.
3) From the list of ready to pick orders try to print Pick sheet by clicking on
"Print Pick Sheet" button.
4) See the logo is missing in pdf.
Thanks: Pawan Verma
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814569 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9919)
Using a dynamic view entity containing groupBy clause and after calling
getCompleteList method, I am getting an error and it got fixed when I removed
that ArrayList sizing.
IMO, it might be occurring due to improper size initialization and I see no
reason for this and it is handled in ArrayList dynamically.
jleroux: moreover there is not much gain for cases where the pre-allocation
makes sense
Thanks: Suraj Khurana
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814561 13f79535-47bb-0310-9956-ffa450edef68
when locale parameter is missing
(OFBIZ-9970)
The said method is not nullpointer-safe; it is possible, that the method crashes
and produces a nullpointer-exception at this point:
String sessionLocale = locale.toString();
Thanks: Dennis Balkir
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814501 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9833)
Comment about production server
I thought it was obvious that you should not keep this file on a production
server after having changed the default value of
ExternalServerJwtMasterSecretKey
Moreover we recommend to have the value of ExternalServerJwtMasterSecretKey
dynamically generated during each build to increase security
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814402 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9833)
I have tested the Token Based Authentication between my local machine and the
trunk demo. It works as expected.
This completes the previous commit by:
adding a new externalServerLoginCheck pre processor
Documenting how to set the ExternalServerJwtMasterSecretKey in production
using sed and uuidgen
Adding documenting properties in security.properties, not set to be used OOTB
but ready to be set in production
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814363 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9966)
When OFBIZ-4983 was implemented I missed that we put the login.secret_key_string
as a property in security properties. This should not have been because it
eases attackers work.
The recommended way is to have it as a private static final String that can be
changed just when compiling using sed and uuidgen. So then the key is temporay
and final and it gets quite harder for a possible attacker to use this mean.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814349 13f79535-47bb-0310-9956-ffa450edef68