Re: [VOTE] [RELEASE] Apache OFBiz 11.04.02

2013-01-14 Thread Sascha Rodekamp
+1, looks good from my side


2013/1/14 Jacques Le Roux jacques.le.r...@les7arts.com

 +1, MD5 and run-install run, ok with me

 Jacques

 From: Jacopo Cappellato jacopo.cappell...@hotwaxmedia.com
  This is the vote thread to release a new (bug fix) release for the 11.04
 branch. This new release, Apache OFBiz 11.04.02 (major release number:
 11.04; minor release number: 02), will supersede the release Apache
 OFBiz 11.04.01.
 
  The release files can be downloaded from here:
 
  https://dist.apache.org/repos/dist/dev/ofbiz/
 
  (committers only) or from here:
 
  http://people.apache.org/~jacopoc/dist/
 
  (everyone else)
 
  and are:
 
  * apache-ofbiz-11.04.02.zip: the release package, based on the 11.04
 branch at revision 1432855 (latest as of now)
  * KEYS: text file with keys
  * apache-ofbiz-11.04.02.zip.asc: the detached signature file
  * apache-ofbiz-11.04.02.zip.md5, apache-ofbiz-11.04.02.zip.sha: hashes
 
  Please download and test the zip file and its signatures (for
 instructions on testing the signatures see
 http://www.apache.org/info/verification.html).
 
  Vote:
 
  [ +1] release as Apache OFBiz 11.04.02
  [ -1] do not release
 
  This vote will be closed in 72 hours.
  For more details about this process please read
 http://www.apache.org/foundation/voting.html
 
  The following text is quoted from the above url:
  Votes on whether a package is ready to be released use majority
 approval -- i.e. at least three PMC members must vote affirmatively for
 release, and there must be more positive than negative votes. Releases may
 not be vetoed. Generally the community will cancel the release vote if
 anyone identifies serious problems, but in most cases the ultimate
 decision, lies with the individual serving as release manager.
 
  Kind Regards,
 
  Jacopo
 
 




-- 

Sascha Rodekamp
Visit the new german OFBiz Blog: http://www.ofbiz.biz
Lynx-Consulting GmbH
Johanniskirchplatz 6
D-33615 Bielefeld
http://www.lynx.de


Re: [VOTE] [RELEASE] Apache OFBiz 10.04.05

2013-01-14 Thread Sascha Rodekamp
+1 looks good, no problemes.


2013/1/14 Jacques Le Roux jacques.le.r...@les7arts.com

 +1, MD5 and run-install run, ok with me

 Jacques

 From: Jacopo Cappellato jacopo.cappell...@hotwaxmedia.com
  This is the vote thread to release a new (bug fix) release for the 10.04
 branch. This new release, Apache OFBiz 10.04.05 (major release number:
 10.04; minor release number: 05), will supersede the release Apache
 OFBiz 10.04.04.
 
  The release files can be downloaded from here:
 
  https://dist.apache.org/repos/dist/dev/ofbiz/
 
  (committers only) or from here:
 
  http://people.apache.org/~jacopoc/dist/
 
  (everyone else)
 
  and are:
 
  * apache-ofbiz-10.04.05.zip: the release package, based on the 10.04
 branch at revision 1432855 (latest as of now)
  * KEYS: text file with keys
  * apache-ofbiz-10.04.05.zip.asc: the detached signature file
  * apache-ofbiz-10.04.05.zip.md5, apache-ofbiz-10.04.05.zip.sha: hashes
 
  Please download and test the zip file and its signatures (for
 instructions on testing the signatures see
 http://www.apache.org/info/verification.html).
 
  Vote:
 
  [ +1] release as Apache OFBiz 10.04.05
  [ -1] do not release
 
  This vote will be closed in 72 hours.
  For more details about this process please read
 http://www.apache.org/foundation/voting.html
 
  The following text is quoted from the above url:
  Votes on whether a package is ready to be released use majority
 approval -- i.e. at least three PMC members must vote affirmatively for
 release, and there must be more positive than negative votes. Releases may
 not be vetoed. Generally the community will cancel the release vote if
 anyone identifies serious problems, but in most cases the ultimate
 decision, lies with the individual serving as release manager.
 
  Kind Regards,
 
  Jacopo




-- 

Sascha Rodekamp
Visit the new german OFBiz Blog: http://www.ofbiz.biz
Lynx-Consulting GmbH
Johanniskirchplatz 6
D-33615 Bielefeld
http://www.lynx.de


[jira] [Closed] (OFBIZ-2628) No Url encoding for get parameters

2012-10-02 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-2628.
--

   Resolution: Fixed
Fix Version/s: Release Branch 10.04

Ok doki.
I committed the patch in:

10.04 @Rev1392767
11.04 @Rev1392768
12.04 @Rev1392769
Trunk @Rev1392766

So we could finally close the issue :-) ?!

 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk, 
 Release Branch 12.04

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-encoding-hidden-post-params (list forms).patch, 
 OFBIZ-2628-encoding-hidden-post-params (list forms).patch, 
 OFBIZ-2628-encoding-hidden-post-params.patch, 
 OFBIZ-2628-encoding-request-and-hidden-params.patch, 
 OFBIZ-2628-encoding-request-redirect-params.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Closed] (OFBIZ-5045) Edit Estimated Ship Date or Estimated Delivery Date brings on date format error

2012-10-02 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-5045.
--

   Resolution: Fixed
Fix Version/s: SVN trunk
 Assignee: Sascha Rodekamp

Hi Paul,
thanks for the Patch it's committed in 
Trunk @Rev 1392773

 Edit Estimated Ship Date or Estimated Delivery Date brings on date format 
 error
 ---

 Key: OFBIZ-5045
 URL: https://issues.apache.org/jira/browse/OFBIZ-5045
 Project: OFBiz
  Issue Type: Bug
  Components: order
Affects Versions: SVN trunk
Reporter: Paul Foxworthy
Assignee: Sascha Rodekamp
 Fix For: SVN trunk

 Attachments: OFBIZ-5045_EditOrderItemEstimatedDates

   Original Estimate: 1h
  Remaining Estimate: 1h

 On demo site, enter the URL
 https://demo-trunk.ofbiz.apache.org/ordermgr/control/orderview?orderId=DEMO10091
 In Action screenlet, choose Edit Items
 In Estimated Delivery Date, use calendar and choose a date. The date 
 presented will be formatted according to your locale.
 Click on Update Items. An error message is displayed to say the date is not 
 in the correct format.
 With the changes for localized dates, there are two input elements, one 
 hidden one for a plain date suitable for conversion to a Timestamp, and the 
 other displayed to the user in localized format. The second input element 
 should not be processed by the updateApprovedOrderItems service.
 updateApprovedOrderItems uses string-map-prefixes of isdm_ and iddm_ for 
 estimated ship and delivery dates respectively. So the maps processed by the 
 service contain both plain and localized dates.
 The patch adds an if statement to ignore members of the isdm and iddm maps 
 with keys that have a suffix of _i18n.
 I have grepped all of the Ofbiz code for any other service that uses dates 
 with string-map-prefix, and updateApprovedOrderItems is the only one, so I 
 believe the problem won't occur anywhere else.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (OFBIZ-2628) No Url encoding for get parameters

2012-10-01 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp updated OFBIZ-2628:
---

Attachment: OFBIZ-2628-encoding-request-and-hidden-params.patch

Hi,
I changed your patch slightly and in worked.
The Problem is, that VIEW_SIZE is only stored in parameters and not in the 
context object.
A simple containsKey on the context object solves the problem

Working with hidden fields work now for me, could you please so a recheck.
I created the patch file from trunk.





 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 11.04, SVN trunk, Release Branch 12.04

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-encoding-hidden-post-params (list forms).patch, 
 OFBIZ-2628-encoding-hidden-post-params (list forms).patch, 
 OFBIZ-2628-encoding-hidden-post-params.patch, 
 OFBIZ-2628-encoding-request-and-hidden-params.patch, 
 OFBIZ-2628-encoding-request-redirect-params.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (OFBIZ-2628) No Url encoding for get parameters

2012-09-28 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-2628:


Good morning guys,

I tested that on trunk and 11.04 and it works fine. No problems with creating 
and deleting an attribute.




 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 11.04, SVN trunk, Release Branch 12.04

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-encoding-hidden-post-params (list forms).patch, 
 OFBIZ-2628-encoding-hidden-post-params.patch, 
 OFBIZ-2628-encoding-request-redirect-params.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (OFBIZ-2628) No Url encoding for get parameters

2012-09-28 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-2628:


Ah ok i only tested with special chars like + and äöü, which works fine. But 
the a space is really a problem. Let's see what we can do here...

 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 11.04, SVN trunk, Release Branch 12.04

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-encoding-hidden-post-params (list forms).patch, 
 OFBIZ-2628-encoding-hidden-post-params.patch, 
 OFBIZ-2628-encoding-request-redirect-params.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (OFBIZ-2628) No Url encoding for get parameters

2012-09-27 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-2628:


Hm, the patch OFBIZ-2628-encoding-hidden-post-params.patch break the encoding 
again.

 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 11.04, SVN trunk, Release Branch 12.04

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-encoding-hidden-post-params.patch, 
 OFBIZ-2628-encoding-request-redirect-params.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (OFBIZ-2628) No Url encoding for get parameters

2012-09-27 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-2628:


I applied the patch on trunk. Which causes the same issue as described in the 
in the bug description. 



 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 11.04, SVN trunk, Release Branch 12.04

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-encoding-hidden-post-params.patch, 
 OFBIZ-2628-encoding-request-redirect-params.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (OFBIZ-2628) No Url encoding for get parameters

2012-09-27 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-2628:


Ok no problem, can you give me a short example of your problem that I can 
reproduce it here on my machine?

 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 11.04, SVN trunk, Release Branch 12.04

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-encoding-hidden-post-params.patch, 
 OFBIZ-2628-encoding-request-redirect-params.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (OFBIZ-2628) No Url encoding for get parameters

2012-09-27 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-2628:


Hey,
thanks for the new patch. The encoding of the parameters works now. But I get 
NPE's when loading the global decorator on different pages i.e.: 
https://localhost:8443/content/control/ListWebSiteContent?webSiteId=CmsSite
The exception occurs in: WidgetWorker.makeHiddenFormLinkForm


 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 11.04, SVN trunk, Release Branch 12.04

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-encoding-hidden-post-params (list forms).patch, 
 OFBIZ-2628-encoding-hidden-post-params.patch, 
 OFBIZ-2628-encoding-request-redirect-params.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (OFBIZ-2628) No Url encoding for get parameters

2012-09-26 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-2628:


I finally back form my holiday. 

Great observation Wojciech, I will check that.



 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (OFBIZ-2628) No Url encoding for get parameters

2012-09-26 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp edited comment on OFBIZ-2628 at 9/27/12 2:07 AM:
-

I'm finally back form my holiday. 

Great observation Wojciech, I will check that.

Edit: The changes work great, I can't identify any side effects.
I committed the changes in 
Trunk @Rev1390542
12.04 @Rev1390546
11.04 @Rev1390544



  was (Author: sascha):
I finally back form my holiday. 

Great observation Wojciech, I will check that.


  
 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Closed] (OFBIZ-2628) No Url encoding for get parameters

2012-09-26 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-2628.
--

   Resolution: Fixed
Fix Version/s: (was: Release Branch 10.04)
   Release Branch 12.04

 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 11.04, SVN trunk, Release Branch 12.04

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (OFBIZ-4915) Lookup Form not working with Arabic characters

2012-08-28 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4915:


Hi Taher,
thanks for working on this issue. I committed your patch in
release 11.04 @Rev 1377987
release 12.04 @Rev 1377986
trunk @Rev 1377988

Regards Sascha

 Lookup Form not working with Arabic characters
 --

 Key: OFBIZ-4915
 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
 Project: OFBiz
  Issue Type: Bug
  Components: ALL COMPONENTS
Affects Versions: Release Branch 11.04, Release Branch 12.04
Reporter: Taher Alkhateeb
Assignee: Jacques Le Roux
Priority: Minor
  Labels: form, jQuery, javascript, lookup
 Fix For: Release Branch 12.04

 Attachments: fieldlookup.patch, search_party_after_submit.png, 
 search_party_before_submit.png, XHR_Screenshot_27_06_2012.png


 Any field in a form that uses the lookup target-form-name=WhateverForm/ 
 would not return results when searching in Arabic. I suspect the main 
 offender is javascript/jQuery when parsing user input.
 For example, if I go to https://localhost:8443/ordermgr/control/findorders 
 and click on Party ID, and search the firstname or lastname in arabic, no 
 values are returned and the value in the search box changes from arabic to 
 some weird encoding ( e.g. حسن becomes حس٠)
 Also, after some investigation, I came to the realization that this only 
 happens when the lookup field has presentation=layer, if however, the 
 presentation=window then it works normally which leads me to conclude 
 definitely that this is javascript/jQuery issue of parsing input data. More 
 specifically, this is javascript not processing with the correct encoding 
 (unicode in this case). I know this because if I paste the unicode 
 representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: svn commit: r1375953 - /ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl

2012-08-22 Thread Sascha Rodekamp
You're welcome :-)

On 22.08.2012, at 12:40, Hans Bakker mailingl...@antwebsystems.com wrote:

 You saved my day, I have a presentation tomorrow,
 
 Thanks!
 
 Regards,
 Hans
 
 On 08/22/2012 04:23 PM, sascharodek...@apache.org wrote:
 Author: sascharodekamp
 Date: Wed Aug 22 09:23:52 2012
 New Revision: 1375953
 
 URL: http://svn.apache.org/viewvc?rev=1375953view=rev
 Log:
 - Fixed a bug, the Projectmgr GantChart was not shown anymore. Thanks Hans 
 for reposting on the user ML
 
 Modified:
 
 ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl
 
 Modified: 
 ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl
 URL: 
 http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl?rev=1375953r1=1375952r2=1375953view=diff
 ==
 --- 
 ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl
  (original)
 +++ 
 ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl
  Wed Aug 22 09:23:52 2012
 @@ -33,7 +33,7 @@ g.setShowComp(1); // Show/Hide % Complet
  g.AddTaskItem(new JSGantt.TaskItem(${t.phaseNr}, 
 ${t.phaseSeqNum?if_exists}. ${t.phaseName}, , , 00ff00, , 0, , 
 0, 1, 0, 1));
  /#if
  #if t.workEffortTypeId == TASK
 -g.AddTaskItem(new 
 JSGantt.TaskItem(${t.taskNr},${t.taskSeqNum?if_exists}. 
 ${t.taskName},${StringUtil.wrapString(t.estimatedStartDate)}, 
 ${StringUtil.wrapString(t.estimatedCompletionDate)},009900, ${t.url}, 
 0 , ${t.resource?if_exists}, ${t.completion?if_exists} , 0, ${t.phaseNr}, 
 1#if t.preDecessor?exists, ${t.preDecessor}/#if));
 +g.AddTaskItem(new 
 JSGantt.TaskItem(${t.taskNr},${t.taskSeqNum?if_exists}. 
 ${t.taskName},${StringUtil.wrapString(t.estimatedStartDate)}, 
 ${StringUtil.wrapString(t.estimatedCompletionDate)},009900, ${t.url}, 
 0 , ${t.resource?if_exists}, ${t.completion?if_exists} , 0, ${t.phaseNr}, 
 1#if t.preDecessor?exists, ${t.preDecessor}/#if));
  /#if
  #if t.workEffortTypeId == MILESTONE
  g.AddTaskItem(new 
 JSGantt.TaskItem(${t.taskNr},${t.taskName},${StringUtil.wrapString(t.estimatedStartDate)},
  ${StringUtil.wrapString(t.estimatedCompletionDate)},00ff00, , 1 , 
 ${t.resource?if_exists}, ${t.completion?if_exists} , 0,${t.phaseNr}, , 
  ));
 
 
 


[jira] [Assigned] (OFBIZ-4982) js issue causes error when invalid dates are entered

2012-08-06 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp reassigned OFBIZ-4982:
--

Assignee: Sascha Rodekamp

 js issue causes error when invalid dates are entered
 

 Key: OFBIZ-4982
 URL: https://issues.apache.org/jira/browse/OFBIZ-4982
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Christoph Neuroth
Assignee: Sascha Rodekamp
Priority: Minor
 Attachments: ofbiz-i18n_dateinput_null_fix.patch


 Reproduce: Enter 123 in a DateField. This will trigger a JS exception and 
 the invalid value will be sent to the server on form submission, probably 
 causing server-side exceptions in badly written backend code, resulting in 
 really bad error messages for the user.

--
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-4982) js issue causes error when invalid dates are entered

2012-08-06 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4982:


Hi Christoph,
thanks for the patch. 
One thought that comes in my mind: Is it a good idea to remove wrong date 
inputs? It's obvious when you type 123 in the Date/Time field. But what if 
the user accidentally switched day and month which could also result in an 
exception. If we remove the wrong input field this wouldn't be noticed at all.
Is it possible to use a custom validation to highlight the field on a wrong 
input?

Many thanks
Sascha

 js issue causes error when invalid dates are entered
 

 Key: OFBIZ-4982
 URL: https://issues.apache.org/jira/browse/OFBIZ-4982
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Christoph Neuroth
Assignee: Sascha Rodekamp
Priority: Minor
 Attachments: ofbiz-i18n_dateinput_null_fix.patch


 Reproduce: Enter 123 in a DateField. This will trigger a JS exception and 
 the invalid value will be sent to the server on form submission, probably 
 causing server-side exceptions in badly written backend code, resulting in 
 really bad error messages for the user.

--
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] [Closed] (OFBIZ-4982) js issue causes error when invalid dates are entered

2012-08-06 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-4982.
--

   Resolution: Fixed
Fix Version/s: SVN trunk

Hi Christoph,

you're patch is in trunk @Rev 1370123

Many thanks
Sascha

 js issue causes error when invalid dates are entered
 

 Key: OFBIZ-4982
 URL: https://issues.apache.org/jira/browse/OFBIZ-4982
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Christoph Neuroth
Assignee: Sascha Rodekamp
Priority: Minor
 Fix For: SVN trunk

 Attachments: ofbiz-i18n_dateinput_null_fix.patch


 Reproduce: Enter 123 in a DateField. This will trigger a JS exception and 
 the invalid value will be sent to the server on form submission, probably 
 causing server-side exceptions in badly written backend code, resulting in 
 really bad error messages for the user.

--
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] [Closed] (OFBIZ-4752) Error in Content CMS click Find

2012-08-02 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-4752.
--

   Resolution: Not A Problem
Fix Version/s: SVN trunk

Will close this issue now. If this error occurs again we can reopen it.

 Error in Content  CMS click Find
 -

 Key: OFBIZ-4752
 URL: https://issues.apache.org/jira/browse/OFBIZ-4752
 Project: OFBiz
  Issue Type: Bug
  Components: content
Affects Versions: SVN trunk
 Environment: demo-trunk
Reporter: Tom Burns
Assignee: Sascha Rodekamp
Priority: Minor
 Fix For: SVN trunk


 To reproduce:
 In Content Manager 
 (https://demo-trunk.ofbiz.apache.org/content/control/CMSContentFind)
 select CMS then click Find button located above the title CMS Content 
 Find 
 Expected: ?
 Actual: Error message
 org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
 [component://content/widget/cms/CMSScreens.xml#AdminSearch]: 
 java.lang.IllegalArgumentException: Error running script at location 
 [component://content/webapp/content/WEB-INF/actions/cms/Search.groovy]: 
 javax.script.ScriptException: org.apache.lucene.index.IndexNotFoundException: 
 no segments* file found in 
 org.apache.lucene.store.MMapDirectory@/home/ofbiz/trunk/applications/content/index
  lockFactory=org.apache.lucene.store.NativeFSLockFactory@4bbbf4ee: files: 
 [indexhere.txt] (Error running script at location 
 [component://content/webapp/content/WEB-INF/actions/cms/Search.groovy]: 
 javax.script.ScriptException: org.apache.lucene.index.IndexNotFoundException: 
 no segments* file found in 
 org.apache.lucene.store.MMapDirectory@/home/ofbiz/trunk/applications/content/index
  lockFactory=org.apache.lucene.store.NativeFSLockFactory@4bbbf4ee: files: 
 [indexhere.txt])

--
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] [Closed] (OFBIZ-4281) parse javascript link wrongly in lookup layer dialog if there's slash '/' in data

2012-07-09 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-4281.
--

Resolution: Fixed

Thanks Leon fixed in Trunk @Rev1358988

 parse javascript link wrongly in lookup layer dialog if there's slash '/' in 
 data
 -

 Key: OFBIZ-4281
 URL: https://issues.apache.org/jira/browse/OFBIZ-4281
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Leon
Assignee: Sascha Rodekamp
Priority: Trivial
 Fix For: SVN trunk

 Attachments: fieldlookup.js.patch


 e.g. in lookup dialog (in layer mode), one href value of a link is 
 javascript:set_value('123/ABC');, then the ofbiz framework will parse it to 
 javascript:lookupAjaxRequest('ABC'');presentation=layer'). It's wrong. 
 Correct one should be given href itself.
 to fix:
 judge whether the link contains javascript:set_ before split it by slash 
 '/'.

--
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] [Assigned] (OFBIZ-4950) Lookup filed with target-parameter attribute set cannot be displayed.

2012-07-04 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp reassigned OFBIZ-4950:
--

Assignee: Sascha Rodekamp

 Lookup filed with target-parameter attribute set cannot be displayed.
 -

 Key: OFBIZ-4950
 URL: https://issues.apache.org/jira/browse/OFBIZ-4950
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Leon
Assignee: Sascha Rodekamp
Priority: Minor
 Fix For: SVN trunk

 Attachments: OFBIZ-4950.patch


 if lookup field has attribute target-parameter set, then there's 
 javascript error in front end and lookup icon disappears.

--
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] [Closed] (OFBIZ-4950) Lookup filed with target-parameter attribute set cannot be displayed.

2012-07-04 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-4950.
--

Resolution: Fixed

Hi Leon,
many thanks. I committed your patch in Trunk @Rev1357098

Have a good day
Sascha

 Lookup filed with target-parameter attribute set cannot be displayed.
 -

 Key: OFBIZ-4950
 URL: https://issues.apache.org/jira/browse/OFBIZ-4950
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Leon
Assignee: Sascha Rodekamp
Priority: Minor
 Fix For: SVN trunk

 Attachments: OFBIZ-4950.patch


 if lookup field has attribute target-parameter set, then there's 
 javascript error in front end and lookup icon disappears.

--
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] [Closed] (OFBIZ-4951) entity/src ommited in .classpath that makes project built failed in eclipse.

2012-07-04 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-4951.
--

Resolution: Duplicate
  Assignee: Sascha Rodekamp

Right, it's already fixed.
Anyway thanks for reporting Leon!

Have a good day
Sascha

 entity/src ommited in .classpath that makes project built failed in eclipse.
 --

 Key: OFBIZ-4951
 URL: https://issues.apache.org/jira/browse/OFBIZ-4951
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Leon
Assignee: Sascha Rodekamp
Priority: Trivial
 Fix For: SVN trunk

 Attachments: OFBIZ-4951.patch


 in latest revision of trunk, the classpathentry of entity/src is removed 
 for some reason, it causes eclipse unalbe to build project successfully.

--
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] [Closed] (OFBIZ-4948) Render checkbox field as same behavior as radiobox

2012-06-29 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-4948.
--

Resolution: Fixed
  Assignee: Sascha Rodekamp

Hi Leon, thanks for the patch.

It's committed in trunk @Rev1355291

 Render checkbox field as same behavior as radiobox
 --

 Key: OFBIZ-4948
 URL: https://issues.apache.org/jira/browse/OFBIZ-4948
 Project: OFBiz
  Issue Type: Improvement
  Components: framework
Affects Versions: SVN trunk
Reporter: Leon
Assignee: Sascha Rodekamp
Priority: Trivial
 Fix For: SVN trunk

 Attachments: OFBIZ-4948.patch


 when rendering a radio field in form widget, the generated html codes looks 
 like: spaninput type=radio ...blahblah/span. The radio box and its 
 description are wrapped by span and it's easy to change css style for both 
 of them (radio and description), not only for radio type input. But the check 
 box is rendered in another way without span around.

--
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-4915) Lookup Form not working with Arabic characters

2012-06-28 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4915:


Hi Taher,
when sending data to the server I used the jQuery serialize() function to read 
the input parameter form the form. The serialize function uses standard URL 
encoding. Could this be a problem.
you can find the code in the function lookupFormAjaxRequest().

Have a good day
Sascha

 Lookup Form not working with Arabic characters
 --

 Key: OFBIZ-4915
 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
 Project: OFBiz
  Issue Type: Bug
  Components: ALL COMPONENTS
Affects Versions: Release Branch 11.04, Release Branch 12.04
Reporter: Taher Alkhateeb
Assignee: Jacques Le Roux
Priority: Minor
  Labels: form, jQuery, javascript, lookup
 Attachments: XHR_Screenshot_27_06_2012.png, 
 search_party_after_submit.png, search_party_before_submit.png


 Any field in a form that uses the lookup target-form-name=WhateverForm/ 
 would not return results when searching in Arabic. I suspect the main 
 offender is javascript/jQuery when parsing user input.
 For example, if I go to https://localhost:8443/ordermgr/control/findorders 
 and click on Party ID, and search the firstname or lastname in arabic, no 
 values are returned and the value in the search box changes from arabic to 
 some weird encoding ( e.g. حسن becomes حس٠)
 Also, after some investigation, I came to the realization that this only 
 happens when the lookup field has presentation=layer, if however, the 
 presentation=window then it works normally which leads me to conclude 
 definitely that this is javascript/jQuery issue of parsing input data. More 
 specifically, this is javascript not processing with the correct encoding 
 (unicode in this case). I know this because if I paste the unicode 
 representation directly to the input box then it searches correctly

--
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: Proposal for a GUI/Web debug mode

2012-06-26 Thread Sascha Rodekamp
Hi Brian,
that looks good indeed. But is there a higher value of this debug mode
compared to browser tools like Firebug?

Have a good day
Sascha



2012/6/25 Brian Cunningham nakoma...@gmail.com:
 Hi Dev group,

 I'm very new to OFBiz, so I may be covering old ground. If not, I'd like to
 propose a debug mode for the UI of OFBiz along the lines of that in OLAT.

 If you've never seen it, take a look at:

 http://demo.olat.org/demo/dmz/

  - click the word System Administrator in the dropdown to fill in the
 username/password form.

  - once you are logged in as System Administrator click the tiny green bug
 icon in the upper left corner of the page to turn on debug mode.

  - click the word Debug in the panel that appears.

  - move your mouse around the rest of the screen to see the templates and
 controllers associated with the various parts of the view.

 I find that with this debug mode available I can be productive modifying the
 front end of OLAT right away, whereas after a few weeks of looking at OFBiz
 I still struggle to find/remember where things are located.

 I'd be willing to work on this, but really at this point I'm just wondering
 if others think it's a useful (and feasible) feature, and/or if something
 similar already exists that I just missed.

 Brian


 --
 View this message in context: 
 http://ofbiz.135035.n4.nabble.com/Proposal-for-a-GUI-Web-debug-mode-tp4634080.html
 Sent from the OFBiz - Dev mailing list archive at Nabble.com.



-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


locale lookups

2012-06-19 Thread Sascha Rodekamp
Hi,

as discussed in https://issues.apache.org/jira/browse/OFBIZ-4741 it
turns out, that the locale lookups (i.e. used in
https://demo-trunk.ofbiz.apache.org/content/control/findContent) have
no working filter functionality because the lookup find calls each
time UtilMisc.availableLocales() without filtering.

One solution could be to
- revert the changes to the old drop down list

an alternative is
- create a database table for locales that the Search Services could
be used, that's of course a bigger change

What do you think?

Best regards,
Sascha

-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


[jira] [Closed] (OFBIZ-4633) Contact List Lookup is not working in catalog for products.

2012-06-19 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-4633.
--

Resolution: Fixed
  Assignee: Sascha Rodekamp

Hi Arpit,
thanks for the patch it's committed in turnk @Rev 1351584

 Contact List Lookup is not working in catalog for products.
 ---

 Key: OFBIZ-4633
 URL: https://issues.apache.org/jira/browse/OFBIZ-4633
 Project: OFBiz
  Issue Type: Bug
  Components: product
Affects Versions: SVN trunk
Reporter: Arpit Singh Pandya
Assignee: Sascha Rodekamp
Priority: Minor
 Fix For: SVN trunk

 Attachments: OFBIZ-4633.patch


 Contact List Lookup is not working in catalog for product in Communications 
 tab, when creating new Communication Event for new product. I have tested it 
 on local and on demo-trunk, not sure about other versions.

--
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: locale lookups

2012-06-19 Thread Sascha Rodekamp
Hans added the locale lookups.
@Hans are you ok with reverting the lookups to the original drop down list?


2012/6/19 Ankit Jain ankit.i...@gmail.com:
 Locale Lookup is used in few places only, so I think reverting it to
 dropdown is good instead of creating new entity.


 Regards,
 Ankit Jain




 On Tue, Jun 19, 2012 at 11:57 AM, Sascha Rodekamp 
 sascha.rodekamp.lynx...@googlemail.com wrote:

 Hi,

 as discussed in https://issues.apache.org/jira/browse/OFBIZ-4741 it
 turns out, that the locale lookups (i.e. used in
 https://demo-trunk.ofbiz.apache.org/content/control/findContent) have
 no working filter functionality because the lookup find calls each
 time UtilMisc.availableLocales() without filtering.

 One solution could be to
 - revert the changes to the old drop down list

 an alternative is
 - create a database table for locales that the Search Services could
 be used, that's of course a bigger change

 What do you think?

 Best regards,
 Sascha

 --

 Sascha Rodekamp
     Visit the new german OFBiz Blog: http://www.ofbiz.biz
     Lynx-Consulting GmbH
     Johanniskirchplatz 6
     D-33615 Bielefeld
     http://www.lynx.de




-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


Re: locale lookups

2012-06-19 Thread Sascha Rodekamp
Ok thanks Hans.
Done in Rev 1351614

Have a good day
Sascha

2012/6/19 Hans Bakker mailingl...@antwebsystems.com:
 On 06/19/2012 02:45 PM, Sascha Rodekamp wrote:

 Hans added the locale lookups.
 @Hans are you ok with reverting the lookups to the original drop down
 list?

 sure, if that work better..


 2012/6/19 Ankit Jainankit.i...@gmail.com:

 Locale Lookup is used in few places only, so I think reverting it to
 dropdown is good instead of creating new entity.


 Regards,
 Ankit Jain




 On Tue, Jun 19, 2012 at 11:57 AM, Sascha Rodekamp
 sascha.rodekamp.lynx...@googlemail.com  wrote:

 Hi,

 as discussed in https://issues.apache.org/jira/browse/OFBIZ-4741 it
 turns out, that the locale lookups (i.e. used in
 https://demo-trunk.ofbiz.apache.org/content/control/findContent) have
 no working filter functionality because the lookup find calls each
 time UtilMisc.availableLocales() without filtering.

 One solution could be to
 - revert the changes to the old drop down list

 an alternative is
 - create a database table for locales that the Search Services could
 be used, that's of course a bigger change

 What do you think?

 Best regards,
 Sascha

 --

 Sascha Rodekamp
     Visit the new german OFBiz Blog: http://www.ofbiz.biz
     Lynx-Consulting GmbH
     Johanniskirchplatz 6
     D-33615 Bielefeld
     http://www.lynx.de







-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


[jira] [Closed] (OFBIZ-3504) possible null exception in CompanyHeader.groovy due to incorrect check (fix included)

2012-06-19 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-3504.
--

Resolution: Fixed
  Assignee: Sascha Rodekamp

Already fixed in Rev956402

 possible null exception in CompanyHeader.groovy due to incorrect check (fix 
 included)
 -

 Key: OFBIZ-3504
 URL: https://issues.apache.org/jira/browse/OFBIZ-3504
 Project: OFBiz
  Issue Type: Bug
  Components: order
Affects Versions: SVN trunk
Reporter: Mike Voytovich
Assignee: Sascha Rodekamp
Priority: Minor
 Fix For: SVN trunk

 Attachments: CompanyHeader.groovy.patch

   Original Estimate: 0h
  Remaining Estimate: 0h

 There's a minor bug in 
 applications/order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy 
 which can cause a null exception.
 It should be checking orh.getBillFromParty() for null, instead of 
 orh.getBillToParty(). 
 Here's the fix:
 Index: 
 repos/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy
 ===
 --- 
 repos/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy
(revision 73)
 +++ 
 repos/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy
(revision 74)
 @@ -67,7 +67,7 @@
  orh = new OrderReadHelper(orderHeader);
  // for sales order, the logo party is the BILL_FROM_VENDOR of the 
 order.  If that's not available, we'll use the OrderHeader's ProductStore's 
 payToPartyId
  if (SALES_ORDER.equals(orderHeader.orderTypeId)) {
 -if (orh.getBillToParty()) {
 +if (orh.getBillFromParty()) {
  partyId = orh.getBillFromParty().partyId;
  } else {
  productStore = orderHeader.getRelatedOne(ProductStore);

--
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] [Closed] (OFBIZ-4741) Error in Find Content Lookup

2012-06-18 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-4741.
--

   Resolution: Not A Problem
Fix Version/s: SVN trunk
 Assignee: Sascha Rodekamp

Hi Tom,
seems that the lookup works again, i'm able to select a locale string in the 
trunk when searching for content.

Thanks for reporting.
Sascha


 Error in Find Content Lookup
 

 Key: OFBIZ-4741
 URL: https://issues.apache.org/jira/browse/OFBIZ-4741
 Project: OFBiz
  Issue Type: Bug
  Components: content
Affects Versions: SVN trunk
Reporter: Tom Burns
Assignee: Sascha Rodekamp
Priority: Minor
 Fix For: SVN trunk


 To reproduce:
 In Content Manager select Content
 (https://demo-trunk.ofbiz.apache.org/content/control/findContent)
 Click Lookup Icon for Locale String
 Expected: Lookup Locale dialog
 Actual: Error message
 org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
 [component://common/widget/CommonScreens.xml#LookupDecorator]: 
 java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to 
 java.util.Locale (java.util.LinkedHashMap cannot be cast to java.util.Locale)

--
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-4752) Error in Content CMS click Find

2012-06-18 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4752:


Hi Tom,
seems that you hadn't create your search index. 

{code}
javax.script.ScriptException: org.apache.lucene.index.IndexNotFoundException: 
no segments* file found in 
org.apache.lucene.store.MMapDirectory@/home/ofbiz/trunk/applications/content/index
 
{code}

Go to WebTools - Run Service and run the indexTree service. After creating 
the index the search should work.

Let me now if this work for you.

Have a good day
Sascha

 Error in Content  CMS click Find
 -

 Key: OFBIZ-4752
 URL: https://issues.apache.org/jira/browse/OFBIZ-4752
 Project: OFBiz
  Issue Type: Bug
  Components: content
Affects Versions: SVN trunk
 Environment: demo-trunk
Reporter: Tom Burns
Priority: Minor

 To reproduce:
 In Content Manager 
 (https://demo-trunk.ofbiz.apache.org/content/control/CMSContentFind)
 select CMS then click Find button located above the title CMS Content 
 Find 
 Expected: ?
 Actual: Error message
 org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
 [component://content/widget/cms/CMSScreens.xml#AdminSearch]: 
 java.lang.IllegalArgumentException: Error running script at location 
 [component://content/webapp/content/WEB-INF/actions/cms/Search.groovy]: 
 javax.script.ScriptException: org.apache.lucene.index.IndexNotFoundException: 
 no segments* file found in 
 org.apache.lucene.store.MMapDirectory@/home/ofbiz/trunk/applications/content/index
  lockFactory=org.apache.lucene.store.NativeFSLockFactory@4bbbf4ee: files: 
 [indexhere.txt] (Error running script at location 
 [component://content/webapp/content/WEB-INF/actions/cms/Search.groovy]: 
 javax.script.ScriptException: org.apache.lucene.index.IndexNotFoundException: 
 no segments* file found in 
 org.apache.lucene.store.MMapDirectory@/home/ofbiz/trunk/applications/content/index
  lockFactory=org.apache.lucene.store.NativeFSLockFactory@4bbbf4ee: files: 
 [indexhere.txt])

--
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] [Assigned] (OFBIZ-4752) Error in Content CMS click Find

2012-06-18 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp reassigned OFBIZ-4752:
--

Assignee: Sascha Rodekamp

 Error in Content  CMS click Find
 -

 Key: OFBIZ-4752
 URL: https://issues.apache.org/jira/browse/OFBIZ-4752
 Project: OFBiz
  Issue Type: Bug
  Components: content
Affects Versions: SVN trunk
 Environment: demo-trunk
Reporter: Tom Burns
Assignee: Sascha Rodekamp
Priority: Minor

 To reproduce:
 In Content Manager 
 (https://demo-trunk.ofbiz.apache.org/content/control/CMSContentFind)
 select CMS then click Find button located above the title CMS Content 
 Find 
 Expected: ?
 Actual: Error message
 org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
 [component://content/widget/cms/CMSScreens.xml#AdminSearch]: 
 java.lang.IllegalArgumentException: Error running script at location 
 [component://content/webapp/content/WEB-INF/actions/cms/Search.groovy]: 
 javax.script.ScriptException: org.apache.lucene.index.IndexNotFoundException: 
 no segments* file found in 
 org.apache.lucene.store.MMapDirectory@/home/ofbiz/trunk/applications/content/index
  lockFactory=org.apache.lucene.store.NativeFSLockFactory@4bbbf4ee: files: 
 [indexhere.txt] (Error running script at location 
 [component://content/webapp/content/WEB-INF/actions/cms/Search.groovy]: 
 javax.script.ScriptException: org.apache.lucene.index.IndexNotFoundException: 
 no segments* file found in 
 org.apache.lucene.store.MMapDirectory@/home/ofbiz/trunk/applications/content/index
  lockFactory=org.apache.lucene.store.NativeFSLockFactory@4bbbf4ee: files: 
 [indexhere.txt])

--
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-4741) Error in Find Content Lookup

2012-06-18 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4741:


Hi Ankit, Hi Tom
my button is also displaied (FF13, IE8). 
But you are right the filtering doesn't work. The GetLocaleList.groovy calls 
every time:

{code}
availableLocales = UtilMisc.availableLocales()
{code} 

and gets the full locale list (and not a filtered one).

 Error in Find Content Lookup
 

 Key: OFBIZ-4741
 URL: https://issues.apache.org/jira/browse/OFBIZ-4741
 Project: OFBiz
  Issue Type: Bug
  Components: content
Affects Versions: SVN trunk
Reporter: Tom Burns
Assignee: Sascha Rodekamp
Priority: Minor
 Fix For: SVN trunk

 Attachments: Content Missing Locale Lookup.jpg, Content With Locale 
 Lookup on localhost.jpg


 To reproduce:
 In Content Manager select Content
 (https://demo-trunk.ofbiz.apache.org/content/control/findContent)
 Click Lookup Icon for Locale String
 Expected: Lookup Locale dialog
 Actual: Error message
 org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
 [component://common/widget/CommonScreens.xml#LookupDecorator]: 
 java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to 
 java.util.Locale (java.util.LinkedHashMap cannot be cast to java.util.Locale)

--
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] [Comment Edited] (OFBIZ-4741) Error in Find Content Lookup

2012-06-18 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp edited comment on OFBIZ-4741 at 6/18/12 1:16 PM:
-

Hi Ankit, Hi Tom
my button is also visible (FF13, IE8). 
But you are right the filtering doesn't work. The GetLocaleList.groovy calls 
every time:

{code}
availableLocales = UtilMisc.availableLocales()
{code} 

and gets the full locale list (and not a filtered one).

  was (Author: sascha):
Hi Ankit, Hi Tom
my button is also displaied (FF13, IE8). 
But you are right the filtering doesn't work. The GetLocaleList.groovy calls 
every time:

{code}
availableLocales = UtilMisc.availableLocales()
{code} 

and gets the full locale list (and not a filtered one).
  
 Error in Find Content Lookup
 

 Key: OFBIZ-4741
 URL: https://issues.apache.org/jira/browse/OFBIZ-4741
 Project: OFBiz
  Issue Type: Bug
  Components: content
Affects Versions: SVN trunk
Reporter: Tom Burns
Assignee: Sascha Rodekamp
Priority: Minor
 Fix For: SVN trunk

 Attachments: Content Missing Locale Lookup.jpg, Content With Locale 
 Lookup on localhost.jpg


 To reproduce:
 In Content Manager select Content
 (https://demo-trunk.ofbiz.apache.org/content/control/findContent)
 Click Lookup Icon for Locale String
 Expected: Lookup Locale dialog
 Actual: Error message
 org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
 [component://common/widget/CommonScreens.xml#LookupDecorator]: 
 java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to 
 java.util.Locale (java.util.LinkedHashMap cannot be cast to java.util.Locale)

--
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-4741) Error in Find Content Lookup

2012-06-18 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4741:


Hi Tom, 
yes good point. The Locale lookup form seems useless. 
We should discuss in the ML if we should rollback.



 Error in Find Content Lookup
 

 Key: OFBIZ-4741
 URL: https://issues.apache.org/jira/browse/OFBIZ-4741
 Project: OFBiz
  Issue Type: Bug
  Components: content
Affects Versions: SVN trunk
Reporter: Tom Burns
Assignee: Sascha Rodekamp
Priority: Minor
 Fix For: SVN trunk

 Attachments: Content Missing Locale Lookup.jpg, Content With Locale 
 Lookup on localhost.jpg


 To reproduce:
 In Content Manager select Content
 (https://demo-trunk.ofbiz.apache.org/content/control/findContent)
 Click Lookup Icon for Locale String
 Expected: Lookup Locale dialog
 Actual: Error message
 org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
 [component://common/widget/CommonScreens.xml#LookupDecorator]: 
 java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to 
 java.util.Locale (java.util.LinkedHashMap cannot be cast to java.util.Locale)

--
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-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-06-13 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp updated OFBIZ-4836:
---

Affects Version/s: (was: SVN trunk)
Fix Version/s: (was: SVN trunk)
 Assignee: Sascha Rodekamp

 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Reporter: Pierre Smits
Assignee: Sascha Rodekamp
Priority: Blocker
 Attachments: OFBIZ-4836-jcr-entity.patch, OFBIZ-4836_JCR_MultiTenancy 
 .patch, OFBIZ-4836_JCR_MultiTenancy.patch, jcr-config.xml


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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] [Closed] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-06-13 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-4836.
--

Resolution: Fixed

Issue fixed in jackrabbit20120501 branch @ Rev 1347578

 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Reporter: Pierre Smits
Assignee: Sascha Rodekamp
Priority: Blocker
 Attachments: OFBIZ-4836-jcr-entity.patch, OFBIZ-4836_JCR_MultiTenancy 
 .patch, OFBIZ-4836_JCR_MultiTenancy.patch, jcr-config.xml


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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: Moving framework/jcr out of trunk and back to experimental branch

2012-05-31 Thread Sascha Rodekamp
Hey guys,
sry for the late response.

The new branch is for the further jackrabbit / ofbiz integration, to
keep the new experimental features away from the trunk until they work
reliable. I didn't remove the jcr code form the trunk because the
basic content repository functionality works and can be used.

But it seems that not many people are interested in the JCR feature
(or haven't time to support it). So it's ok to me to remove it from
the trunk for now.

Regards
Sascha

2012/5/26 Jacques Le Roux jacques.le.r...@les7arts.com:
 +1

 I saw that Sascha did it already at
 http://svn.apache.org/viewvc?rev=1332706view=rev
 I don't know why he did not remove from trunk...

 Sascha?

 Jacques

 From: Jacopo Cappellato jacopo.cappell...@hotwaxmedia.com

 Here are some of the arguments for moving it out of trunk:
 * it is still a work in progress, and not really used in OFBiz (afaik
 apart from some examples in the example component)
 * the architecture and goals of this component that should replace or
 enhance the OFBiz content framework are still to be defined
 * a lot of code under jcr component is clearly a work in progress and not
 ready for distribution: several files are missing the license header (have
 they been copied?)
 * most of the jars in it are not listed under the LICENSE and NOTICE files
 * logging from JCR are not properly formatted (and make me think that we
 do not have proper configuration in log4j for it)
 * the development on it is staling

 In summary, I think it was moved too early out of the experimental branch.
 What do you think?

 Kind regards,

 Jacopo






-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


Re: Moving framework/jcr out of trunk and back to experimental branch

2012-05-31 Thread Sascha Rodekamp
Hi Jacopo,
nope the branch is up to date so i don't lose anything if you remove it.



2012/5/31 Jacopo Cappellato jacopo.cappell...@hotwaxmedia.com:
 Thank you Sascha,

 please see inline:

 On May 31, 2012, at 11:23 AM, Sascha Rodekamp wrote:

 Hey guys,
 sry for the late response.

 The new branch is for the further jackrabbit / ofbiz integration, to
 keep the new experimental features away from the trunk until they work
 reliable. I didn't remove the jcr code form the trunk because the
 basic content repository functionality works and can be used.

 But it seems that not many people are interested in the JCR feature
 (or haven't time to support it). So it's ok to me to remove it from
 the trunk for now.

 My concern is not on the number of people interested that could grow over 
 time but on the fact that the code in trunk is still too 
 experimental/incomplete (I have mentioned a few issues earlier in this 
 thread): this is why I think that at the moment the release branch would be a 
 better place for it.
 If I will find time to remove it will be fine or you will loose any work? I 
 mean, is the branch updated or do you have a good checkout of your code?

 Regards,

 Jacopo



 Regards
 Sascha

 2012/5/26 Jacques Le Roux jacques.le.r...@les7arts.com:
 +1

 I saw that Sascha did it already at
 http://svn.apache.org/viewvc?rev=1332706view=rev
 I don't know why he did not remove from trunk...

 Sascha?

 Jacques

 From: Jacopo Cappellato jacopo.cappell...@hotwaxmedia.com

 Here are some of the arguments for moving it out of trunk:
 * it is still a work in progress, and not really used in OFBiz (afaik
 apart from some examples in the example component)
 * the architecture and goals of this component that should replace or
 enhance the OFBiz content framework are still to be defined
 * a lot of code under jcr component is clearly a work in progress and not
 ready for distribution: several files are missing the license header (have
 they been copied?)
 * most of the jars in it are not listed under the LICENSE and NOTICE files
 * logging from JCR are not properly formatted (and make me think that we
 do not have proper configuration in log4j for it)
 * the development on it is staling

 In summary, I think it was moved too early out of the experimental branch.
 What do you think?

 Kind regards,

 Jacopo






 --

 Sascha Rodekamp
     Visit the new german OFBiz Blog: http://www.ofbiz.biz
     Lynx-Consulting GmbH
     Johanniskirchplatz 6
     D-33615 Bielefeld
     http://www.lynx.de




-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


[jira] [Updated] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-05-10 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp updated OFBIZ-4836:
---

Attachment: OFBIZ-4836_JCR_MultiTenancy.patch

Hi,

now we have different repositories for each tenant. 

We have to make sure, that the JcrDataSource is filled for the tenant user. If 
there is no entry in the entity for a certain tenant defined, i create a 
default repository path: /data/jcr/tenantId


 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Blocker
 Fix For: SVN trunk

 Attachments: OFBIZ-4836-jcr-entity.patch, OFBIZ-4836_JCR_MultiTenancy 
 .patch, OFBIZ-4836_JCR_MultiTenancy.patch, jcr-config.xml


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-05-09 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4836:


Hi Pierre,
nope. I think I did something wrong with my tenant setup. I will try to 
reproduce your issue.

Btw. I use now the new jackrabbit branch for development.

Regards,
Sascha

 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Blocker
 Fix For: SVN trunk

 Attachments: OFBIZ-4836-jcr-entity.patch, OFBIZ-4836_JCR_MultiTenancy 
 .patch, jcr-config.xml


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-05-08 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp updated OFBIZ-4836:
---

Attachment: OFBIZ-4836_JCR_MultiTenancy .patch

Hi Pierre, here is a first suggestions for multi tenancy and jackrabbit.

In this version each tenant gets is own repository.

 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Blocker
 Fix For: SVN trunk

 Attachments: OFBIZ-4836-jcr-entity.patch, OFBIZ-4836_JCR_MultiTenancy 
 .patch, jcr-config.xml


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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] [Assigned] (OFBIZ-4846) Trying to cache Visit, but Visit has neverCache-option set

2012-04-26 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp reassigned OFBIZ-4846:
--

Assignee: Sascha Rodekamp

 Trying to cache Visit, but Visit has neverCache-option set
 --

 Key: OFBIZ-4846
 URL: https://issues.apache.org/jira/browse/OFBIZ-4846
 Project: OFBiz
  Issue Type: Improvement
  Components: framework
Affects Versions: SVN trunk
Reporter: Sebastian Leitner
Assignee: Sascha Rodekamp
Priority: Trivial
 Fix For: SVN trunk

 Attachments: ServerHitBin_CacheUsageVisit.patch


 The Visit-entity has the neverCache-option set, but ServerHitBin is trying to 
 cache it anyway. This should be avoided.
 I will attach a patch for this (rather trivial change).

--
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] [Closed] (OFBIZ-4846) Trying to cache Visit, but Visit has neverCache-option set

2012-04-26 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp closed OFBIZ-4846.
--

Resolution: Fixed

Thanks Sebastian your patch is in
Trunk @Rev 1330768

 Trying to cache Visit, but Visit has neverCache-option set
 --

 Key: OFBIZ-4846
 URL: https://issues.apache.org/jira/browse/OFBIZ-4846
 Project: OFBiz
  Issue Type: Improvement
  Components: framework
Affects Versions: SVN trunk
Reporter: Sebastian Leitner
Assignee: Sascha Rodekamp
Priority: Trivial
 Fix For: SVN trunk

 Attachments: ServerHitBin_CacheUsageVisit.patch


 The Visit-entity has the neverCache-option set, but ServerHitBin is trying to 
 cache it anyway. This should be avoided.
 I will attach a patch for this (rather trivial change).

--
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: r1330779 - in /ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader: JCRContainer.java JCRFactory.java JCRFactoryUtil.java JCRJndi.java RepositoryFactory.java RepositoryLoader.java jackr

2012-04-26 Thread Sascha Rodekamp
, (Repository)
 JNDIContextFactory.getInitialContext(localjndi).lookup(jndiName));
 +                    repos.put(name, (Repository)
 JNDIContextFactory.getInitialContext(default).lookup(jndiName));
                 } catch (NamingException e) {
                     Debug.logError(e, module);
                 } catch (GenericConfigException e) {

 Modified:
 ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/jackrabbit/JCRFactoryImpl.java
 URL:
 http://svn.apache.org/viewvc/ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/jackrabbit/JCRFactoryImpl.java?rev=1330779r1=1330778r2=1330779view=diff

 ==
 ---
 ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/jackrabbit/JCRFactoryImpl.java
 (original)
 +++
 ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/jackrabbit/JCRFactoryImpl.java
 Thu Apr 26 11:18:51 2012
 @@ -47,7 +47,9 @@ import org.apache.jackrabbit.spi.QNodeTy
  import org.ofbiz.base.util.Debug;
  import org.ofbiz.base.util.UtilValidate;
  import org.ofbiz.base.util.UtilXml;
 +import org.ofbiz.entity.Delegator;
  import org.ofbiz.jcr.loader.JCRFactory;
 +import org.ofbiz.jcr.loader.JCRJndi;
  import org.ofbiz.jcr.orm.jackrabbit.data.JackrabbitArticle;
  import org.ofbiz.jcr.orm.jackrabbit.file.JackrabbitFile;
  import org.ofbiz.jcr.orm.jackrabbit.file.JackrabbitFolder;
 @@ -71,21 +73,28 @@ public class JCRFactoryImpl implements J

     protected static Repository repository = null;
     protected Session session = null;
 +
     protected static Mapper mapper = null;

 +    private JCRJndi jndi;
 +
     /*
      * (non-Javadoc)
      *
      * @see org.ofbiz.jcr.JCRFactory#initialize(org.w3c.dom.Element)
      */
     @Override
 -    public void initialize(Element configRootElement) throws
 RepositoryException {
 +    public void initialize(Element configRootElement, Element
 factoryImplDefinition) throws RepositoryException {
 +        homeDir = UtilXml.childElementAttribute(configRootElement,
 home-dir, path, runtime/data/jcr/);
 +        String factoryJndiName =
 factoryImplDefinition.getAttribute(jndi-name);
 +
 +        jndi = new JCRJndi(jackrabbitConfigFile, factoryJndiName,
 homeDir);
 +
         Element childElement =
 UtilXml.firstChildElement(configRootElement, jcr-credentials);
         CREDENTIALS_USERNAME = UtilXml.elementAttribute(childElement,
 username, null);
         CREDENTIALS_PASSWORD = UtilXml.elementAttribute(childElement,
 password, null).toCharArray();

         jackrabbitConfigFile =
 UtilXml.childElementAttribute(configRootElement, config-file-path,
 path, framework/jcr/config/jackrabbit.xml);
 -        homeDir = UtilXml.childElementAttribute(configRootElement,
 home-dir, path, runtime/data/jcr/);
     }

     /*
 @@ -113,6 +122,8 @@ public class JCRFactoryImpl implements J
         classes.add(JackrabbitArticle.class);

         mapper = new AnnotationMapperImpl(classes);
 +
 +        jndi.registerJcrToJndi();
     }

     /*
 @@ -136,6 +147,8 @@ public class JCRFactoryImpl implements J
                 }
             }
         }
 +
 +        jndi.unbindRepository();
     }

     /*
 @@ -186,7 +199,7 @@ public class JCRFactoryImpl implements J
     /*
      * Register some new node types
      */
 -    protected void registerNodeTypes(Session session) throws
 InvalidNodeTypeDefException, javax.jcr.RepositoryException, IOException {
 +    private void registerNodeTypes(Session session) throws
 InvalidNodeTypeDefException, javax.jcr.RepositoryException, IOException {
         InputStream xml = new FileInputStream(CUSTOM_NODE_TYPES);

         // HINT: throws InvalidNodeTypeDefException, IOException






-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


Re: svn commit: r1330779 - in /ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader: JCRContainer.java JCRFactory.java JCRFactoryUtil.java JCRJndi.java RepositoryFactory.java RepositoryLoader.java jackr

2012-04-26 Thread Sascha Rodekamp
Hm after the merge i was not able to sync it again against the trunk.
Seems that something went wrong during the reintegration. Feel free to
try... but before spending to much time i would suggest to create a
new one.

btw. the nt:unstructured issue should be solved.

2012/4/26 Pierre Smits pierre.sm...@gmail.com:
 Sascha,

 We have branch jackrabbit20100709 in svn. Can't we use that one?

 Regards,

 Pierre

 Op 26 april 2012 15:58 schreef Sascha Rodekamp 
 sascha.rodekamp.lynx...@googlemail.com het volgende:

 Hi Pierre,
 the last patch had no functional changes. It just prepares the
 repository loading for the following changes.

 That the nt:unstructured node is not found seems do be another issue.
 I will check that.

 For further implementations we definitely should create a new branch.
 But before creating it i wanted to clean up some code parts. By the
 end of this week (tomorrow) i will create one, is this ok for you?

 Thanks and regards,
 Sascha


 2012/4/26 Pierre Smits pierre.sm...@gmail.com:
  Sascha,
 
  I did a small test against this revision.
 
  Creating content in jcr works ok, but is still visible to other tenants.
 
  Upload of a file triggered following:
 
  The Following Errors Occurred:
 
  Error calling event: org.ofbiz.webapp.event.EventHandlerException:
 Problems
  processing event:
  org.apache.jackrabbit.ocm.exception.IncorrectPersistentClassException:
 Node
  type: nt:unstructured has no descriptor. (Node type: nt:unstructured has
 no
  descriptor.)
 
  Although the previous situation wasn't perfect, maybe we should implement
  and test first in the jcr branch before bringing it to trunk.
 
  Regards,
 
  Pierre
 
  Op 26 april 2012 13:18 schreef sascharodek...@apache.org het volgende:
 
  Author: sascharodekamp
  Date: Thu Apr 26 11:18:51 2012
  New Revision: 1330779
 
  URL: http://svn.apache.org/viewvc?rev=1330779view=rev
  Log:
  Clean Up the repository loding code. No functional changes.
 
  Added:
     ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/JCRJndi.java
 (with
  props)
  Modified:
     ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/JCRContainer.java
     ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/JCRFactory.java
 
  ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/JCRFactoryUtil.java
 
 
  ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/RepositoryFactory.java
 
  ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/RepositoryLoader.java
 
 
  ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/jackrabbit/JCRFactoryImpl.java
 
  Modified:
  ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/JCRContainer.java
  URL:
 
 http://svn.apache.org/viewvc/ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/JCRContainer.java?rev=1330779r1=1330778r2=1330779view=diff
 
 
 ==
  --- ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/JCRContainer.java
  (original)
  +++ ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/loader/JCRContainer.java
  Thu Apr 26 11:18:51 2012
  @@ -18,20 +18,13 @@
 
 
  ***/
   package org.ofbiz.jcr.loader;
 
  -import javax.jcr.Repository;
   import javax.jcr.RepositoryException;
  -import javax.naming.Context;
  -import javax.naming.NamingException;
  -import javax.naming.Reference;
  -import javax.naming.StringRefAddr;
 
   import org.ofbiz.base.config.GenericConfigException;
   import org.ofbiz.base.config.ResourceLoader;
   import org.ofbiz.base.container.Container;
   import org.ofbiz.base.container.ContainerConfig;
   import org.ofbiz.base.container.ContainerException;
  -import org.ofbiz.base.util.Debug;
  -import org.ofbiz.base.util.JNDIContextFactory;
   import org.ofbiz.base.util.UtilXml;
   import org.w3c.dom.Element;
 
  @@ -44,18 +37,9 @@ public class JCRContainer implements Con
      public static final String module = JCRContainer.class.getName();
 
      public static final String DEFAULT_JCR_CONFIG_PATH =
  framework/jcr/config/jcr-config.xml;
  -    public static final String REP_HOME_DIR = 0;
  -    public static final String CONFIG_FILE_PATH = 1;
  -
  -    private static String jndiName = null;
  -    private static String factoryClassName = null;
  -    private static String jcrContextName = null;
 
      private static String configFilePath = null;
      private boolean removeRepositoryOnShutdown = false;
  -    private String homeDir = null;
  -
  -    Context jndiContext = null;
 
      /*
       * (non-Javadoc)
  @@ -65,52 +49,12 @@ public class JCRContainer implements Con
       */
      @Override
      public void init(String[] args, String configFile) throws
  ContainerException {
  -        // get the container configuration
  -        ContainerConfig.Container cc =
  ContainerConfig.getContainer(jcr-container, configFile);
  -        if (cc == null) {
  -            throw new ContainerException(No jcr-container
 configuration
  found in container config

[jira] [Commented] (OFBIZ-4841) Have a workspace for each application/component in a repository

2012-04-25 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4841:


Separating the concerns in the repository by using different workspaces is, 
IMHO, a good approach. That could make maintenance of the repository and right 
management easier. 


 Have a workspace for each application/component in a repository
 ---

 Key: OFBIZ-4841
 URL: https://issues.apache.org/jira/browse/OFBIZ-4841
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Critical

 In order to separate access to jcr content each application should have its 
 own workspace in the repository.

--
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-4842) Write configuration documentation for the Jackrabbit integration

2012-04-25 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4842:


I started a configuration document: 
https://cwiki.apache.org/confluence/display/OFBIZ/Configuration+document

 Write configuration documentation for the Jackrabbit integration
 

 Key: OFBIZ-4842
 URL: https://issues.apache.org/jira/browse/OFBIZ-4842
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
 Fix For: SVN trunk


 Good documentation on the implementation and configuration assist the 
 adoption of the solution

--
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-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-04-24 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp updated OFBIZ-4836:
---

Issue Type: Sub-task  (was: Bug)
Parent: OFBIZ-4659

 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Blocker
 Fix For: SVN trunk


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-04-24 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4836:


Hi Pierre, 
yes that's possible. A multi-tenancy support isn't implemented yet. 
You welcome to provide a patch. 

Which information do we need in a content node to provide multi-tenancy?
 

 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Blocker
 Fix For: SVN trunk


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-04-24 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4836:


Hi Pierre,
yes i would also go this way. A separate repository for each tenant. Having 
tenant nodes would be a high effort and a lot of code. A lot of code means 
many potential security issues :-)






 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Blocker
 Fix For: SVN trunk


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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-4840) Make homedir for JCR configurable

2012-04-24 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4840:


Hi,
the homedir can be configured in the jcr-config.xml file. The 
JCRFactoryImpl.java read the homedir from the xml file.


 Make homedir for JCR configurable
 -

 Key: OFBIZ-4840
 URL: https://issues.apache.org/jira/browse/OFBIZ-4840
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Critical
 Fix For: SVN trunk


 Currently the homedir for jcr is set in JCRFactoryImpl.java.
 This should be set through a property in a configuration file.

--
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-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-04-24 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4836:


Hi Pierre,
not sure if i understand you right. Why we have to inject the delegator in the 
homedir?

I'm looking for a way to configure different homedirs in the jcr-config.xml.

Somthing like:
{code}
!-- jcr home directory --
home-dirs
home-dir path=runtime/data/jcr_1/ /
home-dir path=runtime/data/jcr_2/ /
/home-dirs
{code}

Than i'm able to load a repository instance for each tenant. But I'm not sure 
where to store the reference between the tenant and his repository instance, do 
you have an idea?


 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Blocker
 Fix For: SVN trunk


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-04-24 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp updated OFBIZ-4836:
---

Attachment: jcr-config.xml

Maybe it's better to extend the whole config not only the home dir. That gives 
us the possibility to use a tenant independent JCR implementation.
What do you think?

 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Blocker
 Fix For: SVN trunk

 Attachments: jcr-config.xml


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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] [Issue Comment Edited] (OFBIZ-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-04-24 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp edited comment on OFBIZ-4836 at 4/24/12 2:09 PM:
-

Maybe it's better to extend the whole config not only the home dir (see 
jcr-config.xml file). That gives us the possibility to use a tenant independent 
JCR implementation.
What do you think?

  was (Author: sascha):
Maybe it's better to extend the whole config not only the home dir. That 
gives us the possibility to use a tenant independent JCR implementation.
What do you think?
  
 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Blocker
 Fix For: SVN trunk

 Attachments: jcr-config.xml


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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-4840) Make homedir for JCR configurable

2012-04-24 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4840:


Nevermind.

The last one is the default value. 
{code}
homeDir = UtilXml.childElementAttribute(configRootElement, home-dir, path, 
runtime/data/jcr/);
{code}

 Make homedir for JCR configurable
 -

 Key: OFBIZ-4840
 URL: https://issues.apache.org/jira/browse/OFBIZ-4840
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Critical
 Fix For: SVN trunk


 Currently the homedir for jcr is set in JCRFactoryImpl.java.
 This should be set through a property in a configuration file.

--
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-4836) Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz

2012-04-24 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4836:


Ah ok Pierre i got it. Maybe this will work also for the repository. I will try 
a few things and come back to you.

Best Regards
Sascha


 Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
 -

 Key: OFBIZ-4836
 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
Reporter: Pierre Smits
Priority: Blocker
 Fix For: SVN trunk

 Attachments: jcr-config.xml


 When having multiple tenants and one of the users (of a tenant) creates 
 (uploads) a file to JCR then this file is visible to all users of all tenants

--
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: Removing the dependency on build from all the run-test* ant targets

2012-04-23 Thread Sascha Rodekamp
+1

Sascha 

Am 23.04.2012 um 17:56 schrieb Jacques Le Roux jacques.le.r...@les7arts.com:

 +1
 
 Jacques
 
 From: Pierre Smits pierre.sm...@gmail.com
 +1
 In my CI setup for automated OFBiz testing the system, after having checked
 out the latest from trunk automatically, each individual test suite
 triggered has to rebuild. Which only takes a minute or so. But for all
 executed test runs together it adds up to about 15 mins.
 So, each minute saved is a minute gained.
 Regards,
 Pierre
 Op 23 april 2012 15:21 schreef Jacopo Cappellato 
 jacopo.cappell...@hotwaxmedia.com het volgende:
 What do you think? In order to run most of the tests successfully you need
 to run load-data that already depends on build...
 
 Here is the code change I would like to commit:
 
 Index: build.xml
 ===
 --- build.xml   (revision 1328357)
 +++ build.xml   (working copy)
 @@ -868,7 +868,7 @@
antcall target=load-admin-user-login/
/target
 
 -target name=run-tests depends=build
 +target name=run-tests
  description=Run OFBiz default tests; you have to manually
 execute 'ant load-demo' before and see results in
 runtime/logs/test-results/html/all-tests.html.
java jar=ofbiz.jar fork=true resultproperty=test.result
jvmarg value=${memory.initial.param}/
 @@ -910,7 +910,7 @@
env key=LC_ALL value=C/
/java
/target
 -target name=run-test depends=build
 +target name=run-test
  description=Run a single test, syntax eg: ant run-test
 -Dtest.component=service -Dtest.case=service-soap-tests
fail unless=test.componenttest.component is a required
 parameter: -Dtest.component=componentname/fail
fail unless=test.casetest.case is a required parameter:
 -Dtest.case=testcasename/fail
 @@ -936,7 +936,7 @@
/condition
/fail
/target
 -target name=run-test-suite depends=build
 +target name=run-test-suite
description=Run a single test suite, syntax eg: ant
 run-test-suite -Dtest.component=mycomponent -Dtest.suiteName=mytests
fail unless=test.componenttest.component is a required
 parameter: -Dtest.component=componentname/fail
fail unless=test.suiteNametest.suiteName is a required
 parameter: -Dtest.suiteName=testsuitename/fail
 
 Jacopo
 
 
 


Re: jackrabbit test cases failing?

2012-04-19 Thread Sascha Rodekamp
Thanks guys, is fixed. Lessen learned: never rely on the internal
eclipse build when running unit tests within eclipse :-)

2012/4/19 Hans Bakker mailingl...@antwebsystems.com:
 Yes, I confirm, they do fail

 (Welcome back Adam!)

 On 04/19/2012 02:08 AM, Adam Heath wrote:

 See attached file.





-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


Re: svn commit: r1327835 - in /ofbiz/trunk/framework: jcr/src/org/ofbiz/jcr/test/JackrabbitTests.java widget/src/org/ofbiz/widget/WidgetWorker.java

2012-04-19 Thread Sascha Rodekamp
Hi Jacopo, year right, ups. The Widget Worker sneaked in the commit list ;-)

2012/4/19 Jacopo Cappellato jacopo.cappell...@hotwaxmedia.com:
 Hi Sascha,

 is this the right way to fix the test?

 Jacopo

 On Apr 19, 2012, at 7:58 AM, sascharodek...@apache.org wrote:

 Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
 URL: 
 http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=1327835r1=1327834r2=1327835view=diff
 ==
 --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java 
 (original)
 +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java Thu 
 Apr 19 05:58:29 2012
 @@ -379,10 +379,14 @@ public class WidgetWorker {
                     returnValue = df.format((java.util.Date) retVal);
                 } else {
                     try {
 -                        returnValue = URLEncoder.encode(retVal.toString(), 
 Charset.forName(UTF-8).displayName());
 +                        returnValue = URLEncoder.encode(retVal.toString(), 
 Charset.forName(ISO-8859-1).displayName());
                     } catch (UnsupportedEncodingException e) {
                         Debug.logError(e, module);
                     }
 +
 +                    //StringUtil.SimpleEncoder simpleEncoder = 
 (StringUtil.SimpleEncoder) context.get(simpleEncoder);
 +                    //returnValue = simpleEncoder.encode(retVal.toString());
 +
                 }
                 return returnValue;
             } else {





-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


Re: Upgrading Freemarker in our release branches

2012-04-19 Thread Sascha Rodekamp
until we haven't any related issues which are caused by the update +1 from me.
There are really a few helpful bugfixes in the release.

2012/4/19 Rishi Solanki rishisolan...@gmail.com:
 I checked at the FreeMarker release, the new version is able to handle
 concurrent access of templates in multithreading environment. Which in turn
 gives significant performance improvement. So from my side Big +1 for
 upgrading the jars on release.

 Thanks!

 --
 Rishi Solanki
 Manager, Enterprise Software Development
 HotWax Media Pvt. Ltd.
 Direct: +91-9893287847
 http://www.hotwaxmedia.com


 On Thu, Apr 19, 2012 at 1:30 PM, Jacques Le Roux 
 jacques.le.r...@les7arts.com wrote:

 +0

 As long as it's has  been sufficiently tested I see no pb

 Jacques

 From: Jacopo Cappellato 
 jacopo.cappellato@**hotwaxmedia.comjacopo.cappell...@hotwaxmedia.com
 

  Hi all,

 there are a few interesting bug fixes and performance improvements
 between Freemarker 2.3.10, currently used in our release branches, and
 2.3.19, currently used in trunk.
 Is it ok if I upgrade 10.04 and 11.04to use freemarker-2.3.19.jar?

 Kind regards,

 Jacopo






-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


Re: svn commit: r1327835 - in /ofbiz/trunk/framework: jcr/src/org/ofbiz/jcr/test/JackrabbitTests.java widget/src/org/ofbiz/widget/WidgetWorker.java

2012-04-19 Thread Sascha Rodekamp
Hi Adam, yea the Worker class sneaked accidentally in the commit list. It has 
been removed already.  

Am 19.04.2012 um 17:11 schrieb Adam Heath doo...@brainfood.com:

 On 04/19/2012 12:58 AM, sascharodek...@apache.org wrote:
 Author: sascharodekamp
 Date: Thu Apr 19 05:58:29 2012
 New Revision: 1327835
 
 URL: http://svn.apache.org/viewvc?rev=1327835view=rev
 Log:
 Fix jackrabbit unit testing.
 
 Modified:
ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/test/JackrabbitTests.java
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
 
 Modified: 
 ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/test/JackrabbitTests.java
 URL: 
 http://svn.apache.org/viewvc/ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/test/JackrabbitTests.java?rev=1327835r1=1327834r2=1327835view=diff
 ==
 --- ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/test/JackrabbitTests.java 
 (original)
 +++ ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/test/JackrabbitTests.java 
 Thu Apr 19 05:58:29 2012
 @@ -18,18 +18,13 @@ under the License.
  */
 package org.ofbiz.jcr.test;
 
 -import java.io.File;
 -import java.io.FileInputStream;
 -import java.io.InputStream;
 import java.util.GregorianCalendar;
 -import java.util.List;
 import java.util.Map;
 
 import javax.jcr.ItemExistsException;
 import javax.jcr.PathNotFoundException;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 -import javax.jcr.query.QueryResult;
 
 import javolution.util.FastMap;
 import net.sf.json.JSONArray;
 @@ -46,9 +41,7 @@ import org.ofbiz.jcr.access.JcrRepositor
 import org.ofbiz.jcr.access.jackrabbit.ContentWriterJackrabbit;
 import org.ofbiz.jcr.access.jackrabbit.JackrabbitRepositoryAccessor;
 import org.ofbiz.jcr.api.JcrDataHelper;
 -import org.ofbiz.jcr.api.JcrFileHelper;
 import org.ofbiz.jcr.api.jackrabbit.JackrabbitArticleHelper;
 -import org.ofbiz.jcr.api.jackrabbit.JackrabbitFileHelper;
 import org.ofbiz.jcr.loader.JCRFactory;
 import org.ofbiz.jcr.loader.JCRFactoryUtil;
 import org.ofbiz.jcr.loader.jackrabbit.JCRFactoryImpl;
 
 This change doesn't fix the unit testing.  It should be a separate commit.
 
 
 
 Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
 URL: 
 http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=1327835r1=1327834r2=1327835view=diff
 ==
 --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java 
 (original)
 +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java Thu 
 Apr 19 05:58:29 2012
 @@ -379,10 +379,14 @@ public class WidgetWorker {
 returnValue = df.format((java.util.Date) retVal);
 } else {
 try {
 -returnValue = URLEncoder.encode(retVal.toString(), 
 Charset.forName(UTF-8).displayName());
 +returnValue = URLEncoder.encode(retVal.toString(), 
 Charset.forName(ISO-8859-1).displayName());
 
 Er, that can't be right.
 
 } catch (UnsupportedEncodingException e) {
 Debug.logError(e, module);
 }
 +
 +//StringUtil.SimpleEncoder simpleEncoder = 
 (StringUtil.SimpleEncoder) context.get(simpleEncoder);
 +//returnValue = simpleEncoder.encode(retVal.toString());
 +
 
 Why did you check this in?
 
 
 }
 return returnValue;
 } else {
 
 
 


[jira] [Assigned] (OFBIZ-4821) Form-Widget : Error in rendering Reset field.

2012-04-18 Thread Sascha Rodekamp (Assigned) (JIRA)

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

Sascha Rodekamp reassigned OFBIZ-4821:
--

Assignee: Sascha Rodekamp

 Form-Widget : Error in rendering Reset field.
 -

 Key: OFBIZ-4821
 URL: https://issues.apache.org/jira/browse/OFBIZ-4821
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release 10.04, Release Branch 11.04, SVN trunk
Reporter: Sumit Pandit
Assignee: Sascha Rodekamp
Priority: Blocker
 Attachments: MacroFormRenderer.patch


 MacroFormRenderer.renderResetField contains a missing entry when appending 
 title to renderResetField's StringWritter.
 MacroFormRenderer.java line# 1202
 sr.append( title=\);
 Where it should be 
 sr.append(\ title=\);
 Because of above reset/ button is not displaying on the screen. At back end 
 it is returning Freemarker parser exception.
 BTW it is one line change, if required I will submit the patch shortly.
 --
 Thanks and Regards
 Sumit Pandit

--
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] [Closed] (OFBIZ-4821) Form-Widget : Error in rendering Reset field.

2012-04-18 Thread Sascha Rodekamp (Closed) (JIRA)

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

Sascha Rodekamp closed OFBIZ-4821.
--

   Resolution: Fixed
Fix Version/s: Release 11.04.01
   SVN trunk
   Release Branch 10.04

Thanks Sumit,

your patch is in
Trunk @Rev 1327409
11.04 @Rev 1327407
10.04 @Rev 1327408

Have a good day.

 Form-Widget : Error in rendering Reset field.
 -

 Key: OFBIZ-4821
 URL: https://issues.apache.org/jira/browse/OFBIZ-4821
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release 10.04, Release Branch 11.04, SVN trunk
Reporter: Sumit Pandit
Assignee: Sascha Rodekamp
Priority: Blocker
 Fix For: Release Branch 10.04, SVN trunk, Release 11.04.01

 Attachments: MacroFormRenderer.patch


 MacroFormRenderer.renderResetField contains a missing entry when appending 
 title to renderResetField's StringWritter.
 MacroFormRenderer.java line# 1202
 sr.append( title=\);
 Where it should be 
 sr.append(\ title=\);
 Because of above reset/ button is not displaying on the screen. At back end 
 it is returning Freemarker parser exception.
 BTW it is one line change, if required I will submit the patch shortly.
 --
 Thanks and Regards
 Sumit Pandit

--
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-4812) Avoid the ClassNotFoundException on the jdbc driver used by jackrabbit component

2012-04-17 Thread Sascha Rodekamp (Commented) (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4812:


Hi Francis,

I would avoid to patch single jar files, that increases the maintenance effort.

As Felix said using Class.forName(String) is problematic in OSGi scenarios. So 
i will refrain from replacing the jar file and prefer to wait for an official 
solution.

But anyway thanks for working on this issue.

Any options?



 Avoid the ClassNotFoundException on the jdbc driver used by jackrabbit 
 component
 

 Key: OFBIZ-4812
 URL: https://issues.apache.org/jira/browse/OFBIZ-4812
 Project: OFBiz
  Issue Type: Improvement
  Components: framework
Affects Versions: SVN trunk
 Environment: WXP SP3, Sun SDK 1.6.0_30, PostgreSQL 9.2
Reporter: Francis ANDRE
 Attachments: jackrabbit-core-2.3.3.jar


 Hi
 When running ofbiz under Eclipse with the sources directories as classpath 
 and not the ofbiz-*.jar, the jcr component fails to load the jdbc driver 
 because jackrabbit-core is using Class.forName() instead of using the current 
 classloader of the thread. see https://issues.apache.org/jira/browse/JCR-3288
 I provide with this issue a jackrabbit-core-2.3.3.jar patched as described in 
 the JCR-3288 issue.
 Rgds

--
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-4812) Avoid the ClassNotFoundException on the jdbc driver used by jackrabbit component

2012-04-17 Thread Sascha Rodekamp (Updated) (JIRA)

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

Sascha Rodekamp updated OFBIZ-4812:
---

Issue Type: Sub-task  (was: Improvement)
Parent: OFBIZ-4659

 Avoid the ClassNotFoundException on the jdbc driver used by jackrabbit 
 component
 

 Key: OFBIZ-4812
 URL: https://issues.apache.org/jira/browse/OFBIZ-4812
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
 Environment: WXP SP3, Sun SDK 1.6.0_30, PostgreSQL 9.2
Reporter: Francis ANDRE
 Attachments: jackrabbit-core-2.3.3.jar


 Hi
 When running ofbiz under Eclipse with the sources directories as classpath 
 and not the ofbiz-*.jar, the jcr component fails to load the jdbc driver 
 because jackrabbit-core is using Class.forName() instead of using the current 
 classloader of the thread. see https://issues.apache.org/jira/browse/JCR-3288
 I provide with this issue a jackrabbit-core-2.3.3.jar patched as described in 
 the JCR-3288 issue.
 Rgds

--
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-4812) Avoid the ClassNotFoundException on the jdbc driver used by jackrabbit component

2012-04-17 Thread Sascha Rodekamp (Commented) (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4812:


Hm the debug mode also works when starting ofbiz within eclipse, no problems 
with that. But i use the ofbiz.jar in my classpath and define the sources under 
source.

 Avoid the ClassNotFoundException on the jdbc driver used by jackrabbit 
 component
 

 Key: OFBIZ-4812
 URL: https://issues.apache.org/jira/browse/OFBIZ-4812
 Project: OFBiz
  Issue Type: Sub-task
  Components: framework
Affects Versions: SVN trunk
 Environment: WXP SP3, Sun SDK 1.6.0_30, PostgreSQL 9.2
Reporter: Francis ANDRE
 Attachments: jackrabbit-core-2.3.3.jar


 Hi
 When running ofbiz under Eclipse with the sources directories as classpath 
 and not the ofbiz-*.jar, the jcr component fails to load the jdbc driver 
 because jackrabbit-core is using Class.forName() instead of using the current 
 classloader of the thread. see https://issues.apache.org/jira/browse/JCR-3288
 I provide with this issue a jackrabbit-core-2.3.3.jar patched as described in 
 the JCR-3288 issue.
 Rgds

--
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] [Assigned] (OFBIZ-4810) createPartyContactMech: check for infoString is done without using the contactMechTypeId

2012-04-16 Thread Sascha Rodekamp (Assigned) (JIRA)

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

Sascha Rodekamp reassigned OFBIZ-4810:
--

Assignee: Sascha Rodekamp

 createPartyContactMech: check for infoString is done without using the 
 contactMechTypeId
 

 Key: OFBIZ-4810
 URL: https://issues.apache.org/jira/browse/OFBIZ-4810
 Project: OFBiz
  Issue Type: Bug
  Components: party
Affects Versions: SVN trunk
Reporter: Michael Brohl
Assignee: Sascha Rodekamp
 Fix For: SVN trunk

 Attachments: OFBIZ-4810_createPartyContactMech_check_infoString.patch


 The check for an existing infoString should use the contactMechTypeId.
 I will provide a patch.

--
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-4810) createPartyContactMech: check for infoString is done without using the contactMechTypeId

2012-04-16 Thread Sascha Rodekamp (Commented) (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4810:


Hi Michael, hi Jacques

i committed a modified version of the patch.
The part Jacques recommended is used by the condition list. The comments where 
made extendedly, i removed them. 

In Trunk @Rev 1326567

Have a good day,
Sascha

 createPartyContactMech: check for infoString is done without using the 
 contactMechTypeId
 

 Key: OFBIZ-4810
 URL: https://issues.apache.org/jira/browse/OFBIZ-4810
 Project: OFBiz
  Issue Type: Bug
  Components: party
Affects Versions: SVN trunk
Reporter: Michael Brohl
Assignee: Sascha Rodekamp
 Fix For: SVN trunk

 Attachments: OFBIZ-4810_createPartyContactMech_check_infoString.patch


 The check for an existing infoString should use the contactMechTypeId.
 I will provide a patch.

--
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-2628) No Url encoding for get parameters

2012-04-04 Thread Sascha Rodekamp (Commented) (JIRA)

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

Sascha Rodekamp commented on OFBIZ-2628:


Hi Markus, hi Jacques

i got also a problem with german umlauts when loading a category with the name 
Bäume. The 'ä' is not encoded correctly. 

But the issue OFBIZ-2837 has another problem. I tested this with the 
keywordsearchbox in the catalog screens. 
The Reqeust Handler calls the render process which calls a method 
UtilHttp.getParameterMap, this method extracts the parameters from the 
request object. At the end of this all parameter values are canonicalized with 
the defaultWebEncoder. The result is that the 02S%000 search string becomes 
02S 0. We do this encoding for security reasons, i'm wondering what we can do 
here to provide correct search strings and don't open a security hole?
Any suggestions?

Have a good day,
Sascha


 

 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
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-2628) No Url encoding for get parameters

2012-04-04 Thread Sascha Rodekamp (Commented) (JIRA)

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

Sascha Rodekamp commented on OFBIZ-2628:


Setting the encoding to *ISO-8859-1* solves the umlauts problem.

Anyone an idea why the URL UTF-8 encoding doesn't work properly? 
Seems that the browser does some internal decoding here?! Moving away from 
UTF-8 isn't a good idea!

Anyway changing the encoding to ISO-8859-1 makes it, for me, possible to create 
and use categories like: Bücher, D+Ä ... 

{code:title=WidgetWorker.java line: 382|borderStyle=solid}
returnValue = URLEncoder.encode(retVal.toString(), 
Charset.forName(ISO-8859-1).displayName());
{code}


 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
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] [Closed] (OFBIZ-4762) runSubscriptionAutoReorders places duplicate orderIds

2012-03-29 Thread Sascha Rodekamp (Closed) (JIRA)

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

Sascha Rodekamp closed OFBIZ-4762.
--

   Resolution: Fixed
Fix Version/s: SVN trunk
   Release Branch 11.04
   Release Branch 10.04

Thanks Sebastian,
your Patch is in:
trunk @Rev 1306732
11.04 @Rev 1306731
10.04 @Rev 1306729

Have a good day!

 runSubscriptionAutoReorders places duplicate orderIds
 -

 Key: OFBIZ-4762
 URL: https://issues.apache.org/jira/browse/OFBIZ-4762
 Project: OFBiz
  Issue Type: Bug
  Components: order
Affects Versions: SVN trunk
Reporter: Sebastian Leitner
Assignee: Sascha Rodekamp
Priority: Minor
 Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk

 Attachments: OrderServices.java.patch


 The services runSubscriptionAutoReorders runs every midnight by default. It 
 checks for expired subscriptions and places a new order to extend them. It 
 fills up a cart from the previous order and places the order.
 It also sets the orderId of the old order at the cart, which is used during 
 creation of the new order. According to this, no new order can be placed 
 because of duplicate-entry exceptions from the database.
 I will attach a patch for this.
 - Sebastian

--
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] [Closed] (OFBIZ-4744) ProductStoreCartAwareEvents: wrong check for website in setSessionProductStore

2012-03-29 Thread Sascha Rodekamp (Closed) (JIRA)

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

Sascha Rodekamp closed OFBIZ-4744.
--

   Resolution: Fixed
Fix Version/s: Release Branch 11.04
   Release Branch 10.04

Thanks Michael,
your Patch is in 
Trunk @Rev: 1306742
11.04 @Rev: 1306740
10.04 @Rev: 1306739

Have a good day!

 ProductStoreCartAwareEvents: wrong check for website in setSessionProductStore
 --

 Key: OFBIZ-4744
 URL: https://issues.apache.org/jira/browse/OFBIZ-4744
 Project: OFBiz
  Issue Type: Bug
  Components: order, specialpurpose/ecommerce
Affects Versions: SVN trunk
Reporter: Michael Brohl
Assignee: Sascha Rodekamp
 Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk

 Attachments: 
 OFBIZ-4744_ProductStoreCartAwareEvents_wrong_check_for_website.patch

   Original Estimate: 5m
  Remaining Estimate: 5m

 There's a duplicate check if the productStore is null instead of checking 
 productStore and website in 
 ProductStoreCartAwareEvents.setSessionProductStore.
 I will provide a patch.

--
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] [Closed] (OFBIZ-3483) If his/her gender is editable by a customer, the service getPartyNameForDate should include it if available

2012-03-29 Thread Sascha Rodekamp (Closed) (JIRA)

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

Sascha Rodekamp closed OFBIZ-3483.
--

   Resolution: Fixed
Fix Version/s: SVN trunk

Hi Sebastian,
you Patch is in Trunk @Rev 1306745

Have a good day!

 If his/her gender is editable by a customer, the service 
 getPartyNameForDate should include it if available
 -

 Key: OFBIZ-3483
 URL: https://issues.apache.org/jira/browse/OFBIZ-3483
 Project: OFBiz
  Issue Type: Improvement
  Components: party
Affects Versions: SVN trunk
Reporter: Sebastian Leitner
Assignee: Sascha Rodekamp
Priority: Trivial
 Fix For: SVN trunk

 Attachments: getPartyNameForDate-patch


 The service getPartyNameForDate returns the name and some personal data for 
 a person for a specific date. If a person is able to edit its gender, I think 
 it would be nice, if the service would also return the gender as an optional 
 output-parameter, if it's available.
 IMHO this makes sense, if you use the gender to find out the salutation.

--
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] [Assigned] (OFBIZ-4762) runSubscriptionAutoReorders places duplicate orderIds

2012-03-28 Thread Sascha Rodekamp (Assigned) (JIRA)

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

Sascha Rodekamp reassigned OFBIZ-4762:
--

Assignee: Sascha Rodekamp

 runSubscriptionAutoReorders places duplicate orderIds
 -

 Key: OFBIZ-4762
 URL: https://issues.apache.org/jira/browse/OFBIZ-4762
 Project: OFBiz
  Issue Type: Bug
  Components: order
Affects Versions: SVN trunk
Reporter: Sebastian Leitner
Assignee: Sascha Rodekamp
Priority: Minor
 Attachments: OrderServices.java.patch


 The services runSubscriptionAutoReorders runs every midnight by default. It 
 checks for expired subscriptions and places a new order to extend them. It 
 fills up a cart from the previous order and places the order.
 It also sets the orderId of the old order at the cart, which is used during 
 creation of the new order. According to this, no new order can be placed 
 because of duplicate-entry exceptions from the database.
 I will attach a patch for this.
 - Sebastian

--
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] [Assigned] (OFBIZ-3483) If his/her gender is editable by a customer, the service getPartyNameForDate should include it if available

2012-03-28 Thread Sascha Rodekamp (Assigned) (JIRA)

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

Sascha Rodekamp reassigned OFBIZ-3483:
--

Assignee: Sascha Rodekamp

 If his/her gender is editable by a customer, the service 
 getPartyNameForDate should include it if available
 -

 Key: OFBIZ-3483
 URL: https://issues.apache.org/jira/browse/OFBIZ-3483
 Project: OFBiz
  Issue Type: Improvement
  Components: party
Affects Versions: SVN trunk
Reporter: Sebastian Leitner
Assignee: Sascha Rodekamp
Priority: Trivial
 Attachments: getPartyNameForDate-patch


 The service getPartyNameForDate returns the name and some personal data for 
 a person for a specific date. If a person is able to edit its gender, I think 
 it would be nice, if the service would also return the gender as an optional 
 output-parameter, if it's available.
 IMHO this makes sense, if you use the gender to find out the salutation.

--
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: Lose Weight Program for OFBiz JCR function

2012-03-22 Thread Sascha Rodekamp
 phase I think it
 is a
 good idea to keep the component in the development branch in the
 meantime.

 Jacopo






 --
 Coherent Software Australia Pty Ltd
 PO Box 2773
 Cheltenham Vic 3192
 Phone: (03) 9585 6788
 Fax: (03) 9585 1086
 Web: http://www.cohsoft.com.au/
 Email: sa...@cohsoft.com.au

 Bonsai ERP, the all-inclusive ERP system
 http://www.bonsaierp.com.au/



-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


[jira] [Reopened] (OFBIZ-2628) No Url encoding for get parameters

2012-03-22 Thread Sascha Rodekamp (Reopened) (JIRA)

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

Sascha Rodekamp reopened OFBIZ-2628:



Hey Markus, ok no problem. I will reopen the issue,
and check if there is a relation to the issue you metioned and maybe we get 
closer to a solution ;-).



 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
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] [Assigned] (OFBIZ-4744) ProductStoreCartAwareEvents: wrong check for website in setSessionProductStore

2012-03-22 Thread Sascha Rodekamp (Assigned) (JIRA)

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

Sascha Rodekamp reassigned OFBIZ-4744:
--

Assignee: Sascha Rodekamp

 ProductStoreCartAwareEvents: wrong check for website in setSessionProductStore
 --

 Key: OFBIZ-4744
 URL: https://issues.apache.org/jira/browse/OFBIZ-4744
 Project: OFBiz
  Issue Type: Bug
  Components: order, specialpurpose/ecommerce
Affects Versions: SVN trunk
Reporter: Michael Brohl
Assignee: Sascha Rodekamp
 Fix For: SVN trunk

 Attachments: 
 OFBIZ-4744_ProductStoreCartAwareEvents_wrong_check_for_website.patch

   Original Estimate: 5m
  Remaining Estimate: 5m

 There's a duplicate check if the productStore is null instead of checking 
 productStore and website in 
 ProductStoreCartAwareEvents.setSessionProductStore.
 I will provide a patch.

--
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: Lose Weight Program for OFBiz JCR function

2012-03-20 Thread Sascha Rodekamp
Hi,

 1) keep it in framework
+1

 2) but remove it from the upcoming new release branch 12.04
+1 - for now the JCR implementation provide the the developer an API
which helps to create, read, update or delete content in the
repository. We have no integration in other (i.e. the content)
applications. So there is no problem to keep the jcr implementation
out of release 12.04.

 3) and then, as a community, we could start the effort
+1 - that was the intention of the Jira Task OFBIZ-4659. There is a
lot work to do.
I like the idea having a roadmap, that could possibly speed up the
development and let people focus on certain features...

Thanks and regards,
Sascha

 1) keep it in framework
 2) but remove it from the upcoming new release branch 12.04
 3) and then, as a community, we could start the effort (i.e. top priority for 
 upcoming contributions/commits) of defining the set of requirements needed by 
 the applications to replace the existing Content framework, finalizing the 
 architecture and start working all on the implementation and migration of 
 existing applications: this would mean that the community will focus on this 
 refactoring effort for a while (postponing any other new development to focus 
 the energy)

 At least in this way we could experiment if the concept of a roadmap is a 
 viable options and we will not keep and distribute a component under 
 development waiting to see if and when something good will come out of it.

 Jacopo

 On Mar 20, 2012, at 11:32 AM, Jacopo Cappellato wrote:


 On Mar 20, 2012, at 10:15 AM, Olivier Heintz wrote:

 New thread for only JCR funstion

 Summary of initial discussion:

 Jacoppo:
 N) framework/jcr: move back into the Jackrabbit branch until the work is 
 completed and can replace the existing content framework

 Hans:
 Also moving the JCR function out is not a good idea however when not 
 improved in the next few months using the content manager, i would agree 
 to a removal.

 Jacoppo
 Keep it mind we are preparing for the creation of the new release branch 
 (12.04): this would mean that all the future releases for 12.04 will be 
 bundled with an incomplete JCR/Jackrabbit integration that duplicates 
 (but not replaces) the existing Component framework. This is alone a 
 good reason for moving this work back to the development branch and will 
 save a lot of future work in backporting features if security issues or 
 bugs will be discovered.

 IMO, jcr will be a good enhancement in ofbiz, but currently we(the company 
 I'm working for) are using content component in a lot of place, product, 
 workeffort, project, party, custRequest,   to manage files, so we area 
 waiting the next step of the jcr OFBiz (content) integration.
 Meanwhile this second step, if jcr  was a plugin, we will use it for some 
 new customer project (and maybe contribute on ;-) but not use it for older 
 customer which currently works with OFBiz solution to avoid using not 
 completely implement feature.
 So IMO, jcr should move, branch or extra, but I prefer as a plugin to be 
 able to used it easily.


 I didn't follow the details of the plans for JCR/Jackrabbit integration but 
 as far as I understand it it is intended to be highly integrated with OFBiz 
 (to replace Content Framework features): I am not sure how this is inline 
 with Olivier's idea of a plugin, but it is an idea that can be explored. 
 However, since we are still in this design phase I think it is a good idea 
 to keep the component in the development branch in the meantime.

 Jacopo





-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


[jira] [Closed] (OFBIZ-2628) No Url encoding for get parameters

2012-03-08 Thread Sascha Rodekamp (Closed) (JIRA)

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

Sascha Rodekamp closed OFBIZ-2628.
--

Resolution: Fixed

fixed the redirect bug. The encoding in the RequestHandler was obsolete and 
causes this error.

The new patch is committed in
Trunk @Rev1298454
11.04 @Rev1298455
10.04 @Rev1298456

 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
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: Groovy services and a DSL for OFBiz - a POC

2012-03-08 Thread Sascha Rodekamp
 preparation scripts.

 Cheers,

 Jacopo


 Cheers,
 Anne.

 On 9 March 2012 05:02, Jacopo Cappellato
 jacopo.cappell...@hotwaxmedia.comwrote:

 Hi all,

 I have just completed my first pass in the implementation of a DSL (Domain
 Specific Language) for OFBiz that can be used by Groovy services to act
 like a modern version of Minilang.

 Please review my notes here:


 https://cwiki.apache.org/confluence/display/OFBIZ/Groovy+Services+and+DSL+for+OFBiz

 I look forward to your comments and feedback but please consider that 1)
 it is a work in progress, 2) I spent a lot of time and mental energy in the
 effort (reaching simplicity is really complex task!)... so please don't be
 too picky :-)

 Regards,

 Jacopo

 PS: if you find it useful, I can commit the Groovy service mentioned in
 the page in Confluence




 --
 Coherent Software Australia Pty Ltd
 PO Box 2773
 Cheltenham Vic 3192
 Phone: (03) 9585 6788
 Fax: (03) 9585 1086
 Web: http://www.cohsoft.com.au/
 Email: sa...@cohsoft.com.au

 Bonsai ERP, the all-inclusive ERP system
 http://www.bonsaierp.com.au/




-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


Re: svn commit: r1297006 - in /ofbiz/trunk/framework: webapp/src/org/ofbiz/webapp/control/RequestHandler.java widget/src/org/ofbiz/widget/WidgetWorker.java

2012-03-06 Thread Sascha Rodekamp
Hi Chatree, i reverted the patch, the redirect should work again.

Thanks
Regards,
Sascha

2012/3/6 Chatree Srichart chatree.srich...@gmail.com:
 There is a problem with this patch. URLs which are encoded could not
 redirect from HTTP to HTTPS. The error is shown on the demo site, for
 example, http://demo-trunk.ofbiz.apache.org:8080/ecommerce/ which the
 Login link does not work.

 Regards,
 Chatree Srichart

 On Mon, Mar 5, 2012 at 6:13 PM, sascharodek...@apache.org wrote:

 Author: sascharodekamp
 Date: Mon Mar  5 11:13:29 2012
 New Revision: 1297006

 URL: http://svn.apache.org/viewvc?rev=1297006view=rev
 Log:
 No Url encoding for get parameters (
 https://issues.apache.org/jira/browse/OFBIZ-2628) using the URLEncoder to
 encode and render URLs with special Chars. The encoding is always UTF-8

 Modified:

  ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java

 Modified:
 ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
 URL:
 http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java?rev=1297006r1=1297005r2=1297006view=diff

 ==
 ---
 ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
 (original)
 +++
 ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
 Mon Mar  5 11:13:29 2012
 @@ -24,6 +24,8 @@ import java.io.IOException;
  import java.io.Serializable;
  import java.io.UnsupportedEncodingException;
  import java.net.URL;
 +import java.net.URLEncoder;
 +import java.nio.charset.Charset;
  import java.security.cert.X509Certificate;
  import java.util.Enumeration;
  import java.util.List;
 @@ -1113,7 +1115,13 @@ public class RequestHandler {
                         newURL.insert(questionIndex, sessionId);
                     }
                 }
 -                encodedUrl = newURL.toString();
 +
 +                try {
 +                    encodedUrl = URLEncoder.encode(newURL.toString(),
 Charset.forName(UTF-8).displayName());
 +                } catch (UnsupportedEncodingException e) {
 +                    Debug.logError(e, module);
 +                    encodedUrl = newURL.toString();
 +                }
             }
         } else {
             encodedUrl = newURL.toString();

 Modified:
 ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
 URL:
 http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=1297006r1=1297005r2=1297006view=diff

 ==
 --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
 (original)
 +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
 Mon Mar  5 11:13:29 2012
 @@ -20,7 +20,10 @@ package org.ofbiz.widget;

  import java.io.IOException;
  import java.io.StringWriter;
 +import java.io.UnsupportedEncodingException;
  import java.math.BigDecimal;
 +import java.net.URLEncoder;
 +import java.nio.charset.Charset;
  import java.text.DateFormat;
  import java.util.Map;
  import java.util.TimeZone;
 @@ -339,7 +342,12 @@ public class WidgetWorker {

         public String getValue(MapString, Object context) {
             if (this.value != null) {
 -                return this.value.expandString(context);
 +                try {
 +                    return
 URLEncoder.encode(this.value.expandString(context),
 Charset.forName(UTF-8).displayName());
 +                } catch (UnsupportedEncodingException e) {
 +                    Debug.logError(e, module);
 +                    return this.value.expandString(context);
 +                }
             }

             Object retVal = null;
 @@ -370,7 +378,11 @@ public class WidgetWorker {
                     DateFormat df = UtilDateTime.toDateTimeFormat(EEE MMM
 dd hh:mm:ss z , timeZone, null);
                     returnValue = df.format((java.util.Date) retVal);
                 } else {
 -                    returnValue = retVal.toString();
 +                    try {
 +                        returnValue =
 URLEncoder.encode(retVal.toString(),
 Charset.forName(UTF-8).displayName());
 +                    } catch (UnsupportedEncodingException e) {
 +                        Debug.logError(e, module);
 +                    }
                 }
                 return returnValue;
             } else {






-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


[jira] [Reopened] (OFBIZ-2628) No Url encoding for get parameters

2012-03-06 Thread Sascha Rodekamp (Reopened) (JIRA)

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

Sascha Rodekamp reopened OFBIZ-2628:



The patch breaks the http -- https redirect. Which could be seen when using 
the ecommerce login button.

 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
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-2628) No Url encoding for get parameters

2012-03-05 Thread Sascha Rodekamp (Commented) (JIRA)

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

Sascha Rodekamp commented on OFBIZ-2628:


Hi Jacques, 
yes i think hard coding UTF-8 is sufficient, first i thought of getting it from 
an property file, but as you mentioned the World Wide Web Consortium 
recommended also UTF-8.

Thanks for reviewing
Have a good day
Sascha


 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
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] [Closed] (OFBIZ-2628) No Url encoding for get parameters

2012-03-05 Thread Sascha Rodekamp (Closed) (JIRA)

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

Sascha Rodekamp closed OFBIZ-2628.
--

   Resolution: Fixed
Fix Version/s: SVN trunk
   Release Branch 11.04
   Release Branch 10.04

Thanks Markus for the initial Patch i committed my modified version in:

Trunk @Rev 1297006
10.04 @Rev 1297030
11.04 @Rev 1297031

 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk

 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
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-2628) No Url encoding for get parameters

2012-02-29 Thread Sascha Rodekamp (Updated) (JIRA)

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

Sascha Rodekamp updated OFBIZ-2628:
---

Attachment: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

I would suggest using the URLEncoder to fix this issue (see attached files). 
The URLEncoder does a right encoding for the url with a special character.

Any comments to this solution?

Regards

 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, 
 OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
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: Fixing bad patterns widely used to check role based permission

2012-02-28 Thread Sascha Rodekamp
 be more useful to have the following base services:

 * basePermissionCheck: same as above
 * rolePermissionCheck (instead of basePlusRolePermissionCheck): returns true 
 if user has one of the base ACCOUNTING_ROLE CRUD+ADMIN permissions

 As a side note, for the same reason the methods 
 security.hasRolePermission(...) are useless if you do not pass the roles (and 
 no code does currently) and were all used in the wrong way.

 The end result is that we have a lot of code that treats standard permissions 
 and ROLE permission as equivalent; this happens mostly for two reasons:
 A) bad implementation; for example see service orderAdjustmentPermissionCheck)
 B) incomplete implementation (the code to check the association is still 
 missing); for example see service acctgAgreementPermissionCheck

 In my opinion we should fix #A and #B by returning false if the user has a 
 ROLE permission only but the code doesn't check for association data and we 
 will add a placeholder TODO comment as a reminder: if the code is not 
 implemented then the ROLE permission should not work rather than (as it 
 happens now) working as the standard permission

 I apologize for the long email, I look forward at your feedback.

 Jacopo







-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de


[jira] [Commented] (OFBIZ-4709) Support jcr-stored file content within Applications

2012-02-27 Thread Sascha Rodekamp (Commented) (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4709:


Good morning everybody

first sorry for my late response, believe it or not i was offline the hole 
weekend :). 
There is already a wiki page where i tried to document my current development 
state. I will reorganize it, that we can store additional conceptional 
documents. [https://cwiki.apache.org/OFBIZ/jackrabbit-branch-development.html]

{quote}
support searches such as all documents of a certain type that have not expired
{quote}

Jap we can do this. An example from the JCR Spec:

{quote}
A query can specify a constraint to filter the set of node-tuples by any
combination of:

* Value of a property, for example:
** Nodes whose jcr:created property is after 2007-03-14T00:00:00.000Z

* Existence of a property, for example:
** Nodes with a jcr:language property
{quote}

What I don't know yet,if either DB-Queries or JCR-Queries have the better 
performance.

I agree with Jacques and Anne if we extend the contentTypeId it is not obvious 
why we store the JCR indicator in this field. Otherwise i would let the 
repository handle the different content types (We can use properties in the 
nodes or create a certain content object mapping class). 
Imagine you have a third party CMS system which should connect to the 
repository to manage your contents, it's worse to implement a connector if you 
have to mix up the ofbiz DB and the repository, but it's striate forward if you 
only have the repository (assumed that the CMS uses JCR internally anyway).

If you like to switch to the ML fell free, initially i didn't expect a longer 
discussion for this issue :-) 






 Support jcr-stored file content within Applications
 ---

 Key: OFBIZ-4709
 URL: https://issues.apache.org/jira/browse/OFBIZ-4709
 Project: OFBiz
  Issue Type: Sub-task
  Components: ALL APPLICATIONS
Affects Versions: SVN trunk
Reporter: Anne Jessel
Assignee: Sascha Rodekamp

 My current requirements:
 * store uploaded documents (pdf and scans), mainly for legal compliance 
 reasons
 * old document versions should be accessible
 * documents should be associated with existing entities. So far I've 
 identified a need to associate with Product, Party, OrderHeader, 
 ShipmentItem, probably InventoryItemDetail and maybe WorkEffort. I would not 
 be surprised if we discover more as this project proceeds.
 * documents may have a type and a purpose, though sometimes I'm not sure of 
 the difference. For example, type: drivers_licence might be purpose: 
 identification, and/or purpose: permission_to_drive, while type: 
 shipping_label would be purpose: shipping_label
 * many documents have an expiry date (e.g. drivers licence)
 * a document may become invalid before its expiry date (e.g. because the law 
 changed)
 * a specific version of a document may need to be associated with an entity. 
 For example, a licence agreement document accessed via a Product should 
 always be the latest version. However the version of that document actually 
 shipped with the product should be associated with the ShipmentItem.
 * a single document might be associated with more than one entity type: see 
 the example in the previous point
 Not all documents require all of the above. For example, there are some 
 documents where we don't need to track which version was used when, and some 
 without expiry dates.
 I'm thinking of using the from/thruDate pattern to handle expiry related 
 needs. I'd like to put as much information into the jcr path as possible, so 
 less needs to go into entities, as per Sascha's suggestion on the dev ML. 
 However (at least) from/thruDate and which version of a document was actually 
 used where will presumably need to be stored in an entity.

--
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-4709) Support jcr-stored file content within Applications

2012-02-24 Thread Sascha Rodekamp (Commented) (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4709:


Hi,
that means we will have a structure like:

ProductContent -- Content -- DataSource -- JCR Repository (which have a tree 
of content nodes)

That could tempt people to use ContentAssoc and all the fields in DataSource to 
store content information and arrange the content order. But i think that 
should be done in the repository, because otherwise we ignore the benefits of 
the jackrabbit repository and use it as simple datastore.

My Suggestion is to keep the DB site as simple and flat as possible and let the 
repository do the rest

Btw Anne, you can store the from/thruDate in the ProductContent entity which 
should be sufficient.


 Support jcr-stored file content within Applications
 ---

 Key: OFBIZ-4709
 URL: https://issues.apache.org/jira/browse/OFBIZ-4709
 Project: OFBiz
  Issue Type: Sub-task
  Components: ALL APPLICATIONS
Affects Versions: SVN trunk
Reporter: Anne Jessel
Assignee: Sascha Rodekamp

 My current requirements:
 * store uploaded documents (pdf and scans), mainly for legal compliance 
 reasons
 * old document versions should be accessible
 * documents should be associated with existing entities. So far I've 
 identified a need to associate with Product, Party, OrderHeader, 
 ShipmentItem, probably InventoryItemDetail and maybe WorkEffort. I would not 
 be surprised if we discover more as this project proceeds.
 * documents may have a type and a purpose, though sometimes I'm not sure of 
 the difference. For example, type: drivers_licence might be purpose: 
 identification, and/or purpose: permission_to_drive, while type: 
 shipping_label would be purpose: shipping_label
 * many documents have an expiry date (e.g. drivers licence)
 * a document may become invalid before its expiry date (e.g. because the law 
 changed)
 * a specific version of a document may need to be associated with an entity. 
 For example, a licence agreement document accessed via a Product should 
 always be the latest version. However the version of that document actually 
 shipped with the product should be associated with the ShipmentItem.
 * a single document might be associated with more than one entity type: see 
 the example in the previous point
 Not all documents require all of the above. For example, there are some 
 documents where we don't need to track which version was used when, and some 
 without expiry dates.
 I'm thinking of using the from/thruDate pattern to handle expiry related 
 needs. I'd like to put as much information into the jcr path as possible, so 
 less needs to go into entities, as per Sascha's suggestion on the dev ML. 
 However (at least) from/thruDate and which version of a document was actually 
 used where will presumably need to be stored in an entity.

--
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] [Assigned] (OFBIZ-4713) Add german translation to AccountingErrorUiLabels.xml

2012-02-23 Thread Sascha Rodekamp (Assigned) (JIRA)

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

Sascha Rodekamp reassigned OFBIZ-4713:
--

Assignee: Sascha Rodekamp

 Add german translation to AccountingErrorUiLabels.xml
 -

 Key: OFBIZ-4713
 URL: https://issues.apache.org/jira/browse/OFBIZ-4713
 Project: OFBiz
  Issue Type: Improvement
  Components: accounting
Affects Versions: SVN trunk
Reporter: Markus M. May
Assignee: Sascha Rodekamp
Priority: Trivial
 Fix For: SVN trunk

 Attachments: 
 OFBIZ-4713-add-german-translation-to-AccountingErrorUiLabels.patch


 The German translation is missing in AccountingErrorUiLabels.xml .

--
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] [Closed] (OFBIZ-4713) Add german translation to AccountingErrorUiLabels.xml

2012-02-23 Thread Sascha Rodekamp (Closed) (JIRA)

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

Sascha Rodekamp closed OFBIZ-4713.
--

Resolution: Fixed

Hi Markus,
thanks for the translation, the patch is in trunk @Rev1292703

I will close the issue, if you have more translation for translations for this 
uiLabel file we can reopen it.

 Add german translation to AccountingErrorUiLabels.xml
 -

 Key: OFBIZ-4713
 URL: https://issues.apache.org/jira/browse/OFBIZ-4713
 Project: OFBiz
  Issue Type: Improvement
  Components: accounting
Affects Versions: SVN trunk
Reporter: Markus M. May
Assignee: Sascha Rodekamp
Priority: Trivial
 Fix For: SVN trunk

 Attachments: 
 OFBIZ-4713-add-german-translation-to-AccountingErrorUiLabels.patch


 The German translation is missing in AccountingErrorUiLabels.xml .

--
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-4709) Support jcr-stored file content within Applications

2012-02-23 Thread Sascha Rodekamp (Commented) (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4709:


Yes Jacopo, we should definitely the existing tables. 

I'm a little bit afraid, that to much content information will be stored in the 
database tables. 
But i see no way handling content without a connection to the DB so it's ok to 
use the content entities to manage it, if we have a DB lookup anyway we can use 
the from/thruDate filter. 

Anyway another point which comes to my mind. Would you disable the current 
product content storage? Or should we use the current entity based storage and 
the repository storage parallel? I think of saying the *ContentWorker which 
storage point he have to use (entity or repository).  
Means if someone want to use the DB, he can configure to use a 
ProductEntityContentWorker if he otherwise want to use the repository he can 
configure the ProductRepositoryContentWorker. The content Worker encapsulate 
all the access to the content store point.


 Support jcr-stored file content within Applications
 ---

 Key: OFBIZ-4709
 URL: https://issues.apache.org/jira/browse/OFBIZ-4709
 Project: OFBiz
  Issue Type: Sub-task
  Components: ALL APPLICATIONS
Affects Versions: SVN trunk
Reporter: Anne Jessel
Assignee: Sascha Rodekamp

 My current requirements:
 * store uploaded documents (pdf and scans), mainly for legal compliance 
 reasons
 * old document versions should be accessible
 * documents should be associated with existing entities. So far I've 
 identified a need to associate with Product, Party, OrderHeader, 
 ShipmentItem, probably InventoryItemDetail and maybe WorkEffort. I would not 
 be surprised if we discover more as this project proceeds.
 * documents may have a type and a purpose, though sometimes I'm not sure of 
 the difference. For example, type: drivers_licence might be purpose: 
 identification, and/or purpose: permission_to_drive, while type: 
 shipping_label would be purpose: shipping_label
 * many documents have an expiry date (e.g. drivers licence)
 * a document may become invalid before its expiry date (e.g. because the law 
 changed)
 * a specific version of a document may need to be associated with an entity. 
 For example, a licence agreement document accessed via a Product should 
 always be the latest version. However the version of that document actually 
 shipped with the product should be associated with the ShipmentItem.
 * a single document might be associated with more than one entity type: see 
 the example in the previous point
 Not all documents require all of the above. For example, there are some 
 documents where we don't need to track which version was used when, and some 
 without expiry dates.
 I'm thinking of using the from/thruDate pattern to handle expiry related 
 needs. I'd like to put as much information into the jcr path as possible, so 
 less needs to go into entities, as per Sascha's suggestion on the dev ML. 
 However (at least) from/thruDate and which version of a document was actually 
 used where will presumably need to be stored in an entity.

--
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: Proposal to close the 4.0 and 09.04 release branches

2012-02-23 Thread Sascha Rodekamp
+1

Good idea. That will simplify a few things!

Regards

Am 23.02.2012 um 09:35 schrieb Jacopo Cappellato 
jacopo.cappell...@hotwaxmedia.com:

 Hi devs,
 
 I would like to propose to officially close the two oldest branches:
 
 release4.0
 release09.04
 
 When the branches will be closed:
 * we will no more backport fixes to them (no commits in general will be done)
 * if a user will submit a patch for the branch in Jira we will resolve as 
 won't fix: the patch will still be there for interested parties
 * no new release will be created in the future from the two branches
 * the OFBiz download page will explain that the branches are old and no more 
 supported
 * (optional) we could close the Jira versions for them and resolve as 
 won't fix outstanding issues if only related to these branches
 
 The result would be that, if the current vote for the release Apache OFBiz 
 09.04.02 will pass then the 09.04.02 will be the last (and third) release of 
 this branch.
 Of course we could still return on this decision if something new will 
 happen... but I doubt because the number of commits lately has been very low.
 
 The main goal is to help the community  to have a clearer roadmap for the 
 future and to help to focus on more defined targets: older branches are not 
 supported, but the community will always try to backport fixes to the last 
 two/three branches: the currently active branches are 11.04, 10.04 and the 
 upcoming 12.04.
 Following the same rule (no more than three active release branches at a 
 time) we could plan to close the 10.04 branch around (sometime before) 
 April 2013 (when the new release branch 13.04 will be created).
 
 This is a small and natural step in the direction of having some sort of 
 roadmap for the project.
 This, together with the discussion going on in thread Proposal about a time 
 based release plan should be enough to define and create a nice and clean 
 release roadmap.
 
 We could start an official vote thread if there is interest in this, or, less 
 formally, we could more simply use this thread to discuss pros and cons and 
 find an agreement.
 
 What do you think?
 
 Jacopo
 


[jira] [Commented] (OFBIZ-4709) Support jcr-stored file content within Applications

2012-02-23 Thread Sascha Rodekamp (Commented) (JIRA)

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

Sascha Rodekamp commented on OFBIZ-4709:


Yap we need a separate content type: I would suggest JCR_CONTENT_* to 
differentiate between images, text, html and so on.

{quote}
*ContentWorker ... some of the classes are rather old and not perfect 
{quote}

Right, but i don't like the idea to extend tho old code, because i think we can 
do much better. 
Leave the old class as it is and let us use a factory which decided which 
implementation for the specific content should be used (maybe depending on the 
content type). That gives us the ability to:
1.) create new clean code (and test drive it :))
2.) make the DB and repository code independent (at some point in the feature 
we can simply remove one implementation)
3.) we haven't to worry to break anything from the exciting code

   |---can load--- *EntityContentWorker (implements 
ContentWorker)
*ContentWorkerFactory  |
   |---can load--- *RepositoryContentWorker (implements 
ContentWorker)



 Support jcr-stored file content within Applications
 ---

 Key: OFBIZ-4709
 URL: https://issues.apache.org/jira/browse/OFBIZ-4709
 Project: OFBiz
  Issue Type: Sub-task
  Components: ALL APPLICATIONS
Affects Versions: SVN trunk
Reporter: Anne Jessel
Assignee: Sascha Rodekamp

 My current requirements:
 * store uploaded documents (pdf and scans), mainly for legal compliance 
 reasons
 * old document versions should be accessible
 * documents should be associated with existing entities. So far I've 
 identified a need to associate with Product, Party, OrderHeader, 
 ShipmentItem, probably InventoryItemDetail and maybe WorkEffort. I would not 
 be surprised if we discover more as this project proceeds.
 * documents may have a type and a purpose, though sometimes I'm not sure of 
 the difference. For example, type: drivers_licence might be purpose: 
 identification, and/or purpose: permission_to_drive, while type: 
 shipping_label would be purpose: shipping_label
 * many documents have an expiry date (e.g. drivers licence)
 * a document may become invalid before its expiry date (e.g. because the law 
 changed)
 * a specific version of a document may need to be associated with an entity. 
 For example, a licence agreement document accessed via a Product should 
 always be the latest version. However the version of that document actually 
 shipped with the product should be associated with the ShipmentItem.
 * a single document might be associated with more than one entity type: see 
 the example in the previous point
 Not all documents require all of the above. For example, there are some 
 documents where we don't need to track which version was used when, and some 
 without expiry dates.
 I'm thinking of using the from/thruDate pattern to handle expiry related 
 needs. I'd like to put as much information into the jcr path as possible, so 
 less needs to go into entities, as per Sascha's suggestion on the dev ML. 
 However (at least) from/thruDate and which version of a document was actually 
 used where will presumably need to be stored in an entity.

--
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] [Issue Comment Edited] (OFBIZ-4709) Support jcr-stored file content within Applications

2012-02-23 Thread Sascha Rodekamp (Issue Comment Edited) (JIRA)

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

Sascha Rodekamp edited comment on OFBIZ-4709 at 2/23/12 11:48 AM:
--

Yap we need a separate content type: I would suggest JCR_CONTENT_* to 
differentiate between images, text, html and so on.

{quote}
*ContentWorker ... some of the classes are rather old and not perfect 
{quote}

Right, but i don't like the idea to extend tho old code, because i think we can 
do much better. 
Leave the old class as it is and let us use a factory which decided which 
implementation for the specific content should be used (maybe depending on the 
content type). That gives us the ability to:
1.) create new clean code (and test drive it :))
2.) make the DB and repository code independent (at some point in the feature 
we can simply remove one implementation)
3.) we haven't to worry to break anything from the exciting code

||--- can load --- *EntityContentWorker 
(implements ContentWorker)
|*ContentWorkerFactory  |
||--- can load --- *RepositoryContentWorker 
(implements ContentWorker)



  was (Author: sascha):
Yap we need a separate content type: I would suggest JCR_CONTENT_* to 
differentiate between images, text, html and so on.

{quote}
*ContentWorker ... some of the classes are rather old and not perfect 
{quote}

Right, but i don't like the idea to extend tho old code, because i think we can 
do much better. 
Leave the old class as it is and let us use a factory which decided which 
implementation for the specific content should be used (maybe depending on the 
content type). That gives us the ability to:
1.) create new clean code (and test drive it :))
2.) make the DB and repository code independent (at some point in the feature 
we can simply remove one implementation)
3.) we haven't to worry to break anything from the exciting code

   |---can load--- *EntityContentWorker (implements 
ContentWorker)
*ContentWorkerFactory  |
   |---can load--- *RepositoryContentWorker (implements 
ContentWorker)


  
 Support jcr-stored file content within Applications
 ---

 Key: OFBIZ-4709
 URL: https://issues.apache.org/jira/browse/OFBIZ-4709
 Project: OFBiz
  Issue Type: Sub-task
  Components: ALL APPLICATIONS
Affects Versions: SVN trunk
Reporter: Anne Jessel
Assignee: Sascha Rodekamp

 My current requirements:
 * store uploaded documents (pdf and scans), mainly for legal compliance 
 reasons
 * old document versions should be accessible
 * documents should be associated with existing entities. So far I've 
 identified a need to associate with Product, Party, OrderHeader, 
 ShipmentItem, probably InventoryItemDetail and maybe WorkEffort. I would not 
 be surprised if we discover more as this project proceeds.
 * documents may have a type and a purpose, though sometimes I'm not sure of 
 the difference. For example, type: drivers_licence might be purpose: 
 identification, and/or purpose: permission_to_drive, while type: 
 shipping_label would be purpose: shipping_label
 * many documents have an expiry date (e.g. drivers licence)
 * a document may become invalid before its expiry date (e.g. because the law 
 changed)
 * a specific version of a document may need to be associated with an entity. 
 For example, a licence agreement document accessed via a Product should 
 always be the latest version. However the version of that document actually 
 shipped with the product should be associated with the ShipmentItem.
 * a single document might be associated with more than one entity type: see 
 the example in the previous point
 Not all documents require all of the above. For example, there are some 
 documents where we don't need to track which version was used when, and some 
 without expiry dates.
 I'm thinking of using the from/thruDate pattern to handle expiry related 
 needs. I'd like to put as much information into the jcr path as possible, so 
 less needs to go into entities, as per Sascha's suggestion on the dev ML. 
 However (at least) from/thruDate and which version of a document was actually 
 used where will presumably need to be stored in an entity.

--
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-2628) No Url encoding for get parameters

2012-02-22 Thread Sascha Rodekamp (Commented) (JIRA)

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

Sascha Rodekamp commented on OFBIZ-2628:


Hi Markus, thanks for your patch.


But when i create a new category DVD+R the widget encoder encodes it to 
DVD#43;R not to DVD%2BR. 
It would be great if you can have a second look at this.

Have a good day
Sascha


 No Url encoding for get parameters
 --

 Key: OFBIZ-2628
 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
 Environment: All
Reporter: Patrick Antivackis
Assignee: Sascha Rodekamp
Priority: Critical
 Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch

   Original Estimate: 4h
  Remaining Estimate: 4h

 Let's say I want to create a new category which ID is  DVD+R
 Creation is ok through the admin interface, but whenever i want to access 
 this category, the get parameter productCategoryId= of the url is wrong 
 as it's not url encoded, so we have :
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD#43;R
  instead of
 https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
 Both @ofbizUrl tag and menu widgets are not encoding get parameters.
 Way to correct :
 framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the 
 makeLink function
 framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function 
 buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of 
 simpleEncoder
 Beofre i do the fix, can a core developper let me know about possible side 
 effects

--
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




  1   2   3   4   5   6   7   8   9   10   >