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

Submitted by:  Baurzhan Ismagulov <ibr>
Submitted on:  Sat 18 Aug 2007 09:04:11 PM UTC  
 
Category: gnokiiSeverity: 3 - Normal
Item Group: minor malfunctionStatus: Fixed
Privacy: PublicAssigned to: Pawel Kot <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>
Project AdministratorIn charge of this item.
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

    1. 01 00 07 01 01 00 01 02 05 00 00 00 00 13 88 |
    2. 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>

 

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
  • -unavailable- added by pkot (Posted a comment)
  • -unavailable- added by ibr (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 02 Sep 2007 09:47:28 PM UTCpkotAttached File-=>Added writephonebook-nonzero-retcode.patch, #13871
    Sun 02 Sep 2007 08:03:42 PM UTCpkotItem GroupNone=>minor malfunction
    Thu 23 Aug 2007 12:08:15 PM UTCpkotStatusNone=>Fixed
      Assigned toNone=>pkot
      Open/ClosedOpen=>Closed
    Sat 18 Aug 2007 09:04:11 PM UTCibrAttached File-=>Added .gnokiirc, #13711

    Back to the top


    Powered by Savane 3.1-cleanup1