(OFBIZ-9990)
Fixes this issue in Tomahawk and Flat Grey themes by using ofbiz_logo.png,
instead of the old logo deprecated ofbiz_logo.gif
While at it use the same logo everywhere it's possible. It was needed for links
to http://ofbiz.apache.org/images/ofbiz_logo.gif which no longer exists
(actually seems only used for tests so could stay like that but better not refer
to it anyway)
Also use this logo for Bluelight theme where it fits.
It could not be used in Rainbow themes because they are using a Scalable Vector
Graphics file (ofbiz-white.svg) that can't be replaced by the new png logo file
BTW this file still uses a TM symbol instead of a ®
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816897 13f79535-47bb-0310-9956-ffa450edef68
'removeOrderContactMech'.
(OFBIZ-9967)
In case, user don't create orderContactMech while creating an order and wish to
create orderContactMech after the creation then, 'updateOrderContactMech'
throws error of 'oldContactMechId' parameter missing in 'removeOrderContactMech'
service.
Adds a 'if-not-empty' check for 'oldContactMechId' field i.e, if
'oldContactMechId' is available then only 'removeOrderContactMech' service
should be called in 'updateOrderContactMech' service.
Thanks: Sonal Patwari
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816795 13f79535-47bb-0310-9956-ffa450edef68
With the issue "Convert BudgetServices.xml mini lang to groovy" (OFBIZ-9985)
and issue "Implement Groovy test in testtools" (OFBIZ-9996)
I converted the related test AutoAcctgBudgetTests from minilang to groovy.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816645 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-10027)
Sending mail should be async as it should not affect the regular workflow.
createGiftCertificate service doesn't create FinAccount with proper data.
Like currency, name, ownerPartyId etc is not handled properly.
Thanks: Suraj Khurana
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816635 13f79535-47bb-0310-9956-ffa450edef68
postal address
(OFBIZ-9980)
While creating a postal address for any party or facility, we can enable service
to store its latitude and longitude if available and create a geo point for the
same.
Later screens using this feature will be created with OFBIZ-10022
Thanks: Suraj Khurana
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816481 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-10010)
Steps to regenerate:
1) Open URL https://demo-trunk.ofbiz.apache.org/sfa/control/FindAccounts
2) Select an account from the list or create a new account.
3) In the account profile page, click on "Create New" in the "List Related Contacts" section.
Actual: No option to create the account contacts.
Expected: There should be an option to create account's contact.
Creates new request-map and screen definition to redirect 'Create New' link
on proper screen. So that user can add contacts to the Account.
Thanks: Rubia Elza Joshep for report and Pradeep Choudhary for patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816373 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9899)
Steps:
1. Open https://demo-trunk.ofbiz.apache.org/accounting/control/FindBillingAccount
2. Navigate to Find Billing account
3. Check for Search Results
Actual: At Account Limit section, symbol is been displayed
Expected: Currency Symbols should be displayed
Actual issue in the code is, Billing Account rendering logic is using browser's
locale(Due to Null BillingAccount object passed) to render currency symbol but
the code should use BillingAcccount.accountCurrencyUomId that get's set by User
on BillingAccount creation.
Fixed the logic to use accountCurrencyUomId as currency to render currency symbol.
Thanks: Aayush jain for report, Ankush Upadhyay for patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816369 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9675)
ofbizAmount macro can be used.
jleroux: while applying the patch I noticed the use of ?default(0) where the
newer and simpler !0 could be used. Rather than only replacing this case here
I'll create a Jira and replace all such cases generalising to any value (that's
a lot: 1394 case!)
Thanks: Renuka Srishti and Ritesh Kumar
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816291 13f79535-47bb-0310-9956-ffa450edef68
Also fixed same issue for Create Employee functionality.
Thanks: Chandrashekhar Dhakad for reporting the issue and Yogesh Naroliya for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816259 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
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
(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
(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
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
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-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
(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
(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