the initialization of the ControlFilter.
These unit tests are experimental but interesting because they provide test
coverage in isolation for some aspect of the framework that were not covered
before or only covered by integration tests.
The tests for the ControlFilter are particularly interesting because they
leverage Mockito to run the test in isolation by mocking the FilterConfig
object.
Please review and run these tests in your local environment, provide your
feedback and report any issues you may find: this will help to define a pattern
for the definition of unit tests that could be applied more extensively.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761440 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8265)
The layout of screen "order status" of application "ecommerce" is busted .
I save the html of the screen into my local file, and It works fine. I don't know the reason exactly, but the patch attached by me works correctly.
jleroux: after review I agree it's the right way to fix it. OrderStatus.ftl indirectly calls OrderItems.ftl through the orderitems screen so nothing is lost when the addCommonToCartForm is moved from OrderStatus.ftl to OrderItems.ft, it's only a rearrangement which fixes the issue.
Thanks: fumiyoshi.to
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761431 13f79535-47bb-0310-9956-ffa450edef68
default encoding for the requests and some fine tuning of ControlFilter
settings; removed no more used code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761424 13f79535-47bb-0310-9956-ffa450edef68
In reference to the below discussion thread, this commit removes a task
which generates the above mentioned jar file which holds a service
definition. The fix is replace the gradle task which automatically
generates service with a flat directiory (META-INF) that defines the
service provides. All tests pass.
Thread: http://markmail.org/message/wzmw2qbacg4hup7r
Thanks: Jacques Le Roux for reporting this issue
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761421 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8292)
This is a no functional change except for the flatgrey and blueligth themes where svn and git info are added
Working on OFBIZ-8250 and after Deepak at OFBIZ-7942 (too bad I missed that :/) I found that the ignore_missing option of the <#include Freemarker directive does not work. I reported to the Freemarker incubating project.
Hopefully this will be fixed. It will then remove the need of creating empty files for the svn and git info footers when building.
In the meantime this provides the change in the themes footers.
I have also added the svn and git info to the flatgrey footer. The result is barely legible there but is also used (include) by the bluelight theme where it's OK
I have also formatted the related div where it was barely legible (too large)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761392 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8250)
The two files are not generated as empty files when building which results in an FTL stacktrace in the footer of the backend applications.
This had been somehow reported at OFBIZ-7942 which I closed not understanding completely the problem
Thanks: Michael, Taher for fixing this issue and Wai for reporting OFBIZ-7942
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761385 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8121)
The changes were not necessary because the button titles are automatically pulled from FormFieldTitle_updateButton.
Thanks: Nicolas Malin for spotting and reporting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761335 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8121)
I've slightly modified the patch to only change the button titles.
Thanks: Pierre Smits for reporting and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761332 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7135)
As a supplement to correct the uri call problem, I review the roleTypeId drop-down to list only role without parentTypeId on the main role screen
Thanks: Florian Montalbano this correction.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761323 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7117)
Review the entity condition order to optimize sql search
Optimize java import
update code format
Thanks : Florian Montalbano to propose the order optimisation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761314 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8265)
Reverts r1761305, after testing more I found you can no longer submit an order. I have an idea of the problem but I prefer to revert all for now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761308 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8265)
The layout of screen "order status" of application "ecommerce" is busted .
I save the html of the screen into my local file, and It works fine.
I don't know the reason exactly, but the patch attached by me works correctly.
jleroux: after a quick check it seems this does not introduce regression
Thanks: fumiyoshi.to
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761305 13f79535-47bb-0310-9956-ffa450edef68
new ControlFilter, from the ContextFilter; modified existing applications to use
the two filters in a chain; removed from the other specialized filters all the
logic that was duplicated or extended from ContextFilter.
A web application, in order to leverage the OFBiz framework, requires that a
series of objects are in its contexts (servlet context, session and request)
such as "delegator", "delegatorName", "dispatcher", "security" etc. etc...
This setup is performed by the logic contained in the servlet filter implemented
by the ContextFilter class.
The execution of this logic is required for the application to run properly.
However, before this commit, in the ContextFilter there was other logic, related
to access control and redirection rules (some of them performed in coordination
with the ControlServlet), making it difficult to deploy this filter in all the
web applications, especially the ones that implement special handling of paths.
In fact, this filter was deployed in most but not all the web application in the
OFBiz codebase: specifically it was not deployed in web applications that
require the execution of other filters (e.g. CatalogUrlFilter, etc...) like the
ones in the "ecommerce" and "solr" components.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761304 13f79535-47bb-0310-9956-ffa450edef68
Now that all local jars are removed from OFBiz, there is no need to either
keep the "lib" directory in components or to automatically load these libs
if they exist. If users want to add custom libraries, then can place them
directly in the top level directory "lib".
Hence this commit removes the remaining lib directories in the accounting,
example and ldap components and fixes build.gradle to not iterate the lib
directories in components for loading jars inside of them.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761302 13f79535-47bb-0310-9956-ffa450edef68
component.
This web application was created to provide an example of how to leverage the
mechanism to extend another web application: since then the mechanism has been
adopted by most of the other OFBiz applications, making this example no more
useful.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761301 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7117)
Use a dynamic target resolution on form LookupPerson and LookupPartyGroup that call by different LookupScreen so different URI.
With a static target, we loosed the preparation on dedicate parameter search realize by the dedicate LookupScreen like LookupAccount or LookupLead
Thanks : Florian Montalbano to spot and explain on detail the problem.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761257 13f79535-47bb-0310-9956-ffa450edef68
"lucene" component to make it consistent with similar search forms in the other
applications
Thanks: Renuka Srishti for the report and the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761236 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7758)
I am running on trunk rev 1751489 on tomahawk theme.
In the browser, right-click and view the page source.
There is duplicate linking of jquery.jgrowl.min.css i.e.
<link rel="stylesheet" href="/images/jquery/plugins/jquery-jgrowl/1.4.1/jquery.jgrowl.min.css" type="text/css"/>
The solution is to remove a hack for JPublish in fex Java classes
and related changes (mostly "page." in ftl and xml files)
Thanks: Rohit Koushal for the path and James Yong the report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761235 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7959)
When duplicate a workEffort, if a status is given, initialize on this or check the first status sequence on the same statusType from the duplicate workEffort
Convert the ftl form EditWorkEffortDupForm to sreen engine form EditWorkEffortDuplicate
Thanks : Montalbano Florian for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761233 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8167) (OFBIZ-8168) (OFBIZ-8169) (OFBIZ-8170) (OFBIZ-8171) (OFBIZ-8208)(OFBIZ-8246)(OFBIZ-8247)(OFBIZ-8259)(OFBIZ-8269)
Thanks: Amit Gadaley for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761231 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8280)
Added missing paginate-target for PaymentGatewayConfigForms - ListPaymentGatewayConfig and ListPaymentGatewayConfigTypes.
Thanks: Chandan Khandelwal for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761204 13f79535-47bb-0310-9956-ffa450edef68
This new feature allow to bill task time entries from several projects into one unique Invoice.
Thanks Florian Montalbano for your contribution, i did apply some light improvments in your patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761202 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7931)
Removed inline js for toggleAll, checkToggle and selectAll calling from ftls in Ecommerce and Ebay component. Add class="selectAll" on parent checkbox element for select all functionality.
Thanks: Amardeep Singh Jhajj for reporting and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761195 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7650) (OFBIZ-7651) (OFBIZ-7653) (OFBIZ-7660) (OFBIZ-7662) (OFBIZ-7665) (OFBIZ-7666) (OFBIZ-8028)(OFBIZ-8029) (OFBIZ-8255)
Thanks: Anuj Jain and Ratnesh for the pathes and Swapnil Shah for reporting the issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761192 13f79535-47bb-0310-9956-ffa450edef68