Openbravo Issue Tracking System - Openbravo ERP  | ||||||||||||||||||||||||||
| View Issue Details | ||||||||||||||||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
| 0034131 | Openbravo ERP | Y. DBSourceManager | public | 2016-09-29 16:09 | 2016-09-30 19:07 | |||||||||||||||||||||
| Reporter | alostale | |||||||||||||||||||||||||
| Assigned To | alostale | |||||||||||||||||||||||||
| Priority | urgent | Severity | major | Reproducibility | have not tried | |||||||||||||||||||||
| Status | closed | Resolution | fixed | |||||||||||||||||||||||
| Platform | OS | 5 | OS Version | |||||||||||||||||||||||
| Product Version | ||||||||||||||||||||||||||
| Target Version | Fixed in Version | 3.0PR16Q4 | ||||||||||||||||||||||||
| Merge Request Status | ||||||||||||||||||||||||||
| Review Assigned To | caristu | |||||||||||||||||||||||||
| OBNetwork customer | OBPS | |||||||||||||||||||||||||
| Web browser | ||||||||||||||||||||||||||
| Modules | Core | |||||||||||||||||||||||||
| Support ticket | ||||||||||||||||||||||||||
| Regression level | ||||||||||||||||||||||||||
| Regression date | ||||||||||||||||||||||||||
| Regression introduced in release | ||||||||||||||||||||||||||
| Regression introduced by commit | ||||||||||||||||||||||||||
| Triggers an Emergency Pack | No | |||||||||||||||||||||||||
| Summary | 0034131: can't export database in verbose mode if there's a config script changing a column to nullable | |||||||||||||||||||||||||
| Description | If there is a config script that changes a column from not null to null (or in the other way around), when trying to export DB a NPE is thrown and the process stops in case bbdd.verbosity is set to debug. | |||||||||||||||||||||||||
| Steps To Reproduce | 1. Install attached template 2. Set bbdd.verbosity=DEBUG in Openbravo.properties 3. run ant export.database -> NPE is thrown: /opt/OpenbravoERP/build.xml:787: The following error occurred while executing this line: /opt/OpenbravoERP/src-db/database/build.xml:159: java.lang.NullPointerException at org.apache.ddlutils.alteration.ColumnRequiredChange.toString(ColumnRequiredChange.java:122) at java.lang.String.valueOf(String.java:2849) at java.lang.StringBuilder.append(StringBuilder.java:128) at org.openbravo.utils.OBLogAppender.append(OBLogAppender.java:95) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.debug(Category.java:260) at org.openbravo.ddlutils.util.DBSMOBUtil.applyConfigScripts(DBSMOBUtil.java:997) at org.openbravo.ddlutils.util.DBSMOBUtil.loadDataStructures(DBSMOBUtil.java:928) at org.openbravo.ddlutils.util.DBSMOBUtil.loadDataStructures(DBSMOBUtil.java:896) at org.openbravo.ddlutils.util.DBSMOBUtil.loadDataStructures(DBSMOBUtil.java:890)  | |||||||||||||||||||||||||
| Proposed Solution | ||||||||||||||||||||||||||
| Additional Information | ||||||||||||||||||||||||||
| Tags | No tags attached. | |||||||||||||||||||||||||
| Relationships | 
  | |||||||||||||||||||||||||
| Attached Files | https://issues.openbravo.com/file_download.php?file_id=9874&type=bug  | |||||||||||||||||||||||||
| Issue History | ||||||||||||||||||||||||||
| Date Modified | Username | Field | Change | |||||||||||||||||||||||
| 2016-09-29 16:09 | alostale | New Issue | ||||||||||||||||||||||||
| 2016-09-29 16:09 | alostale | Assigned To | => platform | |||||||||||||||||||||||
| 2016-09-29 16:09 | alostale | OBNetwork customer | => Yes | |||||||||||||||||||||||
| 2016-09-29 16:09 | alostale | Modules | => Core | |||||||||||||||||||||||
| 2016-09-29 16:09 | alostale | Triggers an Emergency Pack | => No | |||||||||||||||||||||||
| 2016-09-29 16:13 | alostale | Description Updated | bug_revision_view_page.php?rev_id=13282#r13282 | |||||||||||||||||||||||
| 2016-09-29 16:13 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=13284#r13284 | |||||||||||||||||||||||
| 2016-09-30 09:12 | alostale | Assigned To | platform => alostale | |||||||||||||||||||||||
| 2016-09-30 09:12 | alostale | File Added: org.openbravo.test.template-0.0.0.obx | ||||||||||||||||||||||||
| 2016-09-30 09:14 | alostale | Summary | can't export database if there's a config script changing a column to nullable => can't export database in verbose mode if there's a config script changing a column to nullable | |||||||||||||||||||||||
| 2016-09-30 09:14 | alostale | Description Updated | bug_revision_view_page.php?rev_id=13291#r13291 | |||||||||||||||||||||||
| 2016-09-30 09:14 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=13292#r13292 | |||||||||||||||||||||||
| 2016-09-30 09:26 | hgbot | Checkin | ||||||||||||||||||||||||
| 2016-09-30 09:26 | hgbot | Note Added: 0090400 | ||||||||||||||||||||||||
| 2016-09-30 09:26 | hgbot | Status | new => resolved | |||||||||||||||||||||||
| 2016-09-30 09:26 | hgbot | Resolution | open => fixed | |||||||||||||||||||||||
| 2016-09-30 09:26 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/dbsm-main/rev/9ea2ed34264c8659fccac2445b8692a375cd44ea [^] | |||||||||||||||||||||||
| 2016-09-30 09:27 | hgbot | Checkin | ||||||||||||||||||||||||
| 2016-09-30 09:27 | hgbot | Note Added: 0090401 | ||||||||||||||||||||||||
| 2016-09-30 09:27 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/dbsm-main/rev/9ea2ed34264c8659fccac2445b8692a375cd44ea [^] => http://code.openbravo.com/erp/devel/pi/rev/c2059804fd2c23c306a39dbb7c9281a09dfc8568 [^] | |||||||||||||||||||||||
| 2016-09-30 09:27 | alostale | Review Assigned To | => caristu | |||||||||||||||||||||||
| 2016-09-30 09:28 | alostale | Relationship added | related to 0034102 | |||||||||||||||||||||||
| 2016-09-30 09:58 | caristu | Relationship added | related to 0034138 | |||||||||||||||||||||||
| 2016-09-30 09:59 | caristu | Note Added: 0090407 | ||||||||||||||||||||||||
| 2016-09-30 09:59 | caristu | Status | resolved => closed | |||||||||||||||||||||||
| 2016-09-30 09:59 | caristu | Fixed in Version | => 3.0PR16Q4 | |||||||||||||||||||||||
| 2016-09-30 10:02 | caristu | Relationship added | related to 0034144 | |||||||||||||||||||||||
| 2016-09-30 19:07 | hudsonbot | Checkin | ||||||||||||||||||||||||
| 2016-09-30 19:07 | hudsonbot | Note Added: 0090441 | ||||||||||||||||||||||||
| Notes | |||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||