[jira] [Updated] (OFBIZ-4959) Logout do not remove autoLogin

2012-07-11 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roberto Benítez Monje updated OFBIZ-4959:
-

Description: 
Logout method do not disable autoLogin functionality. Instead of that it just 
initializes autoLogin in session and request.

It have to be replace autoLoginCheck for autoLoginRemove inside of logout 
method.

{code:title=LoginEvents/LoginWorker.java|borderStyle=solid}
public static String logout(HttpServletRequest request, HttpServletResponse 
response) {
// invalidate the security group list cache
GenericValue userLogin = (GenericValue) 
request.getSession().getAttribute(userLogin);
String returnValue = success;
if (request.getAttribute(_AUTO_LOGIN_LOGOUT_) == null) {
try {
returnValue = autoLoginRemove(request, response);
} catch (IOException e) {
Debug.logWarning(e, , module);
}
}
// log out from all other sessions too; do this here so that it is only 
done when a user explicitly logs out
logoutFromAllSessions(userLogin);

doBasicLogout(userLogin, request);

return returnValue;
}
{code} 

  was:
Logout method do not disable autoLogin functionality. Instead of that it just 
initializes autoLogin in session and request.

It have to be replace autoLoginCheck for autoLoginRemove inside of logout 
method.


 Logout do not remove autoLogin
 --

 Key: OFBIZ-4959
 URL: https://issues.apache.org/jira/browse/OFBIZ-4959
 Project: OFBiz
  Issue Type: Bug
  Components: ALL COMPONENTS
Affects Versions: Release 09.04, Release 10.04
 Environment: Windows 2003 Server. Apache Ofbiz 2004 and Ofbiz 10
Reporter: Roberto Benítez Monje
  Labels: logout, security
   Original Estimate: 70,056h
  Remaining Estimate: 70,056h

 Logout method do not disable autoLogin functionality. Instead of that it just 
 initializes autoLogin in session and request.
 It have to be replace autoLoginCheck for autoLoginRemove inside of logout 
 method.
 {code:title=LoginEvents/LoginWorker.java|borderStyle=solid}
 public static String logout(HttpServletRequest request, HttpServletResponse 
 response) {
   // invalidate the security group list cache
   GenericValue userLogin = (GenericValue) 
 request.getSession().getAttribute(userLogin);
   String returnValue = success;
   if (request.getAttribute(_AUTO_LOGIN_LOGOUT_) == null) {
   try {
   returnValue = autoLoginRemove(request, response);
   } catch (IOException e) {
   Debug.logWarning(e, , module);
   }
   }
   // log out from all other sessions too; do this here so that it is only 
 done when a user explicitly logs out
   logoutFromAllSessions(userLogin);
   doBasicLogout(userLogin, request);
   return returnValue;
 }
 {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




Javascript style we have used for validating alphanumeric and spaces are not allowed

2012-07-11 Thread Raghu Chandra
Hi.,

i am raghu here, can any one please tell me what is the widget-style = we
will use
for validating only alphanumeric non space.


Thank you.

- Raghu


Discussion: Move Scripting Code To A Script Component

2012-07-11 Thread Adrian Crum
The code for scripting support is scattered across several different 
components. I would like to move all scripting-related code to a 
separate component called script or scripting. I believe this will 
help make things more modular and independent.


What do you think?

-Adrian



Re: Javascript style we have used for validating alphanumeric and spaces are not allowed

2012-07-11 Thread SAURABH SINGH
If you are using in the script .
use thi function

function alphanumeric(value,field){
var alphaExp = /^[0-9a-zA-Z]+$/;
var input = alphaExp.test(value);
if(value == )
{
return true;
}
if(input == true)
{
return true;
}
else
{
alert(field);
return false;
}
}

On Wed, Jul 11, 2012 at 4:26 PM, Raghu Chandra raghuchan...@kenapps.comwrote:

 Hi.,

 i am raghu here, can any one please tell me what is the widget-style = we
 will use
 for validating only alphanumeric non space.


 Thank you.

 - Raghu




-- 
*Thanks  Regards
SAURABH SINGH
**Software Engineer*
*Mechatronics Systems Pvt Ltd*
*BHOPAL (M.P.)*


[jira] [Closed] (OFBIZ-4839) Remove Code Related To Incomplete Authz Implementation

2012-07-11 Thread Adrian Crum (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrian Crum closed OFBIZ-4839.
--

Resolution: Fixed

Done, rev 1360283.


 Remove Code Related To Incomplete Authz Implementation
 

 Key: OFBIZ-4839
 URL: https://issues.apache.org/jira/browse/OFBIZ-4839
 Project: OFBiz
  Issue Type: Task
  Components: framework
Affects Versions: SlimDown
Reporter: Adrian Crum
Assignee: Adrian Crum
Priority: Minor

 Remove the authz-related code from the framework. That code was an effort 
 to redesign the security implementation, but it was never finished.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




Re: svn commit: r1360215 - /ofbiz/site/VideosConf.html

2012-07-11 Thread Jacques Le Roux

Thanks Christian,

This has only historical purpose, but it could not be neglected :o)

Jacques

From: chr...@apache.org

Author: chrisg
Date: Wed Jul 11 14:57:32 2012
New Revision: 1360215

URL: http://svn.apache.org/viewvc?rev=1360215view=rev
Log:
2005 Conference Videos links now pointing to the new 
ofbiz-bigfiles.apache.org location instead of ofbiz.org
(WIP: 2006 Videos missing, lots of broken links...)

Modified:
   ofbiz/site/VideosConf.html

Modified: ofbiz/site/VideosConf.html
URL: 
http://svn.apache.org/viewvc/ofbiz/site/VideosConf.html?rev=1360215r1=1360214r2=1360215view=diff
==
--- ofbiz/site/VideosConf.html (original)
+++ ofbiz/site/VideosConf.html Wed Jul 11 14:57:32 2012
@@ -55,29 +55,29 @@ the stream. The hosting for these is spo
p class=contenttextbuNovember 2006 - Ephraim, UT (sponsored by a href=http://www.automationgroups.com/; 
target=_blankAutomation Groups/a)/u/b/p


ul
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2006/StreamPart1_AttendeeIntros.mov;bPart 1:/b/a 
Introduction to Conference Attendees/li
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2006/StreamPart2_OFBizHistoryFuture.mov;bPart 2:/b/a 
The History and Future of OFBiz/li
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2006/StreamPart3_OFBizAtGraciousStyle.mov;bPart 3:/b/a 
OFBiz at Gracious Style by Si Chen of a href=http://www.graciousstyle.com/; target=_blankGracious Style/a and a 
href=http://www.opensourcestrategies.com/; target=_blankOpen Source Strategies/a/li
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2006/StreamPart4_RealWorldOFBizDiscussion.mov;bPart 
4:/b/a Real World OFBiz Discussion/li
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2006/StreamPart5_OFBizInIndia.mov;bPart 5:/b/a OFBiz in 
India by Amit Shinde of a href=http://www.amicontech.com/; target=_blankAmiconTech/a/li
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2006/StreamPart6_TestingPresentationAndDiscussion.mov;bPart 
6:/b/a Testing Presentation and Discussion by Al Byers/li
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2006/StreamPart7_EndingDiscussion.mov;bPart 7:/b/a 
Ending Discussion/li
+li class=contenttexta href=http://ofbiz-bigfiles.apache.org/Conf2006/StreamPart1_AttendeeIntros.mov;bPart 1:/b/a 
Introduction to Conference Attendees/li
+li class=contenttexta href=http://ofbiz-bigfiles.apache.org/Conf2006/StreamPart2_OFBizHistoryFuture.mov;bPart 
2:/b/a The History and Future of OFBiz/li
+li class=contenttexta href=http://ofbiz-bigfiles.apache.org/Conf2006/StreamPart3_OFBizAtGraciousStyle.mov;bPart 
3:/b/a OFBiz at Gracious Style by Si Chen of a href=http://www.graciousstyle.com/; target=_blankGracious Style/a and a 
href=http://www.opensourcestrategies.com/; target=_blankOpen Source Strategies/a/li
+li class=contenttexta href=http://ofbiz-bigfiles.apache.org/Conf2006/StreamPart4_RealWorldOFBizDiscussion.mov;bPart 
4:/b/a Real World OFBiz Discussion/li
+li class=contenttexta href=http://ofbiz-bigfiles.apache.org/Conf2006/StreamPart5_OFBizInIndia.mov;bPart 5:/b/a 
OFBiz in India by Amit Shinde of a href=http://www.amicontech.com/; target=_blankAmiconTech/a/li
+li class=contenttexta 
href=http://ofbiz-bigfiles.apache.org/Conf2006/StreamPart6_TestingPresentationAndDiscussion.mov;bPart 6:/b/a Testing 
Presentation and Discussion by Al Byers/li
+li class=contenttexta href=http://ofbiz-bigfiles.apache.org/Conf2006/StreamPart7_EndingDiscussion.mov;bPart 
7:/b/a Ending Discussion/li

/ul

p class=contenttextbuJuly 2005 - St. Louis/u/b (sponsored by a href=http://www.contegix.com/index.action; 
target=_blankContegix/a)/p


ul
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2005/StreamDay1Part1Intros.mov;bDay 1, Session 1:/b/a 
Introduction to OFBiz and Conference Attendees/li
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2005/StreamDay1Part2WhatsNew.mov;bDay 1, Session 2:/b/a 
What's New in OFBiz by David E. Jones of a href=http://www.undersunconsulting.com/control/home.html; target=_blankUndersun 
Consulting/a/li
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2005/StreamDay1Part3BestPractices.mov;bDay 1, Session 
3:/b/a OFBiz Framework Overview: Best Practices by David E. Jones of a 
href=http://www.undersunconsulting.com/control/home.html; target=_blankUndersun Consulting/a/li
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2005/StreamDay1Part4Accounting.mov;bDay 1, Session 
4:/b/a Accounting Extensions Overview by Si Chen of a href=http://www.opensourcestrategies.com/; target=_blankOpen Source 
Strategies/a/li
-li class=contenttexta href=http://bigfiles.ofbiz.org/Conf2005/StreamDay1Part4bAccountingCont.mov;bDay 1, Session 
4b:/b/a Accounting Extensions Overview (Continued)/li
-li class=contenttexta 

Re: Discussion: Move Scripting Code To A Script Component

2012-07-11 Thread BJ Freeman

are you thinking of just mini, or js, grouvy or what ever?

Adrian Crum sent the following on 7/11/2012 7:16 AM:

The code for scripting support is scattered across several different
components. I would like to move all scripting-related code to a
separate component called script or scripting. I believe this will
help make things more modular and independent.

What do you think?

-Adrian




Re: Discussion: Move Scripting Code To A Script Component

2012-07-11 Thread Jacques Le Roux

It's not quite clear to me

Jacques

From: Adrian Crum adrian.c...@sandglass-software.com
The code for scripting support is scattered across several different 
components. I would like to move all scripting-related code to a 
separate component called script or scripting. I believe this will 
help make things more modular and independent.


What do you think?

-Adrian



[jira] [Created] (OFBIZ-4960) Example Application Issues

2012-07-11 Thread Tom Burns (JIRA)
Tom Burns created OFBIZ-4960:


 Summary: Example Application Issues
 Key: OFBIZ-4960
 URL: https://issues.apache.org/jira/browse/OFBIZ-4960
 Project: OFBiz
  Issue Type: Bug
Affects Versions: Release 10.04, SVN trunk
 Environment: SVN Trunk
Reporter: Tom Burns
Priority: Minor
 Attachments: OFBIZ-4960 Example.patch

There are several defects in the Example application under the Example and 
Feature menus.

Problem path 1:
Find Example  Find Example
Select EX01
Click Items Tab (or Features)
Click Example Tab
Expected: Example Details form in the context of the Example menus
Actual: New Example Form under Example Application menus

Problem path 2:
Example  click New Example 
Enter a new example
Expected: Example Details form to add Items and Features to the New Example
Actual: Example page filtered on newly created example
(this is a problem for a new user who will not know how to clear the Example Id 
from the Search Options form. A better path would be to go to the edit forms 
where the user can add additional information on the example i.e. Items and 
Features)

Problem path 3:
Features  New Example Features 
Enter a Description  Click Create
Click Examples 
Expected: Examples to appear under the Examples menu.
Actual: New Example Feature opens under the Example Application menu.
Problem 3 Cont:
Enter a Type and Sequence Num
Click Add
Expected: Create a new Example Feature Appl
Actual: Error Problem 3: Error missing exampleFeatureId

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (OFBIZ-4960) Example Application Issues

2012-07-11 Thread Tom Burns (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tom Burns updated OFBIZ-4960:
-

Attachment: OFBIZ-4960 Example.patch

 Example Application Issues
 --

 Key: OFBIZ-4960
 URL: https://issues.apache.org/jira/browse/OFBIZ-4960
 Project: OFBiz
  Issue Type: Bug
Affects Versions: Release 10.04, SVN trunk
 Environment: SVN Trunk
Reporter: Tom Burns
Priority: Minor
 Attachments: OFBIZ-4960 Example.patch


 There are several defects in the Example application under the Example and 
 Feature menus.
 Problem path 1:
 Find Example  Find Example
 Select EX01
 Click Items Tab (or Features)
 Click Example Tab
 Expected: Example Details form in the context of the Example menus
 Actual: New Example Form under Example Application menus
 Problem path 2:
 Example  click New Example 
 Enter a new example
 Expected: Example Details form to add Items and Features to the New Example
 Actual: Example page filtered on newly created example
 (this is a problem for a new user who will not know how to clear the Example 
 Id from the Search Options form. A better path would be to go to the edit 
 forms where the user can add additional information on the example i.e. Items 
 and Features)
 Problem path 3:
 Features  New Example Features 
 Enter a Description  Click Create
 Click Examples 
 Expected: Examples to appear under the Examples menu.
 Actual: New Example Feature opens under the Example Application menu.
 Problem 3 Cont:
 Enter a Type and Sequence Num
 Click Add
 Expected: Create a new Example Feature Appl
 Actual: Error Problem 3: Error missing exampleFeatureId

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (OFBIZ-4961) 09.04 Release from OFBiz Home link broken

2012-07-11 Thread Tom Burns (JIRA)
Tom Burns created OFBIZ-4961:


 Summary: 09.04 Release from OFBiz Home link broken
 Key: OFBIZ-4961
 URL: https://issues.apache.org/jira/browse/OFBIZ-4961
 Project: OFBiz
  Issue Type: Bug
  Components: ALL COMPONENTS
Affects Versions: Release 09.04
 Environment: 
https://demo-old.ofbiz.apache.org/catalog/control/main?USERNAME=flexadminPASSWORD=ofbizJavaScriptEnabled=Y
Reporter: Tom Burns


See screen shot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (OFBIZ-4961) 09.04 Release from OFBiz Home link broken

2012-07-11 Thread Tom Burns (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tom Burns updated OFBIZ-4961:
-

Attachment: demo-old.ofbiz.jpg

 09.04 Release from OFBiz Home link broken
 -

 Key: OFBIZ-4961
 URL: https://issues.apache.org/jira/browse/OFBIZ-4961
 Project: OFBiz
  Issue Type: Bug
  Components: ALL COMPONENTS
Affects Versions: Release 09.04
 Environment: 
 https://demo-old.ofbiz.apache.org/catalog/control/main?USERNAME=flexadminPASSWORD=ofbizJavaScriptEnabled=Y
Reporter: Tom Burns
 Attachments: demo-old.ofbiz.jpg


 See screen shot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (OFBIZ-4961) 09.04 Release from OFBiz Home link broken

2012-07-11 Thread Tom Burns (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13412416#comment-13412416
 ] 

Tom Burns commented on OFBIZ-4961:
--

To reproduce go to http://ofbiz.apache.org/ and click on Management Apps for 
09.04 Release

 09.04 Release from OFBiz Home link broken
 -

 Key: OFBIZ-4961
 URL: https://issues.apache.org/jira/browse/OFBIZ-4961
 Project: OFBiz
  Issue Type: Bug
  Components: ALL COMPONENTS
Affects Versions: Release 09.04
 Environment: 
 https://demo-old.ofbiz.apache.org/catalog/control/main?USERNAME=flexadminPASSWORD=ofbizJavaScriptEnabled=Y
Reporter: Tom Burns
 Attachments: demo-old.ofbiz.jpg


 See screen shot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




New MultiTenant - At runtime

2012-07-11 Thread pankaj
Hi All,

We followed steps given in below link for multi tenant and it was quite
helpful.

https://cwiki.apache.org/confluence/display/OFBIZ/Multitenancy+support#Multitenancysupport-Settingtheecommerceapp.touseanspecificTenantDatabase

But Tenant Data loading and other configuration setting is managed by some
configuration files and not managed through database, so that if any new
Tenant is added or we need to load any custom data for any tenant we need
not to stop server.

I request for suggestions how to create Tenant dynamically i.e without
restarting the server.


With Regards,
Pankaj


--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/New-MultiTenant-At-runtime-tp4634716.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.


[jira] [Created] (OFBIZ-4962) ECommerce application, productdetail is not fully internationalized

2012-07-11 Thread Carsten Schinzer (JIRA)
Carsten Schinzer created OFBIZ-4962:
---

 Summary: ECommerce application, productdetail is not fully 
internationalized
 Key: OFBIZ-4962
 URL: https://issues.apache.org/jira/browse/OFBIZ-4962
 Project: OFBiz
  Issue Type: Improvement
  Components: specialpurpose/ecommerce
Affects Versions: SVN trunk
 Environment: any
Reporter: Carsten Schinzer
Priority: Minor
 Fix For: SVN trunk


The i18n in the productdetail.ftl is not complete when featuretree is used to 
define products. Missing bits:
- Reference to existing UI Labels on div productdetail for sizes available
- Using a UI Label instead of hard coded choose option on the AddItemForm 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (OFBIZ-4962) ECommerce application, productdetail is not fully internationalized

2012-07-11 Thread Carsten Schinzer (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Schinzer updated OFBIZ-4962:


Attachment: 
OFBIZ-4962_ECommerce_application_productdetail_is_not_fully_internationalized.patch

the patch. thanks for enrolling to trunk.

 ECommerce application, productdetail is not fully internationalized
 ---

 Key: OFBIZ-4962
 URL: https://issues.apache.org/jira/browse/OFBIZ-4962
 Project: OFBiz
  Issue Type: Improvement
  Components: specialpurpose/ecommerce
Affects Versions: SVN trunk
 Environment: any
Reporter: Carsten Schinzer
Priority: Minor
 Fix For: SVN trunk

 Attachments: 
 OFBIZ-4962_ECommerce_application_productdetail_is_not_fully_internationalized.patch

   Original Estimate: 0.5h
  Remaining Estimate: 0.5h

 The i18n in the productdetail.ftl is not complete when featuretree is used to 
 define products. Missing bits:
 - Reference to existing UI Labels on div productdetail for sizes available
 - Using a UI Label instead of hard coded choose option on the AddItemForm 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




Re: Javascript style we have used for validating alphanumeric and spaces are not allowed

2012-07-11 Thread Himanil Gupta

Hi Raghu,

'widget-style' are used to apply css to the widget that the user will 
interact with, for field. Instead you can use 'event' and 'action' 
attributes to achieve the required functionality for field.

e.g.
1- field name=yourFieldName title=${uiLabelMap.yourTitle} 
event=defineEventType action=javascript: function definition
2- field name=yourFieldName title=${uiLabelMap.yourTitle} 
event=defineEventType action=function already defined in JS file 
which included in decorator screens


event types like: 'onClick', 'onChange', 'onKeyPress'.

Thanks  regards
--
Himanil Gupta
Enterprise Software Developer
HotWax Media Indore
http://www.hotwaxmedia.com/


On 07/11/2012 08:09 PM, SAURABH SINGH wrote:

If you are using in the script .
use thi function

function alphanumeric(value,field){
 var alphaExp = /^[0-9a-zA-Z]+$/;
 var input = alphaExp.test(value);
 if(value == )
 {
 return true;
 }
 if(input == true)
 {
 return true;
 }
 else
 {
 alert(field);
 return false;
 }
 }

On Wed, Jul 11, 2012 at 4:26 PM, Raghu Chandraraghuchan...@kenapps.comwrote:


Hi.,

i am raghu here, can any one please tell me what is the widget-style = we
will use
for validating only alphanumeric non space.


Thank you.

- Raghu