Commit Graph
2630 Commits
Author SHA1 Message Date
Scott Gray fa9a794cc4 CVE-2012-1621: Escape errors returned from ajax calls in the checkout pages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1302218 13f79535-47bb-0310-9956-ffa450edef68
2012-03-18 20:31:10 +00:00
Ashish Vijaywargiya 54bb3ef632 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/specialpurpose@1300463 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 06:07:52 +00:00
Jacques Le Roux 814681d16b A patch from Markus M. May "Typo in CatalogScreens.xml - productCatagories" https://issues.apache.org/jira/browse/OFBIZ-4727
In the CatalogScreens.xml one screen is called productCatagories. Should be spelled productCategories

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1298963 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 18:27:44 +00:00
Jacopo Cappellato 63ee2ab625 Updated all the controller entries for Groovy event to consistently use the same way to define the location for the script file. Now the path and filename are always in the "path" attribute and the "invoke" attribute is reserved for the execution of a method in the file (I am going to add support for this feature in my next commit); if the invoke element is not specified then the whole script is executed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1298904 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 16:17:12 +00:00
Scott Gray 27cf3b43dc Demo data bugfix: productTypeId is a required field of Product and records shouldn't be put into the db without supplying a value for it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1297416 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 10:54:36 +00:00
Hans Bakker 2c3efbdb2d reverting 1295029 on request from jacopo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1297007 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 11:16:35 +00:00
Jacques Le Roux 6ed1929086 A patch from Wai "widget <image> tag to use css for resizing" https://issues.apache.org/jira/browse/OFBIZ-4678
Summary: The purpose of this patch is to address the following:
1. Provide a standardized set of image width and height specs for page layout in ofbiz. This gives ofbiz a uniform look throughout as it applies to image display.
2. Preserve the aspect ratio of the image when using these standardized image sizes.
3. One place to make styling modifications (eg. css file).
4. Decouple styling from code (eg. java,ftl,xml,html,jsp,etc).

Regarding including the real image size, the width/height attributes in <img> specifies the boundary of the image when shown on the page. If you need to specify the real size of the image, the server code would have to perform the determination. Afterwards, you can include the actual dimensions of the image in the title attribute of <img>

Details:
Manually specifying the image width and height does help with preserving the layout of a page regardless of the image size to be shown. The challenge with this method is that the image shown on the page in question may be distorted if the aspect ratio of the image differed from that of the width and height attributes of <img>. This basically forces the person uploading the image to be more vigilant about image aspect ratios.
The purpose is to harmonize on the display size of images with a standardized set of width/height constraints in which an image must fit and preserve the aspect ratio of images.

Currently the source files (eg. ftl, xml) either manually specifies the width or height of a displayed image (ie widget <image> and html <img> tag). The problem with specifying only one constraint is that an image can affect the layout of the page if the user uploads an image where the aspect ratio could be large.

Some ftl and xml files specify both the width and the height. The problem with this is that if the aspect ratio of the image in question does not match that of the width and height of the <img> tag, the image would be displayed distorted.

The solution was to create a standardized set of CSS styles that both configure the displayed image size and preserve the image aspect ratio (eg. thumbnail size, medium size and large size). Of course, the developers can further define or modify the styles to suit their need.

By using CSS, one can change the size of displayed images without having to tamper with the ftl and/or xml files. This helps to reduce potential bugs that come with modifying the ftl and xml files. The existing way of doing things is to go through each ftl or xml file in question and manually modify the width and/or height of the <image> and/or <img> tag.

The question about the "border" around images. If you do not wish to have a border around the image, just remove it from the CSS style. It's that easy No need to change anything else. Ie. configuration to the image is done on the CSS style and not on the <image>, <img> tag.

NB: The current patch does not apply to all displayed images. I have only made appropriate modifications to widget <image> and html <img> tags that have either specified the width and/or height. There are numerous <image> and <img> tags spread all over the project that do not specify dimensions. I would have to modify them as I encountered them when I could see where and how they are displayed on the screen. Note that these images would not be affect by this patch.

jleroux: despite my efforts I was not able to check all screens. But I think it's ok

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1296782 13f79535-47bb-0310-9956-ffa450edef68
2012-03-04 11:54:13 +00:00
Erwan de Ferrieres e64ce203c5 OFBIZ-4686 - Correction on actualCompletionDate calculation for a task (phase or project) in a project - A patch from Olivier Heintz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1296209 13f79535-47bb-0310-9956-ffa450edef68
2012-03-02 13:59:31 +00:00
Erwan de Ferrieres 5171a73203 Wrong parameter name was used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1296081 13f79535-47bb-0310-9956-ffa450edef68
2012-03-02 08:28:02 +00:00
Anil Patel f2ef513d21 Fix login process issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1295720 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 18:20:29 +00:00
Anil Patel 489af7e3e0 Cleaned up facility selection flow. Updated login form layout code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1295411 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 04:25:14 +00:00
Anil Patel 97b1ae7a10 Adding JQuery Mobile library. Also updated hhfacility application to use it. Lot more work needs to be done to make hhfacility application useful, We have a start :)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1295345 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 23:57:18 +00:00
Hans Bakker 7876671992 correct url generation for seo friendly url's
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1295029 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 09:23:36 +00:00
Hans Bakker b0597a399b get default currency from entity and if not available from general.properties
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1294940 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 02:01:29 +00:00
Hans Bakker aad57f0f08 url spelling mistake in project manager causing a wrong url for the systeminfo message
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1294101 13f79535-47bb-0310-9956-ffa450edef68
2012-02-27 10:51:01 +00:00
Erwan de Ferrieres a1c864425c (typo) Bulk replace planed --> planned
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1294096 13f79535-47bb-0310-9956-ffa450edef68
2012-02-27 10:32:13 +00:00
Jacques Le Roux 97da897c16 A patch from Markus M. May "Problem when saving a product to a shopping list" https://issues.apache.org/jira/browse/OFBIZ-4589
Steps to reproduce:

    Go to http://localhost:8080/ecommerce/control/editShoppingList
    Login as flexadmin
    Click "create new"
    Paste "WG-1111" in Quick Add to Shopping List SKU box
    Click "Add to Shopping List"




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1293379 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 18:45:36 +00:00
Jacques Le Roux a93bf68d75 A patch from Uwe Allner "Download link for digital products on order history page contains file name, preventing correct resolve of the request" https://issues.apache.org/jira/browse/OFBIZ-4711
I created a product with product type "Finished/Digital Good", and added product content of type "Digital download", providing a file (i.e. some.pdf).
The download link in the order history of the ecommerce application after purchasing the product is rendered as
"/ecommerce/control/downloadDigitalProduct/some.pdf?dataResourceId=10060".
The file name in this URL prevents resolving the correct service (method), and instead just a "404 Not found" is generated.
The link "/ecommerce/control/downloadDigitalProduct?dataResourceId=10060" works as expected.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1293376 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 18:36:04 +00:00
Hans Bakker 1ca6acc44d remove all component dependent stamements out of commonext and make the systeminfo service more generic and not only serving portlets. Comment by Adrian in the userlist. No conversion program provided because this data is only temporary can can be deleted from a menu
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1292180 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 08:35:59 +00:00
Jacques Le Roux 2a7cdcf757 Closes "Request Content delete operation is not working" https://issues.apache.org/jira/browse/OFBIZ-4707
There were simply no checks on thruDate in screen actions, also true for Project Manager and Scrum components.
Also where we see that we clearly miss a kind of factorization in those screen actions (same block changed 5 times), no time for that tonight...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1291472 13f79535-47bb-0310-9956-ffa450edef68
2012-02-20 21:54:30 +00:00
Adrian Crum 770fd51891 Added missing DOCTYPE declarations in some web.xml files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1243422 13f79535-47bb-0310-9956-ffa450edef68
2012-02-13 07:08:03 +00:00
Erwan de Ferrieres 4f3db5afca OFBIZ-4683 - CommonScreens.xml not referring to proper jquery javascript files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1241880 13f79535-47bb-0310-9956-ffa450edef68
2012-02-08 12:22:06 +00:00
Erwan de Ferrieres e87a109c02 OFBIZ-4679 - use a wrong return field name (from service getProjectTask) to show TaskActualHours - A patch from Olivier Heintz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1241165 13f79535-47bb-0310-9956-ffa450edef68
2012-02-06 20:35:20 +00:00
Erwan de Ferrieres 01a63027b1 OFBIZ-4670 - Projectmgr Service corrections: Task status evaluation, getProjectHours by parties, errors messages - A patch from Olivier Heintz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235939 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 20:53:48 +00:00
Hans Bakker 7845a2c8f4 changes for configurable service product:
1. Display the configuration button on a product on the catalog manager.
2. Check the config  if the product is the configurable product service then 
    create new product from config(Do the same step as the configurable product).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235698 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 09:01:53 +00:00
Erwan de Ferrieres 0097ccff08 OFBIZ-2403 - Create a Portlet that show a list of returns placed by a customer
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235528 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 22:15:10 +00:00
Erwan de Ferrieres a0260511e1 OFBIZ-2405 - Create a Portlet to show the payments
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235513 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 21:38:48 +00:00
Hans Bakker 126bac2fc2 some confusion if allow is a valid parameter, perhaps Disallow is better
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235123 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 03:41:21 +00:00
Hans Bakker ca3a744ab3 better allow all ecommerce
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235118 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 03:28:21 +00:00
Hans Bakker fed62cf5b1 add robots.txt to the ecommerce component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235117 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 03:21:19 +00:00
Erwan de Ferrieres 18db0202e2 OFBIZ-2401 - Create a Portlet for training
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1234931 13f79535-47bb-0310-9956-ffa450edef68
2012-01-23 18:28:17 +00:00
Adrian Crum e458c7dd68 Moved project manager file to project manager component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1234577 13f79535-47bb-0310-9956-ffa450edef68
2012-01-22 18:53:23 +00:00
Jacques Le Roux 02938e1e1e A patch from Kiran Gawde "cardType is not prepopulated on checkout page" https://issues.apache.org/jira/browse/OFBIZ-4665
On Checkout page, credit card information is prepopulated based upon earlier order. But the card Type shows always the first type in the list.

jleroux: replaced tabs by 4 spaces

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1232539 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 19:09:21 +00:00
Erwan de Ferrieres d3f1d844b7 OFBIZ-2400 - Create a Portlet for leave - A patch from Vikas Mayur
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1232003 13f79535-47bb-0310-9956-ffa450edef68
2012-01-16 14:18:21 +00:00
Erwan de Ferrieres dd2ae932cc Adding missing ASL2 license header in scrum component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1230793 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 21:29:51 +00:00
Erwan de Ferrieres 653302c9cf wrongly formatted web.xml file, was generating stacktrace
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1230776 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 20:47:38 +00:00
Erwan de Ferrieres 7504307196 tabs to spaces, no functional changes - xml files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1230481 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 10:51:58 +00:00
Erwan de Ferrieres ae4b5a47fa OFBIZ-4527 - CategoryDetail.groovy in webpos is exactly same as in ordmgr and should be removed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1228716 13f79535-47bb-0310-9956-ffa450edef68
2012-01-07 20:25:37 +00:00
Erwan de Ferrieres 7bf9e12f51 OFBIZ-4642 - Task Statut is wrong after last modification done on ProjectServices.xml - A patch from Olivier Heintz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1228637 13f79535-47bb-0310-9956-ffa450edef68
2012-01-07 15:41:13 +00:00
Erwan de Ferrieres 4c12002770 OFBIZ-4644 - Sub-Project Phase are listed in Project Task list - A patch from Olivier Heintz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1227343 13f79535-47bb-0310-9956-ffa450edef68
2012-01-04 21:53:43 +00:00
Erwan de Ferrieres 5a26977691 Missing PageTitleTagResults label, and adding more French translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1226089 13f79535-47bb-0310-9956-ffa450edef68
2011-12-31 13:43:20 +00:00
Erwan de Ferrieres c3aa09d12a Removing orphan labels, imported at rev. 1039574
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1226084 13f79535-47bb-0310-9956-ffa450edef68
2011-12-31 13:37:40 +00:00
Erwan de Ferrieres a5b9bcabac ProductCategories is already defined in ProductUiLabels, no need to have it twice
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1226080 13f79535-47bb-0310-9956-ffa450edef68
2011-12-31 13:27:59 +00:00
Erwan de Ferrieres 30c0fce678 Some French translations for tags-related uiLabels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1226079 13f79535-47bb-0310-9956-ffa450edef68
2011-12-31 13:25:20 +00:00
Hans Bakker b9547e917b add a tagcloud demo to the ecommerce home page, contribution of tom of antwebsystems.com
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1225452 13f79535-47bb-0310-9956-ffa450edef68
2011-12-29 07:05:42 +00:00
Erwan de Ferrieres 0501207d42 Removing JSON handlers as they are deprecated since December 2009. More info @ http://s.apache.org/6zF
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1225242 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 17:32:16 +00:00
Hans Bakker 30d3362fe3 implement the basic janrain package, which enables the login via most social sites, but can not recognize if the same user if logged in from 2 different sites. By default this function is disabled and will not change the functionality of the OFBiz login procedure in any way
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1224876 13f79535-47bb-0310-9956-ffa450edef68
2011-12-27 07:39:43 +00:00
Erwan de Ferrieres dab6624dcc Simple refactoring in ProjectServices.xml, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1224706 13f79535-47bb-0310-9956-ffa450edef68
2011-12-26 10:28:07 +00:00
Erwan de Ferrieres d1f67b16da OFBIZ-4625 - Project, Phase, Task actualsHours, plannedHours is wrong in some cases after last modification done on ProjectServices.xml - a patch from Olivier Heintz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1224703 13f79535-47bb-0310-9956-ffa450edef68
2011-12-26 10:16:42 +00:00
Hans Bakker e0bae6287a apply ofbiz patches should not be part of a component in the special purpose directory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1222574 13f79535-47bb-0310-9956-ffa450edef68
2011-12-23 05:42:01 +00:00