Commit Graph
27 Commits
Author SHA1 Message Date
Ashish Vijaywargiya ed26dd4dc4 Applied patch from jira issue OFBIZ-4946 - Getting error when uploading a file after creating a data resource.
Thanks Ashish Ambulkar for creating the issue. Thanks Arun, Jacques for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646984 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 14:22:50 +00:00
Jacques Le Roux 7adfe90d71 Fixes <<Services allow arbitrary HTML for parameters with allow-html set to "safe">> https://issues.apache.org/jira/browse/OFBIZ-5254
After r751990, <<allow-html="any">> and <<allow-html="safe">> are the same: they do nothing! The only difference is the warning message from the OWASP Antisamy IntrusionDetector, which is both, as Christoph noted "giving you a false sense of security" or as I wrote "disturbing, wrong and useless". So there are no longer any reasons for differencing "safe" and "any".

This
* Deprecates "safe" (making it clear in the XSD documentation), keeping only "none" and "any". This is for backward compatibility, else we could completely remove the misleading "safe". Note that "none" is the default.
* Replaces in services definition all allow-html="safe" by allow-html="any"
* Remove from ModelService.java (near line 587) the code which throws the OWASP Antisamy IntrusionDetector message in log

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536324 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 12:12:43 +00:00
Hans Bakker 07da905859 extend the generation of seo friendly content url's now also to website subcontent
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202142 13f79535-47bb-0310-9956-ffa450edef68
2011-11-15 11:55:54 +00:00
Hans Bakker 432a4f2d18 allow html=safe in comments and descriptions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1198615 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 03:34:52 +00:00
Hans Bakker 167c9804ef create also blog alternative urls connected to a website
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1198611 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 03:27:58 +00:00
Hans Bakker 08c1a63bbd extended the commevent delete service to delete also seo friendly url's connected to the attached content of a comm event
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1158120 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 06:21:04 +00:00
Hans Bakker 53abb5b2ac added an function on the website level: 'SEO' to generate missing seofiendly url's on a catalog, category, product and content level. entities records which have alread a seofriendly alternative url are not touched
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1153034 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 05:56:47 +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
Ashish Vijaywargiya 62a47436c3 Applied patch from jira issue - OFBIZ-3487 - Improvement on CMS component.
1.  Adding sequenceNum field on ContentPurpose entity.
2. Adding ContentAssocAndContentPurpose view entity.
3. Fixed NPE issue on WebSiteCMSContent.ftl file.
4. Created ContentPurposeType data for "LANDING_PAGE_IMAGE".

Thanks Amit & Vivek for the contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911774 13f79535-47bb-0310-9956-ffa450edef68
2010-02-19 10:27:10 +00:00
Ashish Vijaywargiya 4a8e75a7cd Applied patch from jira issue OFBIZ-3244 - New feature to upload multiple Additional View Images at Product Content.
Moving services to correct component | location and renaming services so would be verbose enough to understand its purpose.

Thanks Mridul for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885414 13f79535-47bb-0310-9956-ffa450edef68
2009-11-30 13:23:08 +00:00
Jacques Le Roux f64c440775 A patch from Surya Kusumakar "New feature to upload multiple Additional View Images at Product Content." (https://issues.apache.org/jira/browse/OFBIZ-3244) - OFBIZ-3244
Add a new feature in Product Content to add all four images at a time and one can preview those images in larger view on mouse over of particular image. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883280 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 08:48:43 +00:00
Scott Gray 8ec19d56d8 Fixed incorrect package name, reported by Jeremy Wickersheimer in OFBIZ-3163
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835314 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 09:46:34 +00:00
Adrian Crum 9a753b9865 Fixed a problem where service definitions were using "GenericValue" as attribute types, but that threw exceptions because the service definitions needed the full class name - "org.ofbiz.entity.GenericValue". The problem was reported in https://issues.apache.org/jira/browse/OFBIZ-2268 and https://issues.apache.org/jira/browse/OFBIZ-2311.
I checked the commit logs and I don't see what changed to cause these services to stop working, so I took the shotgun approach and changed all occurrences of GenericValue service attributes.

If anyone has a better solution, please feel free to revert this commit and change it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765864 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 06:33:43 +00:00
Jacques Le Roux 9f176a1fc2 Fix services timeout issueq reported in user ML (only in content component)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762329 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 13:24:59 +00:00
Jacques Le Roux 836f765212 Content component
Following best practice.
Changed location="org/ofbiz/......... to location="component:// in the service location attribute.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755928 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 11:20:52 +00:00
Hans Bakker e46fbe8080 some more updates to mainly the blog functions, but also other problems found on the way, still not finish yet altough the blog post function now works correctly including picture, also did some minilanguage syntax changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@735383 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 03:34:57 +00:00
Alfred Maxwell Byers e02a57ed32 Added dataResouceTypeId to input of attachUploadToDataResource
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@640496 13f79535-47bb-0310-9956-ffa450edef68
2008-03-24 18:25:21 +00:00
Andrew Zeneski 08874971a0 added method to create text content with a optional sub-section of uploaded content (i.e. text with an image/audio/video)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@596510 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 01:35:58 +00:00
Alfred Maxwell Byers 8d5d3eb5d8 I was troubled by the fact that createTextContent did not return the fromDate - making it difficult to get a primary
key for the newly created content.
I made changes so that createContentAssoc would return "fromDate", but that did not help "createContent" because it was an eca
and I did not want to specify a "result-map-name" attribute.
So I modified createContent so that it would accept a fromDate as input, so at least I can know what the fromDate value is by
setting it to nowTimestamp before calling createContent.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571052 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 06:46:10 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Andrew Zeneski aba4c121bb updated CMS to do simple (single) content purpose and updates
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@530530 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 19:54:45 +00:00
Andrew Zeneski c1fb8aced7 updated content permissions to use the purpose associated with the content; not sure why we expected this to be passed in... changed the name of the XML file containing operation data; added default purpose for CMS entry
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@530518 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 19:00:44 +00:00
Andrew Zeneski f07485a4d8 fixed bug in update content (could not update due to non-optional fields) added data resource info to ContentMapFacade
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516252 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 01:21:49 +00:00
Andrew Zeneski c4b0c1be30 fixed optional fields on permission service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@515903 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 02:53:03 +00:00
Andrew Zeneski 4a54cf0b76 now upload services returns the decided mimeTypeId so it is properly reflected on the content record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@513020 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 22:45:39 +00:00
Andrew Zeneski 686eecca87 now have update uploaded content working; updates all necessary entities; added a few text based ecas for text content; handles many different text based data resource types now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@512510 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 00:06:26 +00:00
Andrew Zeneski 05fa91599e more content refactoring; refactored upload content service; now supports other data resource types; now also can determine which type to use based on mimeType (if none is specified); moved some service defs around, this is a work in progress. Moved data resource services from contentservices.xml to dataservices.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@512356 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 18:35:04 +00:00