|
|
|
[
Permlink
| « Hide
]
Scott Farquhar [Atlassian] - 09/Aug/03 12:50 AM
Now that the new ofbiz entity engine allows validators per-field, we can do this easily (and only for Oracle / other limited dbs)
Need to contact OfBiz to see whether we can do it at the OfBiz level.
Somewhat related rant: why aren't database exceptions logged in JIRA log? You know, those pesky ORA-XXXX messages on Oracle. All I get is this:
— WARN [NoModule] org.ofbiz.core.entity.jdbc.SQLProcessor java.sql.SQLException: Connection was closed — This is less than usefull - I actually thought a few times that DB completed its part of action OK and that the exception in JIRA caused connection to close prematurely. I suppose this is really an OFBiz issue, so I wouldn't mind somebody pointing me to their issue tracker/mail list. FWIW, there is an XSLT stylesheet that can be run against JIRA's XML dump at:
http://www.atlassian.com/software/jira/docs/latest/etc/jira_checklengths.xsl Instructions are provided in the file header. Output consists of URLs to problematic issues: [jeff@localhost jeff]$ java org.apache.xalan.xslt.Process -IN /tmp/a.xml -XSL jira_checklengths.xsl -PARAM url Issues with descriptions over 4000 chars: Issues with comments over 4000 chars: Long issue summaries can be truncated in the UI (I think - unless they end up in the revision history..), and comment bodies will need to be edited by hand in the XML. According to
FWIW, here is how Hibernate has tackled the same problem:
It would be worth investigating if we can actually retrieve the SQL error message. If we can retrieve this and re throw it atleast we would be able to do display the sql error.
e.g. <error> Please contact your DBA from more details on the cause of this. We discussed this problem with the Ofbiz guys here:
http://lists.ofbiz.org/pipermail/dev/2004-September/006528.html Until there is a better solution, could you restrict the textarea's capacity to reflect the storable size?
This should be solved with the same solution described in
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||