cancel
Showing results for 
Search instead for 
Did you mean: 

Any fix for reported problem?

hsjawanda
Champ in-the-making
Champ in-the-making
Hi all,

I ran into the problem described in http://www.alfresco.org/jira/browse/AR-283 today. When is a fix planned for this problem? The person who reported this problem also provided a file that fixed the problem for him. How good/bad is this fix?  If you guys already know the fix (or have a good idea), but don't have the time, maybe I can put the fix in.

This problem might hold up development work by other people on my team. All help will be appreciated.  Thanks.
2 REPLIES 2

derek
Star Contributor
Star Contributor
Hi,

This issue only occurs when DEBUG is on.  The nulls were passed through very deliberately as the arguments are only used during callbacks, which the SpringAwareUserTransaction was handling itself… except when the base class was attempting to generate a DEBUG string (a use-case I didn't test for).

The solution was just to override the method that generated the DEBUG string and return something that was method-independent.  After all, the SpringAwareUserTransaction is method-independent.

The bug has been closed today, but the fix went in on Tuesday.  As an aside, it is possible to be generating but not outputing all DEBUG statements.  In case you were not intentionally leaving DEBUG on: http://www.alfresco.org/mediawiki/index.php/Log4J_Configuration

Regards

davidc
Star Contributor
Star Contributor
FYI, the fix was committed in SVN revision 2064.