Commit Graph
3703 Commits
Author SHA1 Message Date
Nicolas Malin dc0ad950db Make layered-window available in forms and menu (OFBIZ-6327), adding example to use on example form and widget example and set new properties to define defaut layered windows size. Thanks Jacques Leroux for the submission
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1706909 13f79535-47bb-0310-9956-ffa450edef68
2015-10-05 19:56:28 +00:00
Arun Patidar 7d1bf43b79 [OFBIZ-6171] Replacing 'Open for Business' references with 'Apache OFBiz'from remaining occurences.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1706593 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 14:31:12 +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
Jacques Le Roux 33bfc71dfc Fixes a typo introduced with r1705329
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705532 13f79535-47bb-0310-9956-ffa450edef68
2015-09-27 12:22:51 +00:00
Jacques Le Roux e41af16e1a Still missed those ones in groovy after r1705329
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705427 13f79535-47bb-0310-9956-ffa450edef68
2015-09-26 12:03:26 +00:00
Jacques Le Roux 69766d44fd I spotted some misses in FTL templates after r1705329, this fixes them
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705417 13f79535-47bb-0310-9956-ffa450edef68
2015-09-26 11:52:31 +00:00
Jacques Le Roux e8862d0063 I just spotted cases like
categoryContentWrapper.DESCRIPTION; 
before committing r1705405. This fixes them

Thanks also for Deepak's report about it, it was obvious when you loaded the ecommerce apps


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705412 13f79535-47bb-0310-9956-ffa450edef68
2015-09-26 11:20:18 +00:00
Jacques Le Roux 480b42d2e9 I missed some cases, if ever you spot some others or typos please let me know
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705405 13f79535-47bb-0310-9956-ffa450edef68
2015-09-26 10:24:02 +00:00
Jacques Le Roux 596359c680 I found a possible XSS attack through ProductContentWrapper.java.getProductContentAsText() which is notably used in several FTL files. This exists also in others *ContentWrapper.java.
Note that in supported releases it's hard to exploit, it's a Stored XSS https://www.owasp.org/index.php/Types_of_Cross-Site_Scripting which means you need 1st to somehow inject exploiting code in the DB.

This fixes it by changing the ContentWrapper interface
from
    public interface ContentWrapper {
        public StringUtil.StringWrapper get(String contentTypeId);
    }
to
    public interface ContentWrapper {
        public StringUtil.StringWrapper get(String contentTypeId, String encoderType) {
    }

And changing the Category, Party, Product, ProductPromo and WorkEffort ContentWrapperS accordingly. This means to use 2 types of encoderTypes: "html" and "url".
The "html"  encoderType will be used for all ProductContentTypes but those who contain URL in their ContentTypeIdS (actually end with, "_URL") which will use "url" encoderType.
It concerns not only the get() method but also methods like getPartyContentAsText(), getProductContentAsText(), etc.

It seems a big change but it's straightforward. It's normally complete. 

There are some (unrelated) tabs replaced by spaces here and there, and few trailing spaces removed but nothing big

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705329 13f79535-47bb-0310-9956-ffa450edef68
2015-09-25 16:27:12 +00:00
Jacques Le Roux a15748fbc9 No functional change, while reviewing new OFBIZ-293 proposition I stumbled upon this. The value="null" is here unnecessary and confusing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705136 13f79535-47bb-0310-9956-ffa450edef68
2015-09-24 20:28:21 +00:00
Jacques Le Roux 8bfa151997 No functional changes for https://issues.apache.org/jira/browse/OFBIZ-6651
Removes unused methods (not in Java code, FTL templates and Groovy scripts) in GenericValue and EntityUtil classes + misc related comments or logs
Adds log warning to spot possible use cases in templates and scripts of getRelated() and getRelatedOne() methods

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1704769 13f79535-47bb-0310-9956-ffa450edef68
2015-09-23 08:03:45 +00:00
Jacques Le Roux 513c11fbaa Err goofy, I forgot to save (related with OFBIZ-6598) after reverting pending changes I did to test OFBIZ-6111 locally
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1704228 13f79535-47bb-0310-9956-ffa450edef68
2015-09-21 08:00:45 +00:00
Jacques Le Roux a237f624fd A patch from Pierre Smits for "Replace bsf event type and handler with groovy" https://issues.apache.org/jira/browse/OFBIZ-6598
jleroux: I did the same in order controller (was only in ecommerce) even if only a commented out example was used there

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1704227 13f79535-47bb-0310-9956-ffa450edef68
2015-09-21 07:54:13 +00:00
Arun Patidar 54ee4bfb56 [OFBIZ-5970] Removed unused form as discussed on ticket. Thanks Pierre for reporting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1703987 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 11:30:53 +00:00
Jacques Le Roux f0df466ffa No functional changes, removes an useless assignation found by chance an fixes indentation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1702420 13f79535-47bb-0310-9956-ffa450edef68
2015-09-11 10:35:53 +00:00
Jacques Le Roux 2f776e833d A patch from Pierre Smits for "Move PartyRelationshipAndPartyDetail entity to Party component" https://issues.apache.org/jira/browse/OFBIZ-5814
jleroux: actually it does a bit more than moving. It also adds 
        <member-entity entity-alias="PTYRELTP" entity-name="PartyRelationshipType"/>
and
        <alias entity-alias="PTYRELTP" name="relParentTypeId" field="parentTypeId"/>
+
        <view-link entity-alias="PTYREL" rel-entity-alias="PTYRELTP" rel-optional="true">
          <key-map field-name="partyRelationshipTypeId"/>
        </view-link>




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1702168 13f79535-47bb-0310-9956-ffa450edef68
2015-09-10 05:58:53 +00:00
Jacques Le Roux 62092bd60d A slightly modified patch from Pierre Smits for "Remove unused view-maps from SCRUM controller" https://issues.apache.org/jira/browse/OFBIZ-6478
jleroux: only EditSprintItem was still concerned





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1702005 13f79535-47bb-0310-9956-ffa450edef68
2015-09-09 13:38:04 +00:00
Jacques Le Roux bf00988d6c A slightly modified patch from Pierre Smits for "Scrum productstatistics shows errors" https://issues.apache.org/jira/browse/OFBIZ-4863
Those were only rptdesign issues

jleroux: I put back the removed license headers



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1702002 13f79535-47bb-0310-9956-ffa450edef68
2015-09-09 13:26:58 +00:00
Jacques Le Roux 682c4fc146 A slightly modified patch from Pierre Smits for "view sprint overview has errors" https://issues.apache.org/jira/browse/OFBIZ-4861
When viewing the sprint overview page errors are shown related to burndown chart and the sprint backlog list

Regarding the burndown chart:

The following items have errors:

Chart (id = 113):
+ A BIRT exception occurred. See next exception for more information.
Invalid javascript expression: row["sprintDay"] (Element ID:113) 

Regarding the sprint backlog list

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Error evaluating BeanShell use-when condition [showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS"] on the field custRequestId of form sprintBacklogListItems: Sourced file: inline evaluation of: ``showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS";'' : illegal use of null value or 'null' literal : at Line: 1 : in file: inline evaluation of: ``showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS";'' : ;
(Error evaluating BeanShell use-when condition [showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS"] on the field custRequestId of form sprintBacklogListItems: Sourced file: inline evaluation of: ``showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS";'' : illegal use of null value or 'null' literal : at Line: 1 : in file: inline evaluation of: ``showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS";'' : ;
)

jleroux: I did not see the sprint backlog list error. I put back the removed license header



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1701936 13f79535-47bb-0310-9956-ffa450edef68
2015-09-09 07:52:41 +00:00
Jacques Le Roux 1d84f5103a A completed patch from Oleg Andreyev for "Using official content type for json requests" https://issues.apache.org/jira/browse/OFBIZ-6608
I suggest using application/json instead of application/x-json as it is official content type. It seems x-json does not cause any problem for the time being but browsers will load json responses correctly without asking for download. It's handy in development time. It also matches JQuery Accept header.

jleroux: I also used it in Solr




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1701915 13f79535-47bb-0310-9956-ffa450edef68
2015-09-09 07:16:18 +00:00
Jacques Le Roux 3cfe3804fa A patch from Pierre Smits for "Scrum total billing cause exception" https://issues.apache.org/jira/browse/OFBIZ-6600
"import java.sql.Timestamp;" was missing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1701819 13f79535-47bb-0310-9956-ffa450edef68
2015-09-08 15:14:47 +00:00
Jacques Le Roux 5cd3a7c560 No functional changes, fixes typos
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1701498 13f79535-47bb-0310-9956-ffa450edef68
2015-09-06 16:17:11 +00:00
Shi Jinghai ce8b78b3b7 OFBIZ-5042 Apache Solr Implementation.
Add permission check on /update, /update/json, /update/csv and /update/extract requests. These requests are defined in an index's solrconfig.xml.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1701495 13f79535-47bb-0310-9956-ffa450edef68
2015-09-06 15:46:45 +00:00
Shi Jinghai 732546c8c8 OFBIZ-6601 example component causes exceptions
1. Add specialpurpose/webapp/exampleext/error/error.jsp to display error page.
2. Move specialpurpose/example/widget/exampleext to specialpurpose/exampleext/widget/example.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1701441 13f79535-47bb-0310-9956-ffa450edef68
2015-09-06 04:34:16 +00:00
Shi Jinghai 0cff713fd8 OFBIZ-6596 The Solr redirection does not work in trunk demo.
Removed https scheme check and demo-trunk-ofbiz.apache.org/solr/ can be displayed correctly now.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1701379 13f79535-47bb-0310-9956-ffa450edef68
2015-09-05 12:29:04 +00:00
Shi Jinghai 0889e9138d OFBIZ-6596 The Solr redirection does not work in trunk demo.
Commented out https scheme check. Let see whether it would work.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1700960 13f79535-47bb-0310-9956-ffa450edef68
2015-09-03 09:07:24 +00:00
Shi Jinghai 65316f0723 OFBIZ-6596 The Solr redirection does not work in trunk demo.
1. Use response.sendRedirect to forward url to login page instead of the response.setHeader("location", url), this avoids the warning messages from EntityUtilProperties. Besides, when testing in similar config as demo-ofbiz-trunk is (port 80 -> 8080, port 443 -> 8443), this change can keep the url to 80 or 443.

2. Replace tabs to spaces in several java files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1700739 13f79535-47bb-0310-9956-ffa450edef68
2015-09-02 09:09:45 +00:00
Shi Jinghai e5caafad06 OFBIZ-5042 Apache Solr Implementation.
Add apache solr to secondary top menu and /solr/control/main request to accept the link from the menu.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1700599 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 15:37:20 +00:00
Jacques Le Roux 482ba64019 A patch from Pierre Smits for "Have hard coded links in admin screen open in new windows" https://issues.apache.org/jira/browse/OFBIZ-6593
Currently the various hard coded links at the bottom of the admin screen open in the same window. These should open in a new window to provide a better UX.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1700555 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 14:05:04 +00:00
Shi Jinghai a171663d17 OFBIZ-5042 Apache Solr Implementation.
Add all the jars under specialpurpose/solr/ into LICENSE.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1700461 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 09:52:30 +00:00
Shi Jinghai a11bc344c1 OFBIZ-6591 ofbiz does not compile
Replaces tabs with spaces.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1700448 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 09:38:15 +00:00
Shi Jinghai 1ab2da9084 OFBIZ-6591 ofbiz does not compile
The reason behind is lack of jars in applications/content/build/lib and specialpurpose/lucene/lib.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1700446 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 09:34:22 +00:00
Shi Jinghai c8967922ce OFBIZ-5042 Apache Solr Implementation.
1. Put the patch into trunk.
2. Added access control to solr /admin/ pages.
3. Upgraded solr to 4.9.0 to match Lucene version in trunk.
4. Removed solr.solr.home, used 
SolrResourceLoader loader = new SolrResourceLoader("specialpurpose/solr/conf");
instead.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1700119 13f79535-47bb-0310-9956-ffa450edef68
2015-08-30 13:27:07 +00:00
Deepak Dixit 9149040ac3 (OFBIZ-6362) Added missing code in header.ftl file to include component specific js file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1697574 13f79535-47bb-0310-9956-ffa450edef68
2015-08-25 06:40:54 +00:00
Jacques Le Roux 498c0e8500 A patch from Pierre Smits for "Incorporate the readme for the Lucene component" https://issues.apache.org/jira/browse/OFBIZ-6577
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1697166 13f79535-47bb-0310-9956-ffa450edef68
2015-08-23 11:29:51 +00:00
Shi Jinghai b6ef7e427d OFBIZ-4154 Use ZXing to generate QR 2d barcode.
1. Add zxing-core-3.2.0.jar to framework/base/lib and .classpath.
2. Add services_qrcode.xml and QRCodeService.java in framework/common/.
3. Add qrcode request in common-controller.xml and QRCodeEvents.java under framework/common/.
4. Add qrcode.properties and QRCodeUiLabels.xml under framework/common/.
5. Add a barcode example page in specialpurpose/example, entry is on page: /example/control/EditExample?exampleId=EX01, the example can be seen on page: /example/control/ExampleReportPdfBarcode?exampleId=EX01

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1696921 13f79535-47bb-0310-9956-ffa450edef68
2015-08-21 10:03:11 +00:00
Shi Jinghai 63e589b26d OFBIZ-6570 Anonymous unsubscribe from contact list generates an error.
Add value="main" to "error" responses related to unsubscribe.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1696018 13f79535-47bb-0310-9956-ffa450edef68
2015-08-15 07:00:24 +00:00
Jacques Le Roux 5cb25a4181 After r1695126, I found that most of the Java files have svn:eol-style=native. So only 116 Java files were missing svn:eol-style=native. I guess those have been added by committers who are not using the OFBiz svn config file on their machines. So rather than removing svn:eol-style=native, this commits add the property to the files which miss it. Here 116+89=205 files have their svn:eol-style property changed to native.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1695129 13f79535-47bb-0310-9956-ffa450edef68
2015-08-10 16:33:23 +00:00
Jacques Le Roux 8b146761e0 Reverts r1044202. No functional change.
This reverts svn:eol-style=native on Java files which were forced by r1044202n, 89 Java files are concerned. This commit hopefully makes things more consistent. 
It's indeed hard to see the impact of this change before it's committed. I'll check once done, I already found 116 Java files w/o svn:eol-style=native but there are 1231 Java files at all, so not sure how most are set...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1695126 13f79535-47bb-0310-9956-ffa450edef68
2015-08-10 16:15:37 +00:00
Shi Jinghai c93b665a7e OFBIZ-6504 - Create password protected PDF in OFBiz
1. Changed to use FOP 2.0 native encryption, jars are updated.

2. Now the Embeded options are request parameters supported in ScreenFopViewHandler.java, the options are:
http://xmlgraphics.apache.org/fop/2.0/pdfencryption.html#embedded
the default values of the options can be configured in framework/webapp/config/fop.properties.

3. The demo page is https://localhost:8443/example/control/ExampleReportPdfOptions?exampleId=EX01

4. Barcode is tested.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1691852 13f79535-47bb-0310-9956-ffa450edef68
2015-07-19 20:41:32 +00:00
Shi Jinghai 8f446273d6 OFBIZ-6504 - Create password protected PDF in OFBiz
Closed the PDF document.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1690531 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 20:51:17 +00:00
Shi Jinghai 67e970d4d7 OFBIZ-6504 - Create password protected PDF in OFBiz
1. Fixed two typos.

2. Replaced many tabs with 4 spaces.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1690528 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 20:44:47 +00:00
Shi Jinghai 75bcea9b8b OFBIZ-6504 - Create PDF with password Protected in OFBiz
Add an example to protect a pdf generated by FOP with owner password and user password.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1690515 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 19:46:54 +00:00
Shi Jinghai 0995108dfc OFBIZ-6553 - ant load-extseed cause exception
1. I changed passport enditymodel.xml to remove the 3 warnings on ThirdPartyLogin during OFBiz start.
2. Remove classpath of lib/* from ofbiz-component.xml as the path doesn't exist in the component.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1689990 13f79535-47bb-0310-9956-ffa450edef68
2015-07-09 05:52:01 +00:00
Shi Jinghai d491b85d04 OFBIZ-6548. Change OAuth2GitHubSeedData.xml and OAuth2LinkedInSeedData.xml from seed to demo as the productStoreId 9000 is in a demo data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1689781 13f79535-47bb-0310-9956-ffa450edef68
2015-07-08 02:31:59 +00:00
Jacques Le Roux 25ec69fd18 Removes duplicated label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1689598 13f79535-47bb-0310-9956-ffa450edef68
2015-07-07 08:31:43 +00:00
Shi Jinghai 62767278d0 OFBIZ-6135 - Passport Component for OAuth2
1. Commented out the passport files include in ecomseo.
2. Add quick start steps in README.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1689400 13f79535-47bb-0310-9956-ffa450edef68
2015-07-06 13:51:44 +00:00
Shi Jinghai 4fad1376e8 OFBIZ-6135 - Passport Component for OAuth2
Added /passport/build to svn:ignore.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1688507 13f79535-47bb-0310-9956-ffa450edef68
2015-06-30 18:50:40 +00:00
Shi Jinghai f2ff13fb59 OFBIZ-6135 - Passport Component for OAuth2
The oauth2 login icons will appear in /ecomseo/checkLogin page if the seed data files are properly configured and imported into database.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1688503 13f79535-47bb-0310-9956-ffa450edef68
2015-06-30 18:38:16 +00:00
Pranay Pandey 8c58b8ab65 Updating agreementTermId (<10000) for AgreementTerm in demo data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1687448 13f79535-47bb-0310-9956-ffa450edef68
2015-06-25 08:52:21 +00:00