Commit Graph
1587 Commits
Author SHA1 Message Date
Deepak Dixit b150af15ea Improved: UtilValidate isEmpty and isNotEmpty methods not used correctly
(OFBIZ-8413)

Thanks Pawan Verma for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766868 13f79535-47bb-0310-9956-ffa450edef68
2016-10-27 19:21:41 +00:00
Jacques Le Roux d2aa6aa9ee Fixed: Updating Party Content Image does not work
(OFBIZ-8458) (OFBIZ-8347)

Actually it was a regression introduced by r1765499 for a ticket which did not
exist.

This also fixes OFBIZ-8347 for a typo (UPDATE permission instead of DELETE)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766183 13f79535-47bb-0310-9956-ffa450edef68
2016-10-22 11:19:28 +00:00
Deepak Dixit 5b853bae42 Improved: Converted some CRUD services from simple to entity-auto.
(OFBIZ-8384)(OFBIZ-8388)(OFBIZ-8295)(OFBIZ-8294)(OFBIZ-8389)(OFBIZ-8390)(OFBIZ-8391)(OFBIZ-8392)(OFBIZ-8393)(OFBIZ-8407)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765500 13f79535-47bb-0310-9956-ffa450edef68
2016-10-18 19:33:49 +00:00
Deepak Dixit 510e3b6fdd Improved: Converted some DataResource related CRUD services from simple to entity-auto.
(OFBIZ-8346)(OFBIZ-8347)(OFBIZ-8349)(OFBIZ-8350)(OFBIZ-8351)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765499 13f79535-47bb-0310-9956-ffa450edef68
2016-10-18 19:21:09 +00:00
Deepak Dixit 982d1be463 Improved: Convert ElectronicText entity related CRUD services from simple to entity-auto.
(OFBIZ-8371)(OFBIZ-8372)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765319 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:56:27 +00:00
Deepak Dixit 1a201bd974 Improved: Convert DataResourceTypeAttr entity related CRUD services from simple to entity-auto.
(OFBIZ-8352)(OFBIZ-8353)(OFBIZ-8354)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765317 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:41:26 +00:00
Deepak Dixit 983a0efa1d Improved: Convert CharacterSet entity related CRUD services from simple to entity-auto.
(OFBIZ-8355)(OFBIZ-8356)(OFBIZ-8357)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765315 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:35:40 +00:00
Deepak Dixit fcbe0815f2 Improved: Convert FileExtension entity related CRUD services from simple to entity-auto.
(OFBIZ-8359)(OFBIZ-8360)(OFBIZ-8361)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765314 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:31:02 +00:00
Deepak Dixit fcc47f237a Improved: Convert MetaDataPredicate entity related CRUD services from simple to entity-auto.
(OFBIZ-8362)(OFBIZ-8363)(OFBIZ-8364)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765313 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:24:01 +00:00
Deepak Dixit 023e0d77b0 Improved: Convert MimeTypeHtmlTemplate entity related CRUD services from simple to entity-auto.
(OFBIZ-8368)(OFBIZ-8369)(OFBIZ-8370)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765308 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:17:37 +00:00
Deepak Dixit a0db7bb553 Improved: Convert MimeType entity related CRUD services from simple to entity-auto.
(OFBIZ-8365)(OFBIZ-8366)(OFBIZ-8367)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765305 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 15:10:34 +00:00
Jacques Le Roux a4cd270ca4 Fixed: You cannot edit an image in content
(OFBIZ-7000)

If you get to
content/control/EditLayout?drDataResourceId=NOCONTENTFOUND&contentId=NOCONTENTFOUND
When trying to editing you get an error

Mohammed Rehan Khan explored the issue and found that there is a condition in 
DataResourceWorker method to render content of 'text' mime type only, for others
 it returns exception.

We can fix this by setting up mimeTypeID as null in request param

Question: Why setting up mimeTypeTypeId as 'null' is fixing this issue?
Answer: As we don't have image specific worker method for rendering these type 
of contents, so we are using DataResourceWorker.renderDataResourceAsText() 
to render image type content as well. Due to following condition, 
targetMimeTypeId is setting up as "text/html" if sent null and hence not 
throwing the exception reported in the ticket.

Thanks: Mohammed Rehan Khan for the patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765094 13f79535-47bb-0310-9956-ffa450edef68
2016-10-15 17:12:28 +00:00
Jacques Le Roux 630befc82f No functional change: removes unused ControlApplet.java, found while working on
OFBIZ-8321

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1764253 13f79535-47bb-0310-9956-ffa450edef68
2016-10-11 14:18:36 +00:00
Jacques Le Roux 4dde5f83d8 Fixes: Error : Column 'DATA_CATEGORY_ID' cannot accept a NULL value
(OFBIZ-8282)

Steps to regenerate :
1) Login into webtools component.
2) Run "createDataCategory" service without passing any parameter.
3) Following error message occured : (Column 'DATA_CATEGORY_ID' cannot accept 
a NULL value) PFA attached screenshot.

In this patch I have changed service engine to "entity-auto" and removed 
service implementation.

Thanks: Pawan Verma

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762996 13f79535-47bb-0310-9956-ffa450edef68
2016-10-01 10:12:55 +00:00
Jacques Le Roux d4b63838eb Fixes: Unable to run service findContentParents from webtools
(OFBIZ-8322)

Steps to regenerate
1. Login into webtools application
2. Try to run service findContentParents after passing parameters
3. Cannot find service error occurs.


Thanks: Tanmay Muley for the patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762331 13f79535-47bb-0310-9956-ffa450edef68
2016-09-26 12:23:26 +00:00
Jacopo Cappellato 7370ea5409 Improved: added some missing license headers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762238 13f79535-47bb-0310-9956-ffa450edef68
2016-09-25 21:25:02 +00:00
Jacopo Cappellato b84345831b Improved: cleanups and enhancements in the FreeMarkerWorker class, and client
code using it, that wraps most of the OFBiz integration with FreeMarker.

This is the list of the main modifications:
* simplified and cleaned up the public methods of FreeMarkerWorker, used to 
retrieve and render Freemarker templates and changed client code accordingly to 
use them
* removed unused methods in FreeMarkerWorker and made some others private
* improved the integration code in FreeMarkerWorker to better use the Freemarker 
API and specifically to leverage the various TemplateLoaders and the Freemarker 
caching mechanism; it is now possible to switch the OFBiz legacy template 
caching mechanism to use the Freemarker one instead
* improved the implementation of Freemarker template rendering from strings 
(used by DataResourceWorker): it now leverages the Freemarker's 
StringTemplateLoader that provides the ability to cache the strings, retrieved 
from DataResources records, based on the timestamp of the last modification
* moved freemarkerImports.properties from "widget" to "base" component, and 
changed its content (and the content of the associated templates 
AutoImportTemplate.ftl and HtmlTemplate.ftl) to remove the dependency from base 
to widget&common; some resources of "widget" and "common" are still referenced 
from AutoImportTemplate.ftl (that is in "base") but even if they are soft 
dependencies: if they are missing the system will load properly without any 
error or warning; before this change it was impossible to use, or unit test, 
FreeMarkerWorker before the "widget" and "common" components were loaded by the 
system, now it is possible
* created a new class for unit tests for FreeMarkerWorker, named 
FreeMarkerWorkerTests: at the moment it contains just one simple unit test but 
more should be implemented
* refactored WebToolsServices.entityImport(...) to leverage the 
FreeMarkerWorker.renderTemplate(...) method to run the Freemarker template, 
rather than dealing with the Freemarker API directly; this is now possible 
thanks to the cleanups and improvements done in the FreeMarkerWorker class; this 
same approach should be implemented for a few other similar integration points 
(mostly in the "content" component); this is a TODO item
* moved the encodeDoubleQuotes(...) method from FreeMarkerWorker to 
MacroFormRenderer and made it private since this is the only calss using it and 
its logic is not related to FreeMarker



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762227 13f79535-47bb-0310-9956-ffa450edef68
2016-09-25 17:20:58 +00:00
Jacques Le Roux 71329a85bf Improves: Incorporate readmes for order, commonExt and content components
(OFBIZ-7500) (OFBIZ-7501) (OFBIZ-7505) 

A readme should be the first starting point of each component for developers to 
have references to the placeholder in the Wiki, in Jira and in Svn/Viewvc

jleroux: This will be certainly more helpful with the plugins, even if for now 
plugins are only components

Thanks: Pierre Smits

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761867 13f79535-47bb-0310-9956-ffa450edef68
2016-09-22 08:28:36 +00:00
Jacopo Cappellato 86e630c340 Fix for: Freemarker's ignore_missing attribute of the #include directive was not
working because of an issue in the OFBiz custom TemplateLoader for Freemarker 
templates.
(OFBIZ-8292)

The OFBiz custom TemplateLoader now returns null if the resource is missing as 
required by the TemplateLoader specification.
Additional cleanups for unused methods in the FreeMarkerWorker class and some 
minor fine tuning; improved the way errors are rendered: now the full stack 
trace is not shown in the screen but only in the logs.

Thanks: Jacques Le Roux for the report.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761586 13f79535-47bb-0310-9956-ffa450edef68
2016-09-20 14:51:20 +00:00
Jacopo Cappellato 2facce9042 Improved: a series of cleanup mostly related to no more necessary handling of
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
2016-09-19 12:03:13 +00:00
Jacopo Cappellato 794a4dfbbb 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@1761304 13f79535-47bb-0310-9956-ffa450edef68
2016-09-18 08:08:30 +00:00
Arun Patidar 693a3d3f7b Implemented: Added CRUD services for DocumentType, DocumentTypeAttr and EmplPositionTypeClass entity.
(OFBIZ-8164) (OFBIZ-8165) (OFBIZ-8166)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761199 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 11:35:30 +00:00
Pranay Pandey 236f00469a Improved: Content: Aligned column titles in list forms.
(OFBIZ-8272)

Thanks: Aditi Patidar for reporting and providing the patch.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761197 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 11:13:24 +00:00
Arun Patidar 411fbfb43c Implemented: Added CRUD services for DocumentAttribute, Document and DesiredFeature entity.
(OFBIZ-8161) (OFBIZ-8162) (OFBIZ-8163)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761193 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 11:03:20 +00:00
Divesh Dutta 556279917d Improved:Display from date with default to now timestamp and also add asterisk sign to all the forms where it is part of primary key in all the components.
(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
2016-09-17 11:02:39 +00:00
Divesh Dutta 0a6a9be9c6 Improved:Convert search criteria on status into multi-select pattern for content component.
(OFBIZ-7547)

Added Check for status fields on Find Content and Find Data resource forms. 

Thanks: Mohammad Kathawala for the patch and Swapnil Shah for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761178 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 10:30:00 +00:00
Jacopo Cappellato a21cddf70f Improved: removed unused fields from a series of Java classes.
(OFBIZ-7698)

Thanks: Deepak Nigam for the report and Pradhan Yash Sharma for the patches.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761176 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 10:11:59 +00:00
Pranay Pandey 8d43720935 Implemented: Multisite support in specialpurpose/cmssite
(OFBIZ-7120)

Second patch for providing demo data for multisite feature.

Thanks Mohammed Rehan Khan for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761156 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 08:15:20 +00:00
Pranay Pandey cbc10832b2 Implemented: Multisite support in specialpurpose/cmssite
(OFBIZ-7120)

This is the first patch from the ticket and is for the implementation done to support the multisite feature in specialpurpose/cmssite component.

Thanks Mohammed Rehan Khan for the contribution.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761150 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 08:03:19 +00:00
Arun Patidar d8562e4821 Implemented: Added CRUD services for Deduction, DataTemplateType and CustomMethodType entity.
(OFBIZ-8035) (OFBIZ-8045)(OFBIZ-8046)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761136 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 07:17:36 +00:00
Michael Brohl 6c8a33ff2c Improved: Content: Consistent form name.
(OFBIZ-8046)

Change all form names to upper camel case for consistency.

Thanks: Tanmay Muley for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761079 13f79535-47bb-0310-9956-ffa450edef68
2016-09-16 20:37:43 +00:00
Jacques Le Roux d642114ff7 Fixes: reverts r1760566, unfortunately in this commit I did not see that not only the ToirtoiseSvn was removed but also other pending changes where ticked (I did not, thanks ToirtoiseSvn to make me show silly :/)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1760567 13f79535-47bb-0310-9956-ffa450edef68
2016-09-13 16:07:50 +00:00
Jacques Le Roux 47761c3f62 Completes: (no functionnal change) remove the ToirtoiseSvn template to avoid confusion for other possible users of ToirtoiseSvn. I keep my local change, not a bid deal, to be revisited...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1760566 13f79535-47bb-0310-9956-ffa450edef68
2016-09-13 16:02:31 +00:00
Arun Patidar a41015ae20 Applied patch from jira issue - OFBIZ-8022 - Added CRUD services for CommContentAssocType entity . Thanks Rohit Koushal and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759530 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 01:14:39 +00:00
Jacopo Cappellato 9778235247 OFBIZ-8142 Additional cleanups related to OFBiz servlet filters
* introduced a constant for the "control" mount point
* moved public fields and methods from the ContentUrlFilter to the OfbizContentAltUrlTransforms and made them private (since they are only used by this class)
* no more need for the UrlServletHelper to extend the ContextFilter



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759368 13f79535-47bb-0310-9956-ffa450edef68
2016-09-06 07:09:03 +00:00
Divesh Dutta ee0d3faae8 [OFBIZ-7721] Fixed: auto-completer does not work to search Data Resource Id and owner content id. Thanks Ankush Upadhyay for reporting and fixing the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759333 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 17:05:43 +00:00
Jacopo Cappellato 948dbc646c OFBIZ-8142 A series of cleanups related to OFBiz servlet filters:
* removed an unused filter (UrlRegexpContextFilter)
* moved a series of methods from ContextFilter to WebAppUtil, where they make more sense; changed one of them to be a static method
* made private some methods of ContextFilter and WebAppUtil because they were not used outside of their classes



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759332 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 16:56:04 +00:00
Jacopo Cappellato 4eb7b2bebb Completed the fix for securing the management of blog entries by preventing tags to be added to the content of an entry when it is updated.
[CVE-2016-6800] Apache OFBiz blog stored XSS vulnerability
The default configuration of the OFBiz framework offers a blog
functionality. Different users are able to operate blogs which are
related to specific parties. In the form field for the creation of new
blog articles the user input of the summary field as well as the article
field is not properly sanitized. It is possible to inject arbitrary
JavaScript code in these form fields. This code gets executed from the
browser of every user who is visiting this article.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759218 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 09:16:57 +00:00
Ashish Vijaywargiya 6f013aea3e Applied patch from jira issue - OFBIZ-8070 - Clean up commented out code in Groovy for Content. Thanks Aman for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759151 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 07:32:47 +00:00
Deepak Dixit a6d940fa4d (OFBIZ-7987) Applied patch from jira issue
=====================================
Add UI labels for success / error messages in content component
=====================================
Thanks Tanmay for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759077 13f79535-47bb-0310-9956-ffa450edef68
2016-09-03 11:09:48 +00:00
Jacopo Cappellato f7e3f2a1f4 In rev. 1536324 Jacques Le Roux changed the value of the attribute allow-html from "safe" to "any" and deprecated the usage of the "safe" value.
However the "safe" behavior is necessary to allow these fields to accept tags in a safe way: for this reason that commit should be reverted and a different solution should be implemented.
In the meantime, this commit changes the allow-html values for the blog entries to "none". 

[CVE-2016-6800] Apache OFBiz blog stored XSS vulnerability
The default configuration of the OFBiz framework offers a blog
functionality. Different users are able to operate blogs which are
related to specific parties. In the form field for the creation of new
blog articles the user input of the summary field as well as the article
field is not properly sanitized. It is possible to inject arbitrary
JavaScript code in these form fields. This code gets executed from the
browser of every user who is visiting this article.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759065 13f79535-47bb-0310-9956-ffa450edef68
2016-09-03 09:49:12 +00:00
Jacques Le Roux 38e9885d3d Fixes "a bunch of small leaks (closes missing, reported as warnings in Eclipse)" - https://issues.apache.org/jira/browse/OFBIZ-8115
At r1758927 I tried to fixe a bunch of closes missing, reported as warnings in Eclipse

Jacopo noticed and reported on dev ML http://markmail.org/message/b4hvzi7foftfq3j5 2 possible issues:
1) you are adding a close statement to code that already had the close statement in the "finally" block; your modification actually introduces a code pattern that is not correct (if an exception is thrown your close statement are not executed)
2) I suspect that you are closing the socket connection too early in PcChargeApi

1)The best option when closing resources (which implement AutoCloseable) is actually to use the try-with-resources statement. At least when there are no performance issues.
I have fixed the issue (only in DatabaseUtil.java) this way because
* there are not performance issues, we anyway create a Statement in both cases, we don't reuse one.
* The finally part is cleaner

I have also used the try-with-resources statement in other places where it fitted.

There is only 1 place where I was undecided: ScriptUtil.parseScript() which uses GroovyUtil.parseClass().
I put only a logError() there and returned null. 
I did not throw an IOException because else it spreads everywhere in FlexibleStringExpander.
Here introducing Optional would be better, but I have no time or that today.

2) was not a problem


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758951 13f79535-47bb-0310-9956-ffa450edef68
2016-09-02 13:18:35 +00:00
Jacques Le Roux 8bf34869da Reverts r1758927 to check issues reported by Jacopo on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758935 13f79535-47bb-0310-9956-ffa450edef68
2016-09-02 10:47:30 +00:00
Jacques Le Roux 6636d4ae01 Fixes "a bunch of small leaks (closes missing, reported as warnings in Eclipse)" - https://issues.apache.org/jira/browse/OFBIZ-8115
Fixes a bunch of small leaks (closes missing, only warnings in Eclipse)
By-product: automatically sort few imports

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758927 13f79535-47bb-0310-9956-ffa450edef68
2016-09-02 10:07:31 +00:00
Pranay Pandey 8dd9964d31 [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@1758389 13f79535-47bb-0310-9956-ffa450edef68
2016-08-30 13:37:27 +00:00
Ashish Vijaywargiya 98af5e29e5 Applied patch from jira issue - OFBIZ-7872 - Clean up commented out code in Free Marker Template for Content.
Thanks Aman for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758037 13f79535-47bb-0310-9956-ffa450edef68
2016-08-27 14:02:30 +00:00
Jacques Le Roux 607f817c8a Forgot this one at r1755306 for OFBIZ-7776 because I hesitated removing the README
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1755401 13f79535-47bb-0310-9956-ffa450edef68
2016-08-06 14:11:35 +00:00
Jacques Le Roux ef7996c983 Fixes "Remove warnings regarding missing component lib folders" - https://issues.apache.org/jira/browse/OFBIZ-7776 - by cleaning/clearing the references to non existent/empty dirs.
Notes: 
* Also removes empty framework/base/lib/scripting and useless applications\content\lib\uno\README (miss doc in wiki)
* When jpim-0.1.jar will be (hopefully) replaced we can drop lib ref in framework/base/ofbiz-component.xml
* I wonder if we should let the geronimo component alone with only 2 classes, could we not put that in entity or entityext?
 
    



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1755306 13f79535-47bb-0310-9956-ffa450edef68
2016-08-05 12:27:21 +00:00
Mridul Pathak c9186c1413 [OFBIZ-7901] Remove system generated fields from data files of Content component. Thanks Suraj Khurana for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1755297 13f79535-47bb-0310-9956-ffa450edef68
2016-08-05 11:55:42 +00:00
Mridul Pathak 7aa33615b2 [OFBIZ-7529] Missed this change in r1754644.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754645 13f79535-47bb-0310-9956-ffa450edef68
2016-07-31 09:46:57 +00:00