buggnokii - Bugs: bug #20817, a failed gnokii --writephonebook...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #20817: a failed gnokii --writephonebook doesn't return non-zero

Submitter:  Baurzhan Ismagulov <ibr>
Submitted:  Sat 18 Aug 2007 09:04:11 PM UTC
   
 
Category:  gnokii Severity:  3 - Normal
Item Group:  minor malfunction Status:  Fixed
Privacy:  Public Assigned to:  pkot
Open/Closed:  Closed

Sun 02 Sep 2007 09:47:28 PM UTC, comment #5: 

Ah, OK. In such case please change open/closed and status to open/in progress.

Please try the attached patch. It should really work now.

BTW. If you are trying to sync phonebook it is really worth looking at opensync.

(file #13871)

Pawel Kot <pkot>
Group administrator
Sun 02 Sep 2007 08:44:35 PM UTC, comment #4: 

Hello Paweł,

I'm probably not very clear. I'm using gnokii from a shell script and rely on the process exit status ($?) to detect whether the command has succeeded.

So far, I get zero exit code for any command that fails, so this is really the same bug. Here I deliberately give a command that I expect to fail and check the exit code:

ibr@medeu:~$ echo "Abc;123;ME;5000;5;11;10;2;123;11;2;3;123" |gnokii --writephonebook -o
GNOKII Version 0.6.19cvs
Write FAILED (The current frame isn't handled by the incoming function.): memory type: Internal memory, loc: 5000, name: Abc, number: 123
ibr@medeu:~$ echo $?
0

Thanks in advance,
Baurzhan.

Baurzhan Ismagulov <ibr>
Sun 02 Sep 2007 08:03:42 PM UTC, comment #3: 

I got:

Message sent: 0x03 / 0x0012
00 01 00 07 01 01 00 01 02 05 00 00 00 00 13 88 |                
00 00                                           |                
Message received: 0x03 / 0x000e
01 71 00 08 00 01 0f 00 00 08 34 00 00 00       |  q        4    
Received message type 03
Write failed (Podane miejsce w pamięci jest nieprawidłowe.): memory type: Pamięć wewnętrzna, loc: 5000, name: Abc, number: 123

(ie. invalid location error)

Please post debug log. And for new bugs please open new bugs, not attach to existing ones.

Pawel Kot <pkot>
Group administrator
Sun 02 Sep 2007 07:55:07 PM UTC, comment #2: 

Hmm, I've tried the following command with today's HEAD, and it still exits with 0:

ibr@medeu:~$ echo "Abc;123;ME;5000;5;11;10;2;123;11;2;3;123" |gnokii --writephonebook -o
GNOKII Version 0.6.19cvs
Write FAILED (The current frame isn't handled by the incoming function.): memory type: Internal memory, loc: 5000, name: Abc, number: 123

Baurzhan Ismagulov <ibr>
Thu 23 Aug 2007 12:08:15 PM UTC, comment #1: 

That should be fixed right now. Thanks for the report.

Pawel Kot <pkot>
Group administrator
Sat 18 Aug 2007 09:04:11 PM UTC, original submission:  

gnokii cvs 20070817 with 6230

gnokii --writephonebook fails with the following error message:

Write FAILED (Data format is not valid.)

But the exit code is zero.

Baurzhan Ismagulov <ibr>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #13711:  .gnokiirc added by ibr (288B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pkot (Posted a comment)
  • -email is unavailable- added by ibr (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-09-02 pkot Attached File- Added writephonebook-nonzero-retcode.patch, #13871
    2007-09-02 pkot Item GroupNone minor malfunction
    2007-08-23 pkot StatusNone Fixed
        Assigned toNone pkot
        Open/ClosedOpen Closed
    2007-08-18 ibr Attached File- Added .gnokiirc, #13711

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code