Commit Graph
37 Commits
Author SHA1 Message Date
Aditya Sharma e8c5645003 Applied fix from trunk for revision: 1863838
===

Fixed: Check embedded Javascript libs vulnerabilities using retire.js
(OFBIZ-10678)
1. For solving CVE-2019-11358, upgraded jQuery to 3.4.1
2. Replaced library Fancybox with Featherlight. Added custom css so that cursor for links becomes pointer
Thanks Jacques Le Roux for the reviews


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1863843 13f79535-47bb-0310-9956-ffa450edef68
2019-07-27 08:53:46 +00:00
Jacques Le Roux cb280dff34 "Applied fix from trunk for revision: 1860526 "
------------------------------------------------------------------------
r1860526 | jleroux | 2019-06-02 15:10:36 +0200 (dim. 02 juin 2019) | 11 lignes

Fixed: Unknown request [images]; this request does not exist or cannot be 
called directly.
(OFBIZ-10895)

I was wrong doing massive changes w/o close control. 
I decided to revert the r1859576 and r1859807 commits and to backport the revert

The only safe way to go is to not only check the error log for 
"Unknown request [...."
but also to look for 404 in access log, not all request show erroneously in
error log/
------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1860527 13f79535-47bb-0310-9956-ffa450edef68
2019-06-02 13:11:27 +00:00
Suraj Khurana 898bd79421 Applied fix from trunk for revision: 1860082
===

Fixed: CSS Styling for Party Content progress bar is wrong in multiple theme.
(OFBIZ-10797)
Thanks Ayushi Rathod for reporting the issue and providing the patch.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1860083 13f79535-47bb-0310-9956-ffa450edef68
2019-05-26 16:11:36 +00:00
Jacques Le Roux 1f78b219e5 "Applied fix from trunk for revision: 1859807"
------------------------------------------------------------------------
r1859807 | jleroux | 2019-05-23 18:41:59 +0200 (jeu. 23 mai 2019) | 5 lignes

Fixed: Unknown request [images]; this request does not exist or cannot be called 
directly.
(OFBIZ-10895)

This should be the last commit, but I can't be sure. So I'll continue to 
monitor the demos logs...
------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1859808 13f79535-47bb-0310-9956-ffa450edef68
2019-05-23 16:43:12 +00:00
Jacques Le Roux 517b300063 "Applied fix from trunk for revision: 1859576"
------------------------------------------------------------------------
r1859576 | jleroux | 2019-05-20 20:02:09 +0200 (lun. 20 mai 2019) | 15 lignes

Fixed: Unknown request [images]; this request does not exist or cannot be 
called directly.
(OFBIZ-10895)

This error happens in many occasions.
It shows only in log and have no effect on UI.
It happens in all supported releases. 
So it's not very bad since it's has no side effects.

As said Deepak Dixit:
I think we need to fix the image url in css file, it should start with /images, 
else browser append this in request info. There is nothing related to java or 
tomcat code. 

I finally decided to do a whole change, here it is
------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1859577 13f79535-47bb-0310-9956-ffa450edef68
2019-05-20 18:03:03 +00:00
Jacques Le Roux 8ed4fd5279 "Applied fix from trunk for revision: 1858444 "
------------------------------------------------------------------------
r1858444 | jleroux | 2019-04-30 18:23:56 +0200 (mar. 30 avr. 2019) | 34 lignes

Fixed: Unknown request [images]; this request does not exist or cannot be 
called directly.
(OFBIZ-10895)

This error happens in many occasions:
Inside another request (eg LookupProduct)
Of after a request (eg login)

It shows only in log and have no effect on UI. Notably the new feature normally 
showing an error message in trunk (OFBIZ-10753) does not shows

It happens in all supported releases. IIRW it always happened, only URLs like 
https://demo-trunk.ofbiz.apache.org/images/defaultImage.jpg work. 
But here it's different because we don't need to call 
https://demo-trunk.ofbiz.apache.org/images by hand to get the issue in log.

So it's not very bad since it's has no side effects, just weird and annoying. 
Because it might hide something undetected yet...

This issue does not appear in R15, a good place to test is for instance 
ordermgr/control/request. 
There cal.gif is called by /images/cal.gif and it works (the images appears) 
but in more recent versions the call is also done to 
/ordermgr/control/images/cal.gif where it fails. 
This 1st appears in ControlFilter in the stack trace.

As said Deepak Dixit:
I think we need to fix the image url in css file, it should start with /images, 
else browser append this in request info. There is nothing related to java or 
tomcat code. 

This is a 1st commit for the errors I already reported and I'm sure about

Thanks: Deepak 
------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1858445 13f79535-47bb-0310-9956-ffa450edef68
2019-04-30 16:25:31 +00:00
Aditya Sharma df7ad6d730 Applied fix from trunk for revision: 1851433
===

Improved: Replace Inline js with External js in renderFieldGroupOpen macro
(OFBIZ-9853)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1851437 13f79535-47bb-0310-9956-ffa450edef68
2019-01-16 11:53:13 +00:00
Aditya Sharma 7604e4295d Applied fix from trunk for revision: 1850711
===

Improved: Replace jQuery.bind() with jQuery.on()
(OFBIZ-10758)
As of jQuery 3.0, .bind() has been deprecated. It was superseded by the .on() method for attaching event handlers to a document.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1850713 13f79535-47bb-0310-9956-ffa450edef68
2019-01-08 05:16:48 +00:00
Julien Nicolas 89f390cd54 Improve: Main menu enhancement
(OFBIZ-10521)

The main menu in rainbowstone theme don't display more than 9 items, pending items are included in the + menu.
The problem is that it's not really clear to know where you are or to simply click again on the webapp link to be redirected to the main target.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838073 13f79535-47bb-0310-9956-ffa450edef68
2018-08-15 08:50:28 +00:00
Julien Nicolas 35677822a1 Improved: Change font Title|to match with the initial implementation
(OFBIZ-10513)

Tanks: Marine DESMARCHELIER for her help to understand the reason that it wasn't work

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838072 13f79535-47bb-0310-9956-ffa450edef68
2018-08-15 08:42:00 +00:00
Julien Nicolas 28a8f7b053 fixed: code duplication in main rainbowstone less file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837981 13f79535-47bb-0310-9956-ffa450edef68
2018-08-13 21:05:54 +00:00
Deepak Dixit 23e4b72f17 Fixed: Alert message : Developer: for lookups to work you must provide a form name! appears when try to select contentId from Lookup.
(OFBIZ-10012)
Applied slightly modified patch 
Thanks  Sonal for reporting and Aditya Sharma for providing patch for the issue


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1825205 13f79535-47bb-0310-9956-ffa450edef68
2018-02-24 10:22:18 +00:00
Jacques Le Roux c5e0c1cc21 Fixed:Access the online help in Rainbow themes
(OFBIZ-10222)

The help icon did not render well on IE11. It's now OK on all major browsers

Thanks: Julien for the fix

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1824847 13f79535-47bb-0310-9956-ffa450edef68
2018-02-20 11:04:15 +00:00
Julien Nicolas 06a0fb6f7f Improve: merge all less files for rainbowstone theme to one.
OFBIZ-6881

Main less source code will be contained in the main-theme less file that will be included by color theme less files.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1824321 13f79535-47bb-0310-9956-ffa450edef68
2018-02-15 15:07:22 +00:00
Jacques Le Roux 19d9b3ca30 Improved: Replace Asm select plugin with Select2.
(OFBIZ-10113)

Current Asm Select Plugin 
http://www.ryancramer.com/journal/entries/asmselect_v104/
can be replaced with Select2 (https://select2.org/).

* Select2 has much better community support on GitHub with 386 contributors 
  while Asm Select Plugin is handled by Ryan Cramer on http://www.ryancramer.com/.
* Select2 has 37 releases while Asm select has very few releases yet.
* Both the plugin has MIT license.

Refer https://select2.org/ and  
https://github.com/select2/select2 for more features and other information.

Added i18n support so added logic in JsLanguageFileMappingCreator and 
JsLanguageFilesMapping accordingly.
Added some custom CSS as the Select2 seems to be too fancy in accordance 
with the current OFBiz themes

Verify:
Multiple drop-downs field in FormWidgetExamples.
https://localhost:8443/example/control/FormWidgetExamples

Find Request page with StatusId , CustRequestId
https://localhost:8443/ordermgr/control/FindRequest

I have replaced the plugins though I feel the implementation of select multiple 
js code is to be reviewed & refactored. I will pick when I am done with all my 
current tasks if I get some consensus.

Thanks: Aditya 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821001 13f79535-47bb-0310-9956-ffa450edef68
2018-01-12 15:47:47 +00:00
Jacques Le Roux 0459bf6e23 Improved: Clean images, among them logos, in all locations used
(OFBIZ-10128)

Fix my previous commits, there is no themes webapp so no URL at 
/themes/common/webapp/images/ofbiz_logo.png
It's only images/ofbiz_logo.png

Also I previously wrongly changed from
VT_HDR_IMAGE_Url
not
VT_HDR_IMAGE_URL
now fixed


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820982 13f79535-47bb-0310-9956-ffa450edef68
2018-01-12 13:49:09 +00:00
Jacques Le Roux 9247eef6bd Improved: Clean images, among them logos, in all locations used
(OFBIZ-10128)

The ofbiz_logo.png and ofbiz_logo.ico are now in theme but for Tomahawk which
has still it's own version but not really used I'd say. 

So apart for tomahawk/css/style.css which uses a relative path (not sure why)
this replaces the locations for these files in theme files

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820961 13f79535-47bb-0310-9956-ffa450edef68
2018-01-12 10:37:28 +00:00
Taher A. Alkhateeb 0a34f341d1 Fixed: apply correct RTL on tab bar items in flatgrey and rainbowstone themes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819499 13f79535-47bb-0310-9956-ffa450edef68
2017-12-29 17:29:52 +00:00
Jacques Le Roux e1a6545926 No functional changes. Correctly handles licenses
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817478 13f79535-47bb-0310-9956-ffa450edef68
2017-12-08 10:07:25 +00:00
Jacques Le Roux db2b231475 Improved: Replace Rainbow OFBiz logo
(OFBIZ-10034)

Still uses ofbiz-simple-white.svg for screen width under 1232px

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816934 13f79535-47bb-0310-9956-ffa450edef68
2017-12-02 08:07:16 +00:00
Jacques Le Roux 821d3f583c Improved: Replace Rainbow OFBiz logo
(OFBIZ-10034)

Creates a copy of https://ofbiz.apache.org/images/OFBiz-logo.png into a svg file 
for  use in Rainbow theme

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816933 13f79535-47bb-0310-9956-ffa450edef68
2017-12-02 07:50:23 +00:00
Jacques Le Roux 95b17d4d23 Improved: The main logo in screen upper part shows distorted
(OFBIZ-9990)

Fixes this issue in Tomahawk and Flat Grey themes by using ofbiz_logo.png, 
instead of the old logo deprecated ofbiz_logo.gif 

While at it use the same logo everywhere it's possible. It was needed for links 
to http://ofbiz.apache.org/images/ofbiz_logo.gif which no longer exists 
(actually seems only used for tests so could stay like that but better not refer 
to it anyway)

Also use this logo for Bluelight theme where it fits. 

It could not be used in Rainbow themes because they are using a Scalable Vector 
Graphics file (ofbiz-white.svg) that can't be replaced by the new png logo file
BTW this file still uses a TM symbol instead of a ®

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816897 13f79535-47bb-0310-9956-ffa450edef68
2017-12-01 18:45:50 +00:00
Jacques Le Roux 8f42e873cd Improved: Improve Rainbow theme showing themes
(OFBIZ-9862)

I have added the missing CSS styles for Rainbow theme in 
themes/rainbowstone/webapp/rainbowstone/style.css to improve the rendering of 
the list of visual themes also attached a screenshot for your quick reference. 

Thanks: Yogesh Naroliya for the patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813647 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 16:31:08 +00:00
Jacques Le Roux 942cb96b04 No functional change; just a name change
The real English name for saphir (that's French) is sapphire

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812458 13f79535-47bb-0310-9956-ffa450edef68
2017-10-18 05:18:53 +00:00
Deepak Dixit 1620e4e0ca Improved: No functional change, Only added license header
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812309 13f79535-47bb-0310-9956-ffa450edef68
2017-10-16 18:43:14 +00:00
Jacques Le Roux 456ad70aca Improved: Add session tracking mode and make cookie secure
(OFBIZ-6655)

Programmatically replaces the web.xml <session-config> declarations and uses 
the @WebListener annotation to start the process. This avoid to duplicates 
things everywhere in web.xml files. Since the web.xml files have precedence 
on annotations, the setting can be easily overridden when necessary.

Now that we also use HTTPS in ecommerce the ecommerce session cookie is 
also secured.

I also noted that we had 8 weird <session-timeout> declarations:
    in solr component: <session-timeout>2</session-timeout>
    in themes: <session-timeout>1</session-timeout>

Also in Rainbowstone we lacked the <cookie-config> and <tracking-mode> 
declarations. I think it's not good.

I resolve these points by simply removing the <session-config> in web.xml files 
of themes and Solr.

Thanks: Pradhan Yash Sharma  for review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811041 13f79535-47bb-0310-9956-ffa450edef68
2017-10-04 07:12:57 +00:00
Deepak Dixit f18ff2404a Fixed: Console warning related to web-app declaration.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791496 13f79535-47bb-0310-9956-ffa450edef68
2017-04-15 11:35:03 +00:00
Jacques Le Roux 084c4fd9db No functional changes
completes r1781219 by putting svn:eol-style=native to all file types declared 
in [auto-props] section of the svn config files.css

Actually this is only a 1st pass, it was too complicated to do it for  
all file types at once only concerned here
*.java;*.bsh;*.groovy;*.jsp;*.tld;*.ftl;*.js;*.sql;*.c;*.cpp;*.h;*.txt;*.sgml;
*.properties;*.xml;.classpath;.project;*.sld;*.gml;*.xsl;*.xsd
*.html;*.htm;*.css;*.md;README;NOTICE;LICENSE;rc.ofbiz.*;*.less;*.dsp;*.dsw

Most files should not be concerned by this change, but it's impossible to do
it one by one.

There are also changes in files with have mixed EOLs; because this has no sense
when using native which automatically resolves this issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1781731 13f79535-47bb-0310-9956-ffa450edef68
2017-02-05 11:09:59 +00:00
Pranay Pandey 8dd9964d31 [OFBIZ-7311] - Applied the patch from the ticket. Removing the unused references of the maincss.css from source code, following is done-
1) Removed 'maincss.css' entry from 'allowedPaths' param of from web.xml
Reason: Since, there is no file like 'maincss.css' exist under any includes directory. 
2) Removed the unused references of maincss.css from FTLs, code
<link rel="stylesheet" href="${StringUtil.wrapString(baseUrl!)}/images/maincss.css" type="text/css"/> 
has been removed.
Reason: This is an interesting thing, these FTLs were using the maincss.css located under the images directory.
When I look the history of these files, following were my findings,
The 'maincss.css' file under the 'images' directory exist in release4.0 
http://svn.apache.org/repos/asf/ofbiz/branches/release4.0/framework/images/webapp/images/
after this release, this files no longer exist there.
3) Also, I have updated one file 'InventoryNoticeEmail.ftl' and used the basic HTML code to style, instead of using style defined in 'maincss.css' which were exist in release-4.0
4) Updated some references from 'maincss.css' to style.css in comments.
5) Also removed the entry of including '/images/maincss.css' and '/images/mainrtl.css' in SimpleDecorator
Since, these files no longer exist after release-4.0.

Thanks Wai for reviewing the work and thanks Swapnil M Mane for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758389 13f79535-47bb-0310-9956-ffa450edef68
2016-08-30 13:37:27 +00:00
Jacques Le Roux 826aeb3683 Removes now useless IE7 "star html hack". I was used to prevent IE7 from applying some CCS rules: http://css-discuss.incutio.com/wiki/Star_Html_Hack
And the hack is claimed deprecated here : https://blogs.msdn.microsoft.com/ie/2005/10/12/call-to-action-the-demise-of-css-hacks-and-broken-pages/

Thanks to Florian Montalbano research at "css property name correction in flatgrey and rainbowstone themes" - https://issues.apache.org/jira/browse/OFBIZ-7960#

I checked, the IE7 market share is residual, no needs to keep this dragging down feature

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757469 13f79535-47bb-0310-9956-ffa450edef68
2016-08-24 07:32:01 +00:00
Jacques Le Roux 4a33d1e3d0 The *.less type is not in the svn config. So I revert, will add the *.less type, and commit again.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757463 13f79535-47bb-0310-9956-ffa450edef68
2016-08-24 06:03:20 +00:00
Jacques Le Roux 1bb89a2347 Removes now useless IE7 "star html hack". I was used to prevent IE7 from applying some CCS rules: http://css-discuss.incutio.com/wiki/Star_Html_Hack
And the hack is claimed deprecated here : https://blogs.msdn.microsoft.com/ie/2005/10/12/call-to-action-the-demise-of-css-hacks-and-broken-pages/

Thanks to Florian Montalbano research at "css property name correction in flatgrey and rainbowstone themes" - https://issues.apache.org/jira/browse/OFBIZ-7960#

I checked, the IE7 market share is residual, no needs to keep this dragging down feature

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757462 13f79535-47bb-0310-9956-ffa450edef68
2016-08-24 05:44:00 +00:00
Pranay Pandey 287543008b [OFBIZ-7311] No functional change, renamed the CSS files for Flat Grey and Rainbow Stone themes as per best practice.
Thanks Swapnil M Mane for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748923 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 06:17:23 +00:00
Pranay Pandey 1e0bfa749c [OFBIZ-7311] No functional change, corrected formatting of the CSS files for Rainbow Stone themes as per best practice.
Thanks Swapnil M Mane for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748921 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 06:11:15 +00:00
Pranay Pandey 042864ac13 [OFBIZ-7268] Improved the styling for the anchor links inside the 'button-bar' to fix styling for CommonButtonBarMenu. Reverted the changes committed under OFBIZ-7006, since these UI improvements fix that issue as well by extending CommonButtonBarMenu.
Thanks Swapnil M Mane for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748145 13f79535-47bb-0310-9956-ffa450edef68
2016-06-13 09:13:14 +00:00
Julien Nicolas 117acbcbb6 Fix rainbowstone theme personnal avatar image - JIRA6881
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728562 13f79535-47bb-0310-9956-ffa450edef68
2016-02-04 22:40:33 +00:00
Julien Nicolas 324bc0af74 Add new theme rainbowstone JIRA6843
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728388 13f79535-47bb-0310-9956-ffa450edef68
2016-02-03 22:51:33 +00:00