Mentionned at https://tika.apache.org/
Apache Tika 1.28.4 has been released! This release includes security related
fixes and dependency upgrades
Note: The Apache Tika PMC has set September 30, 2022 as the End Of Life for the
Tika 1.x branch.
Allows both <br> and <br /> to pass in UtilCodec::checkStringForHtmlSafe, both
are correct.
Clarifies owasp.properties documentation about how to create own sanitizer
policies
When you generate an order on a party who have a PartyAcctgPreference with a customMethod orderSequence_enforced, the service failed due to the missing parameter partyAcctgPreference.
Like quote and invoice it's preferable to forward the partyAcctgPreference information.
When you use two menus where the second extend the first, menu items and menu links aren't correctly propagated.
The menu items and menu links presents on the second menu already have the first menu on their model.
****
<menu name="FirstMenu" extends="CommonInlineBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<menu-item name="MyItem">
<link target="GoAction"/>
</menu-item>
</menu>
<menu name="SecondMenu" extends="FirstMenu"/>
****
The result, if during the rendering some information are generated from the menu, in the previous case, it's always the "FirstMenu" that would be use.
Like when your menu generate a hidden-form, the SecondMenu link the bad form
****
<form method="post" action="GoAction" onsubmit="javascript:submitFormDisableSubmits(this)" name="SecondMenu">...</form>
<a href="javascript:ajaxSubmitFormUpdateAreas('FirstMenu', 'xxx')">MyItem</a>
****
To solve it and don't break the thread safe pattern, I introduce two new constructor for ModelItem and MenuLink for duplicate the ModelMenuItem and MenuLink in memory with the new parent. With this, the SecondMenu iw now completely duplicated on memory and now share any reference with the extended menu.
Thanks to Marco Rodrigues that detect this problem
We need to upload a CSV format file as part of project requirement
We were able upload CSV format file under eCommerce in Version 16.11.07.
We are trying to implement the same in version 18.12.05 - there the same upload
module does not work.
jleroux: I missed to check and allow CSV files when all files are allowed.
That now uses:
https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.html
The default CSV format used to check upload of CSV files is set in the property
csvformat=CSVFormat.DEFAULT in security.properties
Thanks: Sachin for report
Add integration test to validate the good retrieval of the success /
error message.
Ajout de 4 services groovy pour tester le fonctionnement du moteur de service en groovy couplé a des appels de type DSL
No functional changes, just removing a compilation warning
While compiling with Java 11 I got this message:
> Task :compileJava
UtilHttp.java:502: warning: [unchecked] unchecked call to
<R>map(Function<? super T,? extends R>) as a member of the raw type Stream
[...]
This fixes it with the help of Eclipse
rs.getModelService().getName() should be used
instead of
rs.getModelService().name
The rest of changes is only non functional formatting and such
Thanks: Emad Radwan for reporting
At this time when you aren't logged and you need to be authenticated for access to a page, OFBiz return the login page with a http code 200
This set a problem for ajax call to understand why the page returned isn't the attendee/
This improvement does 3 things :
* return a HTTP status code 401 (Unauthorized) in LoginWorker::checkLogin if user is not authenticated (no more 200),
* in common-theme, OfbizUtil.js, on AJAX calls handler, if the request fails with a 401 status code, reload current page (so we land on login form instead of being stuck in a blank modal) with a new search param `clickOn` containing the id of the link that triggered the AJAX call,
* on page load, if `clickOn` search parameter exists, trigger a click event on the link, so the initial modal pops in after a successful login
Thanks to Florian Motteau for this improvement
When you forward a request-map on json response after a service call like this :
<request-map uri="updateMyEntity">
<security https="true" auth="true"/>
<event type="service" invoke="serviceWithUnserializableElement"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
The request json works fine if the serviceWithUnserializableElement have an element unserializable on out put at the first level
<service name="serviceWithUnserializableElement"...>
<attribute name="outputStream" type="java.io.OutputStream" mode="OUT"/>
</service>
If the definition is like this
<service name="serviceWithUnserializableElement"...>
<attribute name="outputStreamMap" type="Map" mode="OUT"/>
</service>
The json failed to generate if the outputStream is a map. despite the function UtilHttp.getJSONAttributeMap that safe only the first map level and don't work in deep.
By the way, we improved the getJSONAttributeMap to work in deep by a recursive treatment on Map and List.
Add the possibility to print invoice, quote and order as pdf from the organizational party configuration.
With this you can define your own xslfo template connected to a custom screen and configure it for each organization through PartyPrefDocTypeTpl
Thanks to Ingo Wolfmayr for patch submission
After migrating OFBiz BuildBot 0.8 config to 3.2 we no longer receive status
emails (success, failure, exception) to commits@ofbiz.apache.org (answering to
dev@ofbiz.apache.org)
Removes the commented out <<ProductStore storeName="OFBiz E-Commerce Store">>
to hopefully get a successful email from BuildBot
I modified the BuildBot config to test BuildBot sends only emails on status
changes
After migrating OFBiz BuildBot 0.8 config to 3.2 we no longer receive status
emails (success, failure, exception) to commits@ofbiz.apache.org (answering to
dev@ofbiz.apache.org)
Comments out <<ProductStore storeName="OFBiz E-Commerce Store">> to get failing
tests and an email from BuildBot to later removes that to get a successful email
Thanks: Chris Lambertus for last change that always send an email. As sending
emails works for "all" changes to "change" this to test what we are really
interested in.
Throughout the various components the screens to find a particular record (or multiple) are structured the same way with a decorator-screen called 'FindScreenDecorator' and in there decorator section for 'search-options' and 'search-results', bringing to the users a consistent experience.
The search and find functionality for quotes does not adhere to that paradigm.
modified: QuoteScreens.xml
restructured FindQuote screen to align with paradigm applied to the same vis-a-vis
searching and finding other kinds of records, additional cleanup.
jleroux: very minor changes to test INFRA-22689 "No status emails sent to commits@ofbiz.apache.org"
After migrating OFBiz BuildBot 0.8 config to 3.2 we no longer receive status
emails (success, failure, exception) to commits@ofbiz.apache.org (answering to
dev@ofbiz.apache.org)
Removes the commented out <<ProductStore storeName="OFBiz E-Commerce Store">>
to hopefully get a successful email from BuildBot
Thanks: Gavin McDonald for the work
After migrating OFBiz BuildBot 0.8 config to 3.2 we no longer receive status
emails (success, failure, exception) to commits@ofbiz.apache.org (answering to
dev@ofbiz.apache.org)
Comments out <<ProductStore storeName="OFBiz E-Commerce Store">> to get failing
tests and an email from BuildBot to later removes that to get a successful email
Thanks: Gavin McDonald for the work
The LookupProduct function is used across various applications,
intended to assist users with the need to search, find and select
products in forms where one needs to be added or changed.
Also usable in overviews where a product is referenced.
modified: CommonUiLabels.xml
Attachments to order can be also documents. Accepting only images did not prevent
it, you can always bypass that, but it clarifies things.
Also improves the ContentUploadFileTypeNotMatch English label
A few improvement to put directly the focus on username field when we arrive on login page for helveticus theme
Thanks to Marine Desmarchelier for this
The ProductAssocs screen does not display as expected.
https://localhost:8443/catalog/control/EditProductAssoc?productId=WG-9943
This is caused by the tooltip syle (flex) defined for an info text that is used
on that screen.
Solution suggested : keep the text by just removing "style=tooltip".
Thanks: Ingo Wolfmayr
When accessing
[https://localhost:8443/accounting/control/BillingAccountPayments?billingAccountId=9010]
as a user with only VIEW permissions (e.g. userid=auditor),
the screen shows a form to create a payment.
This should not be visible to such a user as it leads
to a undesired effect and diminished user experience.
modified: BillingAccountScreens.xml
reworked screen BillingAccountPayments to work with
CREATE permissions
Currently, the EditQuote screen in QuoteScreens.xml is using 'main-decorator' as the decorator-screen reference screen.
Because of this, the menus for the quote (being edited) are not shown to the user.
modified: QuoteScreens.xml
changed decorator-screen ref in screen EditQuote from 'main-decorator' to 'CommonQuoteDecorator
This commit fix an issue that, under high usage, redondant thread are
created.
Update sshd-core to 2.8.0, adding sshd-ftp since it has been separated in its own library.
Add SshClientHelper to hold the unique instance of SshClient.
Update SshFtpClient class to use the unique SshClient, manage the password/identity into the session and clean close the session.