As suggested by Deepak keeps only <<web-app version="3.0">> in web.xml files instead of whole xmlns and schemaLocation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1726388 13f79535-47bb-0310-9956-ffa450edef68
* TaxAuthority
* TaxAuthorityAssoc
* TaxAuthorityCategory (not remove)
* TaxAuthorityGlAccount
* TaxAuthorityRateProduct
I also move the permission check to the service definition.
related issue OFBIZ-6851
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1726327 13f79535-47bb-0310-9956-ffa450edef68
In DemoTaxAuthority.xml the associated CountryCode for the tax office in/of Bulgaria is set to BEL, which is Belgium.
This should be corrected to BGR.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1725561 13f79535-47bb-0310-9956-ffa450edef68
============================================================
Order Item with multiple qty reserved with multiple inventory item not correctly recorded into Shipment_Item_Billing
============================================================
Thanks Swapnil Shah for reporting the issue and Ankush for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1724951 13f79535-47bb-0310-9956-ffa450edef68
============================================================
There's no attribute "align" for tag "<fo:block>", must change to "text-align".
============================================================
Thanks Parinya Wongjina for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1724925 13f79535-47bb-0310-9956-ffa450edef68
ChartOfAccounts.fo.ftl using postedBalance field, but its removed at r1530274, As its not a valid field of entity so system throwing exception while accessing COA pdf.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1724918 13f79535-47bb-0310-9956-ffa450edef68
============================================================
Unable to transform FO file: org.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException: null:15:42: Invalid property encountered on "fo:block": align (See position 15:42)
============================================================
Thanks Parinya Wongjina for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1724916 13f79535-47bb-0310-9956-ffa450edef68
Error occur when create Lead/Contact from Vcard.
This patch will improve importVcard service to able to create Lead/Contact from Vcard and display error messages when Vcard has invalid values.
jleroux: I simply changed the importVCard service transaction-timeout from 72000 (20 hours!) to 7200. Also added corresponding French labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1724763 13f79535-47bb-0310-9956-ffa450edef68
Receive the following exception while placing an order through the ecommerce application.....
groovy.lang.MissingPropertyException: No such property: response for class: CompanyHeader
Following is the relevant portion of the stack trace...
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) ~[groovy-all-2.2.1.jar:2.2.1]
at CompanyHeader.run(CompanyHeader.groovy:48) ~[?:?]
...
Apparently, the response object is not available within the context when the sendOrderConfirmation service is run.
Steps to reproduce the exception....
1. Checkout OFBiz 14.12 Release (revision was 1722928 at the time of checkout).
2. Run the default build.
3. Load the demo data.
4. Start the OFBiz instance (it will use the OOTB default derby db of course).
5. Within a browser goto URL.. http://localhost:8080/ecommerce
6. Proceed to place an order adding at least one item to the cart.
7. While checking out you may or may not have to create an account. I created an account for this test.
8. Proceed through all the checkout steps and submit the order.
Monitor the log and you will see the exception occur within a few seconds. This exception doesn't occur in the OFBiz 13.07 release branch. In fact, the response object is not referenced at all in the CompanyHeader.groovy from the 13.07 branch. Whoever inserted the code that references the response object within the CompanyHeader.groovy script, must have neglected to test the changes with the ecommerce application. I only found the error while migrating our instance of OFBiz to the 14.12 release. Our custom ecommerce application employs the sendOrderConfirmation service the same way the OOTB ecommerce application does.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1724689 13f79535-47bb-0310-9956-ffa450edef68
In party module present in application component the file PartyContactMechServices.xml containing simple-method createPartyEmailAddress (meant for creating an email address for party) is using wrong entity condition expression for fetching the view entity PartyAndContactMech.
It is using from-field attribute for the comparison of a constant value instead of the value attribute.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721625 13f79535-47bb-0310-9956-ffa450edef68
============================================================
Order item quantity cancel issue.
If user partially received an order and then cancel order item, system cancel all the order item quantity.System does not check for shipped/received order item quantity.
Expected behavior: Only remaining order item quantity should be cancelled and order item should marked as complete with partial received/shipped quantity.
============================================================
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721093 13f79535-47bb-0310-9956-ffa450edef68
============================================================ Html clean up of quick add page.
============================================================
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721091 13f79535-47bb-0310-9956-ffa450edef68
Upload product image dose not working because "updateDataResource" require out parameter name 'dataResourceId' but the service doesn't return by using entity-auto engine and upload image function need delegator but do not sent to upload image function.
jleroux: this was due to recent r1716271 so no needs to backport. The changes in ImageManagementServices were not operationally needed (it worked as is) but indeed better for a method like scaleImageMangementInAllSize to rely on DispatchContext rather than service context when called from a service. Since it's not a service I changed the scaleImageMangementInAllSize method to private. I also removed the useless "ImageManagementServices." prefix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721066 13f79535-47bb-0310-9956-ffa450edef68
================================
There are three sets of dimensions in the Product entity.
(productHeight, shippingHeight), (productWidth, shippingWidth), (productDepth, shippingDepth) but in case of weight, there is another set of dimension field weight and productWeight which are inconsistent in nature.
Fix this thing and correct all instances of this in the framework.
=================================
Thanks Suraj for reporting the issue and providing the patch for the same. Thanks Jacopo and Pierre for discussing the issue with Suraj.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720900 13f79535-47bb-0310-9956-ffa450edef68
This is a first step to refactor application components into independent parts that can be deployed when needed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720413 13f79535-47bb-0310-9956-ffa450edef68
* added ability to specify comparison operators for promotions with conditions on quantity
* added ability to specify categories/products to filter the order sub-total amount eligible for a discount
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720312 13f79535-47bb-0310-9956-ffa450edef68
An error is displayed on Accounting reports for Cash transactions:The renderContentAsText method should configure text sanitizer by "sanitizer.permissive.policy" in owasp.properties. If electronic text contains javascript, the renderContentAsText method will remove some content.
jleroux: of course you would allow script in your permissive policy at your own risk...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720100 13f79535-47bb-0310-9956-ffa450edef68
This for 3 reasons:
1) Tomcat protects the cookies which it cares about (session and SSO cookies) but not all. Notably the OFBiz specific cookies, like visitorCookie. I guess also trackableCookie, billableCookie, siteIdCookie, updatedTimeStampCookie, guestShoppingListCookie, usernameCookieName and autoLoginCookie are not secured with The data in those cookies are less sensible than jsessionId but anyway it's safer to have them all secured.
2) I don't want to debug the ecommerce issue I reported in OFBIZ-6655. And if I don't use the sessionConifg_ecommerce.patch but rather reapply r1719762 then it's OK (if I also locally revert r1686574 done for OFBIz-6111, still waiting on this one...)
3) I see no reasons why someone would not want her cookies secured, as recommended by OWASP and others
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719939 13f79535-47bb-0310-9956-ffa450edef68
Need to enhance security at web-app level.
As per current implementation:
- The cookie containing the session identifier is not secure
- The session identifier is transmitted in the query string of the URL
To fix these issue we have to add following session config otpions in web.xml
{code}
<session-config>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
{code}
Also we need to update the web-app servlet specification from 2.3 to 3.0
{code}
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
{code}
https://tomcat.apache.org/whichversion.html
jleroux: these are only the framework+themes+applications patches, with 3 entries not applied
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719872 13f79535-47bb-0310-9956-ffa450edef68
An error is displayed on Accounting reports for Cash transactions:
_Error running script at location component://accounting/webapp/accounting/WEB-INF/actions/reports/CashFlowStatement.groovy: java.lang.IllegalArgumentException: argument type mismatch_
How to reproduce: create a new cash transaction and go to the Cash Flow Statement report.
eg https://demo-trunk-ofbiz.apache.org/accounting/control/CashFlowStatement?organizationPartyId=Company
The attached patch addresses the issue. I believe this is related to OFBIZ-5781.
jleroux: thanks also to Pierre Smits who spotted an issue with initial Francis's patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719857 13f79535-47bb-0310-9956-ffa450edef68
The secure flag on cookies instructs the browser to only submit the cookie as part of requests over secure (HTTPS) connections. This prevents the cookie from being observed as plain text in transit over the network.
The HttpOnly flag instructs the browser that this cookie can only be accessed when sending an HTTP request. This prevents scripts running as part of a page from retrieving the value and is a defense against XSS attacks.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719762 13f79535-47bb-0310-9956-ffa450edef68
Reported by Michael Powacht
System incorrectly derives invoice item type INV_FPROD_ITEM (instead of PINV_FPROD_ITEM, for example) in purchase invoices for purchase orders with products of type RAW_MATERIAL and GOOD. As a result, the GL account derivation is incorrect as well where a revenue GL account gets debited instead of GL "Uninvoiced Shipment Receipts".
The incorrect accounting entry posted is:
DR Revenue (as a result of invoice item type INV_FPROD_ITEM)
CR A/P
The correct entry should be:
DR Uninvoiced Shipment Receipts (derived from PINV_FPROD_ITEM)
CR A/P
It seems the above is caused by missing entries in table invoice_item_type_map where
INVOICE_ITEM_MAP_KEY should contain RAW_MATERIAL and GOOD and/or PRODUCT_ORDER_ITEM.
The above symptom does not affect the Goods Receipt Transactions, which gets correctly posted as:
DR Inventory
CR Uninvoiced Shipment Receipts
jleroux: Rupert Howell gave the missing data in a comment, Pierre the patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719094 13f79535-47bb-0310-9956-ffa450edef68
Even if we are covered from the Java Object possible deserialisation exploit by the 3.2.2 version, since it's easy to update, this issue to update the trunk to the last available release.
I updated the .classpath file by hand, but kept the tabs in it, so I could move misplaced entries to their right alphabetical places.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1717247 13f79535-47bb-0310-9956-ffa450edef68
jleroux: the issue description is quite lengthy so I will summarise it here, please refer to the Jira issue for details.
"When a customer creates an account on eCommerce site, s/he will also need to answer a security question. This security question then can be used by the user to reclaim her/his account in case s/he forgets her/his password. If the user correctly answers the required security question while reclaiming her/his account, her/his password will be sent through email notification. This part would work in the same way as the existing functionality of email password (forget password)."
The description was actually more ambitious (several questions, possibility for users to create own questions) but AFAIK these parts have not been implemented.
Apart updating the patch which did not merge, I got 2 majors issues (and few others I will not report here) I bypassed with workarounds.
Unlike Harsha, and as I reported earlier in the issue, I never got the username (userLoginId) back when using hidden parameters in the request body (not in requestParameters, ie UtilHttp.getParameterMap(request)), nor actually any parameters. This is maybe due to my OS (Windows7 was XP before) or my email client (Outlook Express then, now Thunderbird) or even my SMTP configuration (I used my ISP SMTP server) but most probably because I did it all on my sole machine (localhost). I tried to understand what was happening to request body parameters with http://www.telerik.com/fiddler, but finally gave up because it's even more complicated when https is in the picture. So I decided to rather use parameters in the URL (Query string). It's a bit less safe, though the password is OFBiz encrypted, and should be replaced. But it's safe enough because only the user should receive this message and even if the message is sniffed during its journey it should be hard to decrypt the password!
Harsha used the SecurityExtUiLabels.xml (created by ashish at r1618415) in securityext component but there is already a SecurityextUiLabels.xml in common component. Since I use Windows OFBiz was unable to retrieve the labels from SecurityExtUiLabels.xml since I guess it looked into a SecurityextUiLabels.xml. So I renamed a SecurityExtUiLabels.xml to EmailPassword.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1716915 13f79535-47bb-0310-9956-ffa450edef68