Nicolas Malin
7816745013
correct ClassCastException: java.lang.Integer cannot be cast to java.lang.Long reported by Deepak Dixit. Problem raise through http://demo-trunk-ofbiz.apache.org/content/control/stream?contentId= where content is associate to ElectronicText data resource
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628167 13f79535-47bb-0310-9956-ffa450edef68
2014-09-29 12:14:25 +00:00
Anil Patel
cdd256649b
[OFBIZ-3719] removing Debug statements I added, Sorry :)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628020 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 22:45:08 +00:00
Anil Patel
1ea2d0a765
[OFBIZ-3719] Reverting DOCTYPE hardcoding from cmsevents. Giving control back to the template.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628014 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 22:37:46 +00:00
Jacopo Cappellato
75fe5a9107
Removed the old UtilJ2eeCompat util class that was probably created for compatibility with some old application servers.
...
UtilJ2eeCompat was used to figure out, by checking the servlet container implementation, if the response should be sent using a Writer or a OutputStream; a Writer was used for Tomcat, Websphere, Jetty, Orion, Jrun, Tradecity and an OutputStream was used for all the other servlet containers.
However accordingly to the Servlet api:
ServletResponse.getWriter():
Returns a PrintWriter object that can send character text to the client.
ServletResponse.getOutputStream():
Returns a ServletOutputStream suitable for writing binary data in the response.
Based on this getWriter() should always be used (for html pages) in all the containers, not just Tomcat, Websphere, Jetty, Orion, Jrun, Tradecity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622976 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 06:32:25 +00:00
Jacopo Cappellato
1830aee2c7
Removed old code for JPublish
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622010 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 14:18:17 +00:00
Jacopo Cappellato
2a6a8e7347
Misc cleanups to the SimpleContentViewHandler class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621950 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 09:30:23 +00:00
Anil Patel
db58c60d0c
[OFBIZ-5456] Reading Logo SystemProperty from database. Tested for working in Multi tenant deployment.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618395 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 18:32:50 +00:00
Jacopo Cappellato
7d8d938a3b
Performance optimization for UtilHttp.getFullRequestUrl method: instead of returning a StringBuffer object (synchronized) it now returns a String (immutable); internally it uses a StringBuilder (lighter because not synchronized) within a private context.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1570810 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 08:32:28 +00:00
Jacques Le Roux
576a213948
No functional changes, code improvements
...
Fixes some dead code entries
Automatically adds some override annotations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550429 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 14:53:38 +00:00
Scott Gray
96eaab5b73
Remove null check (always yields false)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1540552 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 21:12:51 +00:00
Adrian Crum
af23fe0b35
Refactored ConfigXMLReader.java - added exception handling. The class swallowed exceptions like controller.xml file is missing or invalid - making debugging difficult. This commit introduces a WebAppConfigurationException and it propagates that exception farther up the stack.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1534517 13f79535-47bb-0310-9956-ffa450edef68
2013-10-22 06:50:05 +00:00
Jacopo Cappellato
6071e8d8e0
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@1518925 13f79535-47bb-0310-9956-ffa450edef68
2013-08-30 09:45:33 +00:00
Jacopo Cappellato
96dfb91fbb
Removed unused import statement.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518219 13f79535-47bb-0310-9956-ffa450edef68
2013-08-28 14:36:13 +00:00
Jacopo Cappellato
a0db8942b1
Removed some old unused methods and fields.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518098 13f79535-47bb-0310-9956-ffa450edef68
2013-08-28 08:21:26 +00:00
Jacopo Cappellato
ef1bf9c42c
Removed a really old and never used class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1517848 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 15:28:31 +00:00
Jacopo Cappellato
a89aaac7b5
No functional changes: removed a really old and commented out code block and expanded the wildcard notation for package inclusion for Lucene classes to better document the external classes being used in this class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1517846 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 15:26:21 +00:00
Jacopo Cappellato
0c2e79f4bd
Removed some old/useless commented out debug statements.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1517845 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 15:22:45 +00:00
Jacques Le Roux
1956e731a3
No functional changes, only formatting.
...
While looking for other cases like r1459222 and r1509164 introduced by r1300812 and r1305309. I noticed there were a lot of wrong for loops formatting (miss a white space after for), this changes it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1511742 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 12:28:01 +00:00
Jacques Le Roux
c85d363452
A patch from Leon for "make genericContentPermission service (called from within DataEvents.serveObjectData) locale enabled" https://issues.apache.org/jira/browse/OFBIZ-5260
...
Passes "locale" parameter when calling "genericContentPermission" service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1502182 13f79535-47bb-0310-9956-ffa450edef68
2013-07-11 10:35:44 +00:00
Jacopo Cappellato
400d48ab4c
OFBIZ-5167 Applied patch from Leon to fix a wrong array index that was causing the proliferation of subfolders in the runtime/uploads directory.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1463989 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 12:59:10 +00:00
Scott Gray
04df9cb162
Add a bunch of missing Override annotations
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418651 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:06:40 +00:00
Scott Gray
5df3e3f70b
Remove a bunch of unused imports, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418646 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:03:52 +00:00
Erwan de Ferrieres
97d5a93b23
Upgrading to latest stable Apache lucene version
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1405428 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 21:50:23 +00:00
Scott Gray
a2a2857bef
Replace more misc. webSiteId retrievals with calls to WebSiteWorker.getWebSiteId(request). Deprecated CatalogWorker.getWebSiteId(request) and CatalogWorker.getWebSite(request).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1400626 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 11:27:10 +00:00
Scott Gray
47abb49013
Replaced direct access to webSiteId from the servlet context attributes with calls to WebSiteWorker.getWebSiteId(request)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1400601 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 08:53:04 +00:00
Adrian Crum
8f23ccfa30
Fixed NPE in Content component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1400421 13f79535-47bb-0310-9956-ffa450edef68
2012-10-20 11:34:26 +00:00
Erwan de Ferrieres
0e1d563143
Upgrading to lucene 3.6.1
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1380896 13f79535-47bb-0310-9956-ffa450edef68
2012-09-04 21:26:41 +00:00
Jacques Le Roux
1e64fe94c7
A slightly modified patch from Nicolas Malin "change serviceName by customMethod on Content " https://issues.apache.org/jira/browse/OFBIZ-5020
...
When you used a content as template, the content.serviceName value used to call the context populate service before rendering.
I propose to replace serviceName field by customMethodId and use customMethod pattern for more flexibility.
serviceName field is kept for backward compatibility
Thanks to Scott and Adrian for support
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1379937 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 09:46:20 +00:00
Jacques Le Roux
7738f5a45c
Revert r1379389 it was incomplete and need more work, see https://issues.apache.org/jira/browse/OFBIZ-5020#comment-13446639
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1379740 13f79535-47bb-0310-9956-ffa450edef68
2012-09-01 10:44:14 +00:00
Jacques Le Roux
fa5824d1af
A patch from Nicolas Malin "change serviceName by customMethod on Content " https://issues.apache.org/jira/browse/OFBIZ-5020
...
When you used a content as template, the content.serviceName value used to call the context populate service before rendering.
I propose to replace serviceName field by customMethodId and use customMethod pattern for more flexibility.
serviceName field is renamed to oldServiceName field for backward compatibility
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1379389 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 09:55:34 +00:00
Jacopo Cappellato
b3c51dfa0f
Misc cleanups (no functional changes) to the Lucene integration:
...
* removed unused imports
* removed unused old methods with duplicated logic
* made some methods private
* improved some debug statements
* formatting adjustments
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1375970 13f79535-47bb-0310-9956-ffa450edef68
2012-08-22 10:16:52 +00:00
Jacopo Cappellato
dfd54dd328
Fixed some inconsistent use of Lucene Version (now the current Version is set as a static final field of SearchWorker); misc minor code cleanups.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374328 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 15:43:30 +00:00
Jacopo Cappellato
dc97189688
Minor code cleanup: removed unnecessary variable declaration.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374283 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 14:24:47 +00:00
Jacopo Cappellato
739defff37
Minor code cleanup: removed empty lines and reused a variable rather than getting it from a GenericValue.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374273 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 14:08:23 +00:00
Jacopo Cappellato
e283d923ab
Added a new special error string returned by the serveObjectData event when the output stream has been already used; this is associated to a no-response because we will not be able to return the error page; this used to cause an error in the logs.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363786 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 14:03:34 +00:00
Jacques Le Roux
c78b9f662c
Moves addMostRecent services to Attic
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1348546 13f79535-47bb-0310-9956-ffa450edef68
2012-06-10 08:04:39 +00:00
Adam Heath
00047e7e37
DEPRECATION: applications: GenericValue.getRelated(ByAnd|OrderBy)(|Cache)
...
replaced by the single getRelated variant.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343528 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:20:58 +00:00
Adam Heath
43efe66c75
DEPRECATION: applications/content: GenericValue.getRelated/getRelatedCache variants replaced with a single getRelated variant that takes a boolean useCache parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343511 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:17:44 +00:00
Adam Heath
a92d79d341
DEPRECATION: applications/content: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343481 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:12:04 +00:00
Adam Heath
b0a3703c6b
DEPRECATION: applications/content: findByAnd variants replaced with findByAnd that takes a boolean useCache parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338406 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 21:00:34 +00:00
Adam Heath
d40ce532e1
DEPRECATION: applications/content: findByPrimaryKey variants replaced
...
with findOne
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337665 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:18:36 +00:00
Adam Heath
a6a2498e51
FORMATTING: Combined split lines, removed a few blank lines, added {}
...
around single-stmt if, reindented a few things, added spaces after
casts.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337319 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 18:02:50 +00:00
Hans Bakker
3416f110b9
improve error messages by replacing null pointer exception with meaningfull message
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326268 13f79535-47bb-0310-9956-ffa450edef68
2012-04-15 07:58:09 +00:00
Scott Gray
05616620b7
CVE-2012-1621: Prevent user submitted data from being streamed directly back to the browser when the content map-key is not found. Log a warning instead.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309993 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 18:24:54 +00:00
Jacques Le Roux
8cfaf4aaf6
A patch from Sebastian Leitner "ContentManagementServices throws NullPointerException" https://issues.apache.org/jira/browse/OFBIZ-4751
...
Fixes a NPE
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1303764 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 12:59:00 +00:00
Erwan de Ferrieres
ceb6b06df1
Changes from while to for each loops in content component
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1301931 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 13:03:31 +00:00
Ashish Vijaywargiya
eb372bb2ba
On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1300463 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 06:07:52 +00:00
Hans Bakker
9de0762a42
make it possible that the applicable system settings in general properties can be overridded by settings in the database.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1240016 13f79535-47bb-0310-9956-ffa450edef68
2012-02-03 07:17:00 +00:00
Erwan de Ferrieres
05c9bae6e5
tabs to spaces, no functional changes - java files
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1230478 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 10:37:35 +00:00
Erwan de Ferrieres
1901c4b266
optimize is deprecated with Lucene 3.5.0, we should now use forceMerge, I forgot this one at rev 1226952
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1227339 13f79535-47bb-0310-9956-ffa450edef68
2012-01-04 21:45:26 +00:00