Commit Graph
25 Commits
Author SHA1 Message Date
Deepak Dixit 15bc40e491 Reverted: Minilang code readability and consistency improvements done at r#1768222, this commit reversed key and description of drop-down in the code.
(OFBIZ-9114)

Thanks  Wei Zhang for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1772880 13f79535-47bb-0310-9956-ffa450edef68
2016-12-06 12:37:42 +00:00
Divesh Dutta a4567c2486 Improvement: Minilang code readability and consistency improvements.
(OFBIZ-8929) (OFBIZ-8930) (OFBIZ-8953) (OFBIZ-8965) (OFBIZ-8972) (OFBIZ-8986) (OFBIZ-8991) 

Thanks: Ankush Upadhyay, Anuj Jain, Abhijeet for your patches. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1768222 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 14:34:00 +00:00
Jacopo Cappellato 96b22285f4 Implemented: removed the "controller" related logic, that is now provided by the
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/specialpurpose@1761304 13f79535-47bb-0310-9956-ffa450edef68
2016-09-18 08:08:30 +00:00
Pranay Pandey e44ba95d72 [OFBIZ-7311] - Applied the patch from the ticket. Removing the unused references of the maincss.css from source code, following is done-
1) Removed 'maincss.css' entry from 'allowedPaths' param of from web.xml
Reason: Since, there is no file like 'maincss.css' exist under any includes directory. 
2) Removed the unused references of maincss.css from FTLs, code
<link rel="stylesheet" href="${StringUtil.wrapString(baseUrl!)}/images/maincss.css" type="text/css"/> 
has been removed.
Reason: This is an interesting thing, these FTLs were using the maincss.css located under the images directory.
When I look the history of these files, following were my findings,
The 'maincss.css' file under the 'images' directory exist in release4.0 
http://svn.apache.org/repos/asf/ofbiz/branches/release4.0/framework/images/webapp/images/
after this release, this files no longer exist there.
3) Also, I have updated one file 'InventoryNoticeEmail.ftl' and used the basic HTML code to style, instead of using style defined in 'maincss.css' which were exist in release-4.0
4) Updated some references from 'maincss.css' to style.css in comments.
5) Also removed the entry of including '/images/maincss.css' and '/images/mainrtl.css' in SimpleDecorator
Since, these files no longer exist after release-4.0.

Thanks Wai for reviewing the work and thanks Swapnil M Mane for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1758389 13f79535-47bb-0310-9956-ffa450edef68
2016-08-30 13:37:27 +00:00
Deepak Dixit 8f3141cd46 (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Jacques Le Roux 4deae05a38 Fixes a "typo" in last commit for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
We used targetNamespace (should only be used in schema) instead of xsi:schemaLocation



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749634 13f79535-47bb-0310-9956-ffa450edef68
2016-06-22 05:58:26 +00:00
Jacques Le Roux a98ac13d9d Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
This is the 2nd step: puts back the original names, so it will be transparent for remaining references in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749489 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:37:47 +00:00
Jacques Le Roux b20816bfa8 Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061 by replacing xsd files references in xml files by -ns.xsd files and removing the concerned xsd files
This is a 1st step, in a 2nd I will put back the original names, so it will be transparent for remaining reference in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1749488 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:14:16 +00:00
Deepak Dixit b498b235f7 (OFBIZ-7241) Relocate .groovy files in the specialpurpose/lucene component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747793 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:54:37 +00:00
Jacques Le Roux 1e3c8068b1 A patch from Nameet Jain for "CMS throws error on clicking Find button" https://issues.apache.org/jira/browse/OFBIZ-7104
Steps to regenerate
1. Open the content app
2.  Click the CMS menu or use the link 
       https://localhost:8443/content/control/CMSContentFind
3. Click on Find submenu or use link
      https://localhost:8443/content/control/AdminSearch

The error is due to missing content index. We can improve the error message to guide user to index the content first. ContentErrorUiLabels.xml

jleroux: I just moved the label to be sorted right and added a French one

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747349 13f79535-47bb-0310-9956-ffa450edef68
2016-06-08 05:10:30 +00:00
Deepak Dixit 5140827b41 (OFBIZ-6839) relocate .ftl files in the specialpurpose/lucene component.
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1740580 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 18:39:49 +00:00
Deepak Dixit 855e607e52 (OFBIZ-6861) Fixed Search.groovy, use correct method for analyzer, QueryParser and TopScoreDocCollector.
Thanks Pierre for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1735759 13f79535-47bb-0310-9956-ffa450edef68
2016-03-19 11:47:06 +00:00
Deepak Dixit 19e9522bd0 (OFBIZ-6860) Applied patch from jira issue.
============================================================
ProductSearch generates an errorr
============================================================
Thanks   Pierre for reporting issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1735753 13f79535-47bb-0310-9956-ffa450edef68
2016-03-19 11:27:49 +00:00
Jacques Le Roux 0a982250e6 Temporary fix for "UtilXml.LocalResolver.resolveEntity] could not find LOCAL DTD/Schema with publicId [null] and the file/resource is [web-app_3_0.xsd]" - https://issues.apache.org/jira/browse/OFBIZ-6807
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/specialpurpose@1726388 13f79535-47bb-0310-9956-ffa450edef68
2016-01-23 11:52:08 +00:00
Deepak Dixit 3ae8efbbb1 (OFBIZ-6655) Applied patch from jira issue OFBIZ-6655.
Add session tracking mode and make cookie secure for some special purposes component.

Thanks Rahul Bhammarker for contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1724930 13f79535-47bb-0310-9956-ffa450edef68
2016-01-16 07:15:09 +00:00
Arun Patidar da04c7ce72 [OFBIZ-6171] Applied patch from Pierre Smits for replacing 'Open for Business' references with 'Apache OFBiz'.Thanks Pierre for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1706589 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 14:15:21 +00:00
Ashish Vijaywargiya 1432b8f43f Applied two patch files from jira issue - OFBIZ-5893 - Use EntityQuery Builder methods in goovy files by replacing Entity Engine methods. Thanks Arun for your recent contribution where you have included changes from specialpurpose and product component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1647937 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 06:54:50 +00:00
Ashish Vijaywargiya c5bbc062b3 Applied the patch OFBIZ-4902_specialpurpose.patch from OFBIZ-4902 - Replace in Freemarker templates the deprecated built-ins: default, exists, if_exists.
Thanks http://ofbiz.us team for providing the patch work. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1618313 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 08:40:28 +00:00
Jacopo Cappellato 926efd2311 Upgraded lucene component to the latest Lucene release 4.7.0
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1572483 13f79535-47bb-0310-9956-ffa450edef68
2014-02-27 09:27:10 +00:00
Jacopo Cappellato f420b5f76e Removed old and useless debug statements
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1540742 13f79535-47bb-0310-9956-ffa450edef68
2013-11-11 14:35:12 +00:00
Jacopo Cappellato ea91e65cc1 Misc cleanups to the old Search.groovy to make it more robust and clean.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1537083 13f79535-47bb-0310-9956-ffa450edef68
2013-10-30 13:37:58 +00:00
Jacopo Cappellato b75d9b2f96 Misc fixes and renamed indexTree service/event/methods to indexContentTree in order to be more descriptive on their role in the system.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1532369 13f79535-47bb-0310-9956-ffa450edef68
2013-10-15 14:55:03 +00:00
Jacopo Cappellato 91ec703446 Refactoring of Lucene product indexing: separated logic that is product specific from indexing logic that is independent from products; in this way it will be easy to index other content or customize the existing one, by implementing new LuceneDocument classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1532241 13f79535-47bb-0310-9956-ffa450edef68
2013-10-15 08:28:08 +00:00
Jacopo Cappellato 68540ad443 Expanded and enhanced the "lucene" specialpurpose component by implementing an initial version of a Product indexer; also implemented a screen to test and analyze Lucene queries on the index.
Many thanks to Scott Gray for the initial version of the indexer and the code to prepare the Product document.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1531499 13f79535-47bb-0310-9956-ffa450edef68
2013-10-12 04:52:17 +00:00
Jacopo Cappellato fb2df9ff51 Extracted from the OFBiz content component the dependencies on Lucene and created a new specialpurpose/lucene component in order to simplify the integration of components based on Lucene/Solr and to simplify the management of conflicts caused by different versions of Solr/Lucene jars.
In this way it will be easier to compare the ootb Lucene integration with custom ones (based on Lucene/Solr/etc...) and to switch between them.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1518925 13f79535-47bb-0310-9956-ffa450edef68
2013-08-30 09:45:33 +00:00