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
Erwan de Ferrieres
a54992b9ed
upgrade Lucene Core to 3.5.0 -- see changelog at http://lucene.apache.org/java/docs/index.html#27+November+2011+-+Lucene+Core+3.5.0
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1226952 13f79535-47bb-0310-9956-ffa450edef68
2012-01-03 21:22:59 +00:00
Hans Bakker
c31c42d742
implement 404 page tracking in google analytics also for the pages coming from the content component. more info at: http://support.google.com/googleanalytics/bin/answer.py?hl=en&answer=86927
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1221128 13f79535-47bb-0310-9956-ffa450edef68
2011-12-20 07:36:45 +00:00
Jacques Le Roux
75532a3358
A patch from Martin Kreidenweis https://issues.apache.org/jira/browse/OFBIZ-4451
...
Warning in log when using @renderSubContentCache freemarker macro
When using the @renderSubContentCache freemarker macro, warnings like this appear in the log:
[ GenericEntity.java:314:WARN ] The field name (or key) [caContentAssocTypeId] is not valid for entity [ContentDataResourceView], printing IllegalArgumentException instead of throwing it because Map interface specification does not allow throwing that exception.
Patch: GenericValue.get() will actually not throw an exception but instead log a warning if the field doesn't exist, so now we first check if the field we are trying to access exists.
Checking one of the fields through the ModelEntity should be enough, as all three of them come from the same entity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1212147 13f79535-47bb-0310-9956-ffa450edef68
2011-12-08 21:56:02 +00:00
Erwan de Ferrieres
097e8f990d
Forgot to remove an unused import at rev 1202437
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202445 13f79535-47bb-0310-9956-ffa450edef68
2011-11-15 22:19:53 +00:00
Erwan de Ferrieres
81d65d7ced
reorganizing commments so that there are no more one-word lines
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202440 13f79535-47bb-0310-9956-ffa450edef68
2011-11-15 22:02:06 +00:00
Erwan de Ferrieres
38c04736d1
refactoring in Lucene search, using for each instead of while, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202437 13f79535-47bb-0310-9956-ffa450edef68
2011-11-15 21:54:01 +00:00
Hans Bakker
aa3d73675b
also introduce keyword size limit(configurable) in product and move property setting to content component
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1199130 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 07:02:16 +00:00
Hans Bakker
f644018217
create a configurable maxlength keyword for content search keywords
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1198709 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 12:04:16 +00:00
Hans Bakker
d7990380d1
another impovement to the content filter when a url has the '/control/main' shopped of
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1179100 13f79535-47bb-0310-9956-ffa450edef68
2011-10-05 08:32:44 +00:00
Hans Bakker
9dfef06c9e
seo friendly url did not work on blog entries: reported by Ruth on the ofbiz mailing list
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1178317 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 07:37:01 +00:00
Jacques Le Roux
c2f4aa2851
A patch from Martin Kreidenweis "updateContentAndUploadedFile service broken" https://issues.apache.org/jira/browse/OFBIZ-4452
...
The updateContentAndUploadedFile service doesn't work correctly: When the new file is shorter (smaller) than the old file, only part of the file is replaced; it keeps its original size.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1177128 13f79535-47bb-0310-9956-ffa450edef68
2011-09-29 00:34:43 +00:00
Sascha Rodekamp
082526b9de
FIX: Wrong use of toArray() method ( https://issues.apache.org/jira/browse/OFBIZ-4425 ). A patch from Dimitri Unruh which replaces Array Casts with a propper call of the toArray method.
...
String[] temp = (String[]) foo.toArray(); <-- may cause class cast exception it is better to use: String[] temp = foo.toArray(new String[foo.size()])
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173607 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 12:53:35 +00:00
Sascha Rodekamp
46b29a9911
IMPROVEMENT: Replace String concatenation in a loop ( https://issues.apache.org/jira/browse/OFBIZ-4418 ) A patch from Dimitri Unruh.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170961 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 06:04:29 +00:00
Jacques Le Roux
2b712efb98
No functional changes, simple code refactoring around UtilValidate.is(Not)Empty()
...
Changes implementation of UtilValidate.isEmpty() for Collection and Map by using isEmpty() instead of c.size() == 0). It's more clear and as efficient. Removes also useless parentheses there.
Makes use of UtilValidate.is(Not)Empty() everywhere it makes senses. This for 2 reasons:
* Make the code more readable by replacing the (!)null/isEmpty pattern.
* Avoid possible NPEs when only isEmpty() was used (after Entity.find... for instance). I found a lot of cases (242 today) where isEmpty() could perhaps be replaced in Framework. But I guess no NPE checks were missing there and anyway it was too much for me to check them all... So I only did the relevant changes in Applications...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169478 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 17:06:11 +00:00
Hans Bakker
53de1508c4
improve the alternative seo friendly content url: some url's where not recognized
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1153366 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 07:12:29 +00:00
Hans Bakker
e2531c1cfc
improved content friendly urls, fix some errors
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1148144 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 04:04:32 +00:00
Hans Bakker
1749a6989f
Add seo friendly url's for showing content. reorganize the same program snippets with seo friendly url for products. These content url's are demonstrated at the ecommerce frontend in the left bottom corner: Content Information
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141878 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:03:32 +00:00
Scott Gray
89f4d19219
OFBIZ-4323 fix NPE bug reported by Javier Orrantia, screen xml documents rendered retrieved via the DataResourceWorker weren't using the correct UtilXml method that populates the xml documents userData.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139504 13f79535-47bb-0310-9956-ffa450edef68
2011-06-25 08:45:22 +00:00
Hans Bakker
37fac38c97
add a button to content to (re) generate the keywords for all content. The whole keyword implementation was done by Antwebsystems employee Tom
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1130890 13f79535-47bb-0310-9956-ffa450edef68
2011-06-03 03:05:23 +00:00
Hans Bakker
f1700f9540
increase security on content, set the isPublic flag to 'N' if not provided
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1128199 13f79535-47bb-0310-9956-ffa450edef68
2011-05-27 08:49:41 +00:00
Marco Risaliti
30b0800ee2
Removed some javadoc warning into content component
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1126083 13f79535-47bb-0310-9956-ffa450edef68
2011-05-22 16:56:39 +00:00
Marco Risaliti
bb8091446e
Remove some unused import/variable into ContentKeywordIndex
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1125957 13f79535-47bb-0310-9956-ffa450edef68
2011-05-22 13:24:55 +00:00
Marco Risaliti
7465e7233f
Removed some unused import into DataResourceWorker
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1125956 13f79535-47bb-0310-9956-ffa450edef68
2011-05-22 13:23:49 +00:00
Hans Bakker
7a42a2892c
add a keyword search function to the content component
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1102554 13f79535-47bb-0310-9956-ffa450edef68
2011-05-13 03:20:58 +00:00
Erwan de Ferrieres
f077d22e2d
mime-type is now auto detected with Apache Tika when uploading a new file to a profile. I also had to change the mimeTypeId field to vlong, as there are now mimetypes with a length > 60 characters
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081848 13f79535-47bb-0310-9956-ffa450edef68
2011-03-15 16:43:09 +00:00
Marco Risaliti
c3122a1d00
Remove some reduntant cast warning in CompDocServices/LayoutWorker (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081069 13f79535-47bb-0310-9956-ffa450edef68
2011-03-13 10:08:56 +00:00
Marco Risaliti
2a659162c8
Remove some reduntant cast warning in content component (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081066 13f79535-47bb-0310-9956-ffa450edef68
2011-03-13 09:53:29 +00:00
Scott Gray
db7e646b6b
Couple of minor fixes for my commit r1076549. call-class-method parameters default to string if one isn't specified, I wanted a boolean. Also forgot to pass along the absolute parameter in DataResourceWorker.getDataResourceContentUploadPath(boolean).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076585 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 11:11:20 +00:00
Scott Gray
f4bbf18461
Add support for uploading files using dataResourceTypeId OFBIZ_FILE using the attachUploadToDataResource service
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076549 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 07:51:41 +00:00
Marco Risaliti
4af5c23b21
Remove unnecessary warning into ContentPermissionServices
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076333 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 19:11:01 +00:00
Jacques Le Roux
32c0dc6bce
Fix possible NPEs in Content Component reported by Dimitri Valax on dev ML, close https://issues.apache.org/jira/browse/OFBIZ-4198 - OFBIZ-4198
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076115 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 06:34:18 +00:00
David E. Jones
4a2f9866a4
Small change so that file upload form fields are added as request attributes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072490 13f79535-47bb-0310-9956-ffa450edef68
2011-02-20 04:17:56 +00:00
Marco Risaliti
7699c441a6
Internationalization of return messages of java services of content component (OFBIZ-4091)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069136 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 22:00:40 +00:00
Marco Risaliti
816980fe0f
Suppress warning temporary of two methods of ContentServicesComplex/ContentWorker (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065137 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 22:54:43 +00:00
Marco Risaliti
3a747c0042
Remove some java compilation warnings of ContentManagementWorker (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065136 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 22:48:30 +00:00
Marco Risaliti
fcf249f5fd
Suppress warning because getWriter of TemplateTransformModel of Freemarker specify a simple map (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065130 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 22:30:56 +00:00
Marco Risaliti
41ff8ac961
Remove some java compilation warnings of RenderContentAndSubContent/RenderContentAsText/RenderContentTransform/RenderSubContentAsText (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065128 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 22:24:00 +00:00
Marco Risaliti
c439e3d132
Remove some java compilation warnings of RenderSubContentCacheTransform/RenderSubContentTransform(OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065124 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 22:08:50 +00:00
Marco Risaliti
e3d44915a1
Remove some java compilation warnings of TraverseSubContentCacheTransform/ TraverseSubContentTransform(OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065116 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 21:34:25 +00:00
Marco Risaliti
403f03d102
Remove some java compilation warnings of InjectNodeTrailCsvTransform (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065100 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 20:24:22 +00:00
Marco Risaliti
617fb40b10
Remove some java compilation warnings of WrapSubContentCacheTransform (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065017 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 14:10:21 +00:00
Marco Risaliti
5a1bf73d8b
Remove some java compilation warnings of LimitedSubContentCacheTransform (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1064989 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 09:49:20 +00:00