[OGo-Bugs][Bug 1990] WOKeyPathAssociation.m:937: A backsync raises the exception when there is no accessor (gnustep-port)

bugs@opengroupware.org bugs@opengroupware.org
Wed, 2 Jul 2008 15:41:09 +0200 (CEST)


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug
report.

http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1990





------- Additional Comments From Golovin.SV@gmail.com  2008-07-02 15:39 -------
>From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080221
Firefox 1.5

Description of problem:
Hi!

There is a chunk of code:
-------------------------------------------------------------------b
 // we do not check the return value, because a set is allowed to
fail
 // (in SOPE ;-) [if there is no accessor, a backsync is just
ignored]
#if 1
    _setValue(self, _value, _component);
#else
 if (!_setValue(self, _value, _component)) {
  [self logWithFormat:@"could not set value %@ component %@",
        _value, _component];
 }
#endif
-------------------------------------------------------------------e

It doesn't work with gnustep (i believe (according to the comment) it
is assumed lF) and raises exception when i want to step in a project (see
"Actual Result").  The backtrace is attached. 

I managed to see the project with a test case (see attached patch).

Version-Release number of selected component (if applicable):
SVN_REVISION:1621, library-combo:gnu-gnu-gnu

How reproducible:
Always

Steps to Reproduce:
1. Create a project
2. Try to step the project in
3.
    

Actual Results:  Application Server caught exception:



 session: 1818181801486B551B

 element: 005486b5520097e3668.0.17.1.3.b.attributes.1

 context: <0x0x97e3668[WOContext]: 005486b5520097e3668
app=ogo-webui-1.1 sn=1818181801486B551B
eid=005486b5520097e3668.0.17.1.3.b.attributes.1 rqeid=(nil)>

 request: <WORequest[0x0x9846c00]: method=GET
uri=/ogo-webui-1.woa/x/activate?woinst=6168&oid=10501&wosid=1818181801486B551B
app=ogo-webui-1 rqKey=x rqPath=activate>



 class:   NSException

 name:    NSUnknownKeyException

 reason:  Unable to set nil value for key

 info:

  {NSTargetObjectUserInfoKey = "<EOGenericRecord: description
Project attributes={dbStatus = updated; endDate = \"2028-12-30
23:00:00 +0000\"; isFake = 0; kind = \"<null>\"; name =
\"\\U041F\\U0440\\U043E\\U0435\\U043A\\U0442\"; number = P10501;
objectVersion = 3; ownerId = 10111; projectId = 10501; startDate =
\"2008-06-30 22:00:00 +0000\"; status = \"<null>\"; teamId =
\"<null>\"; url = \"skyrix://SERVER0/\"; }>"; NSUnknownUserInfoKey =
object; }

Expected Results:  I expected to see the created project

Additional info:

I'm not along having to deal with the problem:

http://mail.opengroupware.org/pipermail/gnustep-port/2007-November/000116.html

------- Additional Comments From Golovin.SV@gmail.com  2008-07-02 15:41 -------
Created an attachment (id=660)
 --> (http://bugzilla.opengroupware.org/bugzilla/attachment.cgi?id=660&action=view)
Backtrace


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.