Commit Graph
516 Commits
Author SHA1 Message Date
Hans Bakker 7e07ec7ad5 improve log messages (add domainname)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139703 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 03:11:17 +00:00
Jacques Le Roux b4d7f50233 Closes "Login out on a cluster handled by DeltaManager causes a NPE" https://issues.apache.org/jira/browse/OFBIZ-4289
It works locally but not on clusters. You simply get a NPE.

Problem
    When we logout we cross an issue due to Tomcat sessions persistence.
    Because we set distributable to true, to allow sessions failover,
    and use and DeltaManager for replication.
    Delegator and other main Classes (notably Dispatcher) are not serialized in OFBiz. This is the origin of the problem

Tried solutions
By default DeltaManager save active sessions on disk. It uses a private String variable pathname for that (default to "SESSIONS.ser"). You can set it to null, to avoid session persistence, using a context.xml file in the WEB-INF folder with content like below. But I tried it in webtools app on staging qs001 (only) and it did not work (with distributable set to false). And we have no other means to set it from OFBiz (OOTB).

<Context>
     <Manager className="org.apache.catalina.session.DeltatManager" pathname="">
     </Manager>
</Context>



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1132749 13f79535-47bb-0310-9956-ffa450edef68
2011-06-06 20:26:35 +00:00
Jacques Le Roux 7ad5584e0d Revert r948761 I introduced for https://issues.apache.org/jira/browse/OFBIZ-3784.
It introduced an issue when you edit a WebsSte and add a content secure prefix

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1131396 13f79535-47bb-0310-9956-ffa450edef68
2011-06-04 13:37:52 +00:00
Marco Risaliti 1a16c98e54 Removed some javadoc warning (wrong param/return) into webapp component no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1126744 13f79535-47bb-0310-9956-ffa450edef68
2011-05-23 20:57:44 +00:00
Marco Risaliti dc95bc30f6 Remove some unused import into ContextFilter
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1125958 13f79535-47bb-0310-9956-ffa450edef68
2011-05-22 13:25:31 +00:00
Marco Risaliti cce5004d88 add a @SuppressWarnings("unchecked") due to Freemarker api
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1125953 13f79535-47bb-0310-9956-ffa450edef68
2011-05-22 13:17:38 +00:00
Sascha Rodekamp 6e8d61e42f after session timeout, ajax popup dialogbox shows ofbiz login screen (https://issues.apache.org/jira/browse/OFBIZ-4256).
If the session is timed out the request handler checks weather it is an ajax request or not (The information comes from the request header if the X-Requested-With contains XMLHttpRequest we haven an ajax request.).
If it is an ajax request it don't return the normal "checkLogin" request, i return a a special ajaxCheckLogin request. This request can point to an site which shows the "Please Login Hint".

Orig Msg:
Take the following page (for example) https://localhost/content/control/findContent

field "Data Resource Id" has an icon beside it that creates an ajax dialog pop up. If the session has already timed out. The dialog box would show the login screen.

I suspect that all pages containing this functionality would exhibit the same symptom.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1102615 13f79535-47bb-0310-9956-ffa450edef68
2011-05-13 08:52:15 +00:00
Hans Bakker c136195d23 Using Amazon EC2 loadbalancer which already decrypted to http, content should still be served https so checking for X-Forwarded-Proto request variable too
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1095859 13f79535-47bb-0310-9956-ffa450edef68
2011-04-22 02:40:37 +00:00
Bruno Busco 50b329b865 Fixed the requiredPasswordChange feature.
This feature was not working since rev.741374 because a quick return from the login service was introduced if the user was already logged in.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1090853 13f79535-47bb-0310-9956-ffa450edef68
2011-04-10 17:51:23 +00:00
Jacques Le Roux 85f8b792d1 Cleans imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1088048 13f79535-47bb-0310-9956-ffa450edef68
2011-04-02 15:28:27 +00:00
Jacques Le Roux 46142d46a8 Completes https://issues.apache.org/jira/browse/OFBIZ-4218
Keeps the secure idea but enhance when working in a secure environment (VPN, local network, etc.) to return a comprehensive response. Depends on the secureSoapAnswer property in service.properties, true by default

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1088047 13f79535-47bb-0310-9956-ffa450edef68
2011-04-02 15:23:40 +00:00
Jacques Le Roux c9929cc9f0 Removes useless suppress warning annotations, fixes module name
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1088014 13f79535-47bb-0310-9956-ffa450edef68
2011-04-02 12:14:18 +00:00
Adrian Crum 397889ae8f Some work on ContainerLoader.java - Fixes some thread-safe issues and try to have better control over loading/starting/stopping containers.
I'm not sure what the Geronimo code was supposed to do. It appeared to load all of the containers just so it could create/start the rmi-dispatcher container. So, I created a static method that allows client code to get a specific container. If this change causes problems with Geronimo just let me know and I will fix it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1084238 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 16:22:54 +00:00
Jacques Le Roux 12eb9ea828 A patch from chris snow "SOAP improvements" (https://issues.apache.org/jira/browse/OFBIZ-4218) - OFBIZ-4218
1) SOAPHandler fault handling and error logging improvements
2) Current SOAPHandler allows multiple service requests in the SOAPBody. There should only be one service request.
3) Error messages give too much information in soap response to potential hackers.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1082829 13f79535-47bb-0310-9956-ffa450edef68
2011-03-18 06:45:54 +00:00
Marco Risaliti 90f618e6fb Remove some reduntant cast warning in ProtectViewWorker/RequestHandler (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081064 13f79535-47bb-0310-9956-ffa450edef68
2011-03-13 09:29:32 +00:00
Marco Risaliti 32f2a651f0 Remove some warning in VisitHandler (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078296 13f79535-47bb-0310-9956-ffa450edef68
2011-03-05 14:42:07 +00:00
Marco Risaliti 05538316f0 Remove a warning in OfbizContentTransform (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078088 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 18:26:16 +00:00
Hans Bakker 5a8c0b8652 issue https://issues.apache.org/jira/browse/OFBIZ-4194: reorder of product images and extension of the <@ofbizcontenturl macro. A contribution of Antwebsystems employee Tukkata
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076507 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 02:52:31 +00:00
Marco Risaliti 4ae79bcf5e Remove some warning in XmlRpcEventHandler (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076383 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:17:10 +00:00
Marco Risaliti bfdf2e4dab Remove some warning in SOAPEventHandler (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076381 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:16:52 +00:00
Marco Risaliti e467b7cf76 Remove some warning in ServiceEventHandler (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076379 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:14:49 +00:00
Marco Risaliti 0c77022d8c Remove unused variable/method in WfsEventHandler (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076362 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 20:17:24 +00:00
Marco Risaliti 2eb58acf4c Remove some warning from CoreEvents (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076359 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 20:02:41 +00:00
Marco Risaliti aaa6f94573 Remove a warning from RequestHandler (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076340 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 19:21:48 +00:00
Jacques Le Roux 8f96fd0b65 A fix suggested by Michael Reichenbach at "Multiple responses send by SOAPEventHandler when ServiceValidationException occurs" https://issues.apache.org/jira/browse/OFBIZ-4207
Problem
=======

When calling a service that was defined as "export=true" and a non-optional parameter is missing, then the SOAP-Response is not a valid XML.

Cause
=====

The cause is, that in SOAPEventHandler.invoke() the dispatcher.runSync() throws a ServiceValidationException ("The following required parameter is missing..."). This will be catched by the GenericServiceException-block, a error response will be written to the output stream (via sendError()) and an EventHandlerException will be thrown. This exception will again be catched (this time by the Exception-block and another error response will be written to the output stream.

Solution
========

I think the best solution is simply not to call sendError in the GenericServiceException-block.

JLR: I simply commented out the faulty line (with a reference to OFBIZ-4207) in case someone would want to improve the error message.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075952 13f79535-47bb-0310-9956-ffa450edef68
2011-03-01 18:03:14 +00:00
Jacques Le Roux c0716dd0db Removes an useless unchecked annotation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075875 13f79535-47bb-0310-9956-ffa450edef68
2011-03-01 16:16:26 +00:00
Marco Risaliti 822f6d1820 Remove some warning in IteratorTag (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075540 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:27:49 +00:00
Marco Risaliti ca6ca40950 Remove some warning in IfTag (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075539 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:26:51 +00:00
Marco Risaliti f52bef96d0 Remove some warning in RenderTag (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075538 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:24:34 +00:00
Marco Risaliti 4f9a3aa386 Remove some warning in InputValue (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075535 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:20:03 +00:00
Marco Risaliti c78d6dba39 Remove some warning in EntityField (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075534 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:19:34 +00:00
Jacques Le Roux 141bb6827f I should have used cache in 1st place here. It's never too late...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075350 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 14:35:02 +00:00
Sascha Rodekamp 0203cb9f0b Feature - "LoginWorker should use expandedEntites von the checkLogin-query" (https://issues.apache.org/jira/browse/OFBIZ-3453) - The parameters in the query String are separated by an &. The Code is more clean (and XHTML strict) when the separator is encoded. Thanks Dimitri for the patch.
Orig. Msg.:
I guess that the makeLoginUrl-method in the LoginWorker should return a string with expandedEntites.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1071362 13f79535-47bb-0310-9956-ffa450edef68
2011-02-16 19:06:10 +00:00
Marco Risaliti 78dcf847bd Add a @SuppressWarning("serial") in ViewHandlerException (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069122 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 21:31:19 +00:00
Marco Risaliti e5b0485aba Add a @SuppressWarning("serial") of classes of package org.ofbiz.webapp.taglib (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069121 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 21:30:31 +00:00
Marco Risaliti ecc24d9115 Add a @SuppressWarning("serial") of classes of package org.ofbiz.webapp.region (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069118 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 21:21:50 +00:00
Marco Risaliti fc188f9f06 Add a @SuppressWarning("serial") in EventHandlerException/FileUploadProgressListener (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069117 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 21:19:57 +00:00
Marco Risaliti 3b77f392b7 Add a @SuppressWarning("serial") in RequestHandlerException (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069115 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 21:18:24 +00:00
David E. Jones 3d970a834b Soften exception log on error saving ServerHit, happens often with MySQL and no need for such a bug chunk of text in the log
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068668 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 22:57:30 +00:00
David E. Jones 58c2d96cb0 Changed to not use hard-coded dispatcher name to avoid issues when using multiple delegators
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068665 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 22:56:18 +00:00
Marco Risaliti f7e858af65 Remove an unused import in FreeMarkerViewHandler (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068567 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:42:28 +00:00
Marco Risaliti ac07860c5a Remove some unused import in ControlServlet (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068565 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:39:40 +00:00
Jacques Le Roux a9a3d4bdeb Fix "Ajax requests prevent externalLoginKey parameters from working correctly" (https://issues.apache.org/jira/browse/OFBIZ-3862) - OFBIZ-3862
Scott reported: To clarify, the problem only occurs if the Ajax call results in a screen being rendered since it is the ScreenRenderer that causes a new key to be generated.

Bilgin suggested: I think a solution would be to skip generating of new external login key for Ajax requests.
Ajax requests can be identified by presence of 'X-Requested-With': 'XMLHttpRequest', http header. It is set by most of the Javascript libraries we use: prototype, jquery.

I coded it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068283 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 07:47:25 +00:00
David E. Jones 30c0a8cb24 Bug fix to support multiple delegators; these places has a hard-coded dispatcher name that may have been created with a delegator different from the one that is now active and attempted to be used with the same old dispatcher, resulting in undesired database switching; changed to the convention of using the delegator name for the dispatcher name, which is the normal default and should be used everywhere a special dispatcher name specific to a context, like a webapp, is not used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1066356 13f79535-47bb-0310-9956-ffa450edef68
2011-02-02 07:31:21 +00:00
Jacques Le Roux 51a2ceb54f A patch from Chatree Srichart "Fix using TagLib in Freemarker." (https://issues.apache.org/jira/browse/OFBIZ-2703) - OFBIZ-2703
Fix using TagLib in freemarker follow this.
1. In ControlServlet.java, create ServletContextHashModel instance and set to request's attritube
2. In ScreenRenderer.java, set ServletContextHashModel instance from request's attribute to context name Application and set HttpRequestHashModel instance from requestAttributes in context to context name Request

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061310 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 14:23:29 +00:00
Hans Bakker d696e3547b When a load balancer is in front of the ofbiz system and takes care of the ssl certificate, ofbiz is now reading the Header[X-Forwarded-Proto] parameters to check if the request was secure or not. It still works the old way if these request parameters are not present
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1057115 13f79535-47bb-0310-9956-ffa450edef68
2011-01-10 08:26:04 +00:00
Scott Gray 47f43a302a Remove unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044931 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:27 +00:00
David E. Jones f2dff15007 Undo part of the changes from Hans in rev 1037624 which caused the system to reset the delegator to the base delegator and ignore the user's specified tenant
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040651 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 17:35:05 +00:00
Jacques Le Roux 600bac5ad9 A patch from Sascha Rodekamp "Redirect from Http to Https causes double service call" (https://issues.apache.org/jira/browse/OFBIZ-3988) - OFBIZ-3988
The problem is, when you call a request over http, but the controller wants an https request, the RequestHandler make an redirect to https (which is indeed pretty cool). But this redirect causes that Events/ Services will be called twice. This can be avoided when we return from the Service/ Event directly after doing the redirect.
Example: http://localhost:8080/ecommerce/control/setdistributor?distributor=4711

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040044 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 09:33:39 +00:00
Jacques Le Roux 66c5dd10a0 A patch from Dukian "Add Traditional Chinese translation for applications, ecommerce, and ofbizsetup" (https://issues.apache.org/jira/browse/OFBIZ-4031) - OFBIZ-4031
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039574 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 21:56:14 +00:00