You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kevin Williams (JIRA)" <tu...@ws.apache.org> on 2006/05/26 23:42:29 UTC
[jira] Created: (TUSCANY-433) User provided CUD with partial update
results in NPE
User provided CUD with partial update results in NPE
----------------------------------------------------
Key: TUSCANY-433
URL: http://issues.apache.org/jira/browse/TUSCANY-433
Project: Tuscany
Type: Bug
Components: Java DAS RDB
Versions: Java-Mx
Reporter: Kevin Williams
ApplyChanges with partil userprovided update statement fails with NPE.
Test case DefectTests.readModifyAply and readModifyApply1() demonstrate this bug
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: [jira] Updated: (TUSCANY-433) User provided CUD with partial update results in NPE
Posted by Brent Daniel <br...@gmail.com>.
Darius,
I don't think string manipulation is the right approach here. I think
we need to find where the NPE is occuring, check for a null value
there, and throw a RuntimeException letting the user know that the
update statement does not contain a parameter for an updated
DataObject Property. I believe the information you need to determine
if this is the case is already available in the DAS without doing all
these extra String operations. Calling toUpperCase() and performing
two string searches for every update command created would be pretty
expensive.
Brent
On 7/5/06, Darius S. DeJesus (JIRA) <tu...@ws.apache.org> wrote:
> [ http://issues.apache.org/jira/browse/TUSCANY-433?page=all ]
>
> Darius S. DeJesus updated TUSCANY-433:
> --------------------------------------
>
> Attachment: Tuscany-433
>
> This forces a user to create a complete update statement, by throwing a runtime exception in the UpdateGenerator if some columns are left out. I believe that is the best way to handle it, tho it can easily be changed to ignore non updated columns.
>
> > User provided CUD with partial update results in NPE
> > ----------------------------------------------------
> >
> > Key: TUSCANY-433
> > URL: http://issues.apache.org/jira/browse/TUSCANY-433
> > Project: Tuscany
> > Type: Bug
>
> > Components: Java DAS RDB
> > Versions: Java-Mx
> > Reporter: Kevin Williams
> > Assignee: Kevin Williams
> > Attachments: Tuscany-433
> >
> > ApplyChanges with partil userprovided update statement fails with NPE.
> > Test case DefectTests.readModifyAply and readModifyApply1() demonstrate this bug
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Assigned: (TUSCANY-433) User provided CUD with partial
update results in NPE
Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-433?page=all ]
Kevin Williams reassigned TUSCANY-433:
--------------------------------------
Assign To: Kevin Williams
Waiting for patch from Darius
> User provided CUD with partial update results in NPE
> ----------------------------------------------------
>
> Key: TUSCANY-433
> URL: http://issues.apache.org/jira/browse/TUSCANY-433
> Project: Tuscany
> Type: Bug
> Components: Java DAS RDB
> Versions: Java-Mx
> Reporter: Kevin Williams
> Assignee: Kevin Williams
>
> ApplyChanges with partil userprovided update statement fails with NPE.
> Test case DefectTests.readModifyAply and readModifyApply1() demonstrate this bug
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-433) User provided CUD with partial update
results in NPE
Posted by "Darius S. DeJesus (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-433?page=all ]
Darius S. DeJesus updated TUSCANY-433:
--------------------------------------
Attachment: Tuscany-433
Tuscany-433 was solved by recent changes to the code base. This is a refractored version of the original tests, moved to CorrectedDefects.java, and with all the associated XML files updated properly.
> User provided CUD with partial update results in NPE
> ----------------------------------------------------
>
> Key: TUSCANY-433
> URL: http://issues.apache.org/jira/browse/TUSCANY-433
> Project: Tuscany
> Issue Type: Bug
> Components: Java DAS RDB
> Affects Versions: Java-Mx
> Reporter: Kevin Williams
> Assigned To: Kevin Williams
> Attachments: Tuscany-433, Tuscany-433
>
>
> ApplyChanges with partil userprovided update statement fails with NPE.
> Test case DefectTests.readModifyAply and readModifyApply1() demonstrate this bug
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Closed: (TUSCANY-433) User provided CUD with partial update
results in NPE
Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-433?page=all ]
Kevin Williams closed TUSCANY-433.
----------------------------------
Fix Version/s: Java-Mx
Resolution: Fixed
Verified with revision: 423268
> User provided CUD with partial update results in NPE
> ----------------------------------------------------
>
> Key: TUSCANY-433
> URL: http://issues.apache.org/jira/browse/TUSCANY-433
> Project: Tuscany
> Issue Type: Bug
> Components: Java DAS RDB
> Affects Versions: Java-Mx
> Reporter: Kevin Williams
> Assigned To: Kevin Williams
> Fix For: Java-Mx
>
> Attachments: Tuscany-433, Tuscany-433
>
>
> ApplyChanges with partil userprovided update statement fails with NPE.
> Test case DefectTests.readModifyAply and readModifyApply1() demonstrate this bug
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-433) User provided CUD with partial update
results in NPE
Posted by "Darius S. DeJesus (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-433?page=all ]
Darius S. DeJesus updated TUSCANY-433:
--------------------------------------
Attachment: Tuscany-433
This forces a user to create a complete update statement, by throwing a runtime exception in the UpdateGenerator if some columns are left out. I believe that is the best way to handle it, tho it can easily be changed to ignore non updated columns.
> User provided CUD with partial update results in NPE
> ----------------------------------------------------
>
> Key: TUSCANY-433
> URL: http://issues.apache.org/jira/browse/TUSCANY-433
> Project: Tuscany
> Type: Bug
> Components: Java DAS RDB
> Versions: Java-Mx
> Reporter: Kevin Williams
> Assignee: Kevin Williams
> Attachments: Tuscany-433
>
> ApplyChanges with partil userprovided update statement fails with NPE.
> Test case DefectTests.readModifyAply and readModifyApply1() demonstrate this bug
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org