Opened 11 months ago

Last modified 10 months ago

#15533 new bug

[scripting] Incorrect reply to InternalName property in Tracker

Reported by: X512 Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Application Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All


This is hrev53618 gcc2hybrid.

At least one Tracker window should be opened.

When executing command

hey "application/x-vnd.Be-TRAK" GET InternalName of View 0 of Window 2

, reply is

Reply BMessage(B_REPLY):
   "error" (B_INT32_TYPE) : 0 (0x00000000)

, but "result" field containing name string should be present.

Change History (4)

comment:1 by korli, 11 months ago

Component: Kits/libtracker.soKits/Application Kit

The first view is probably a BGroupView: which isn't given a name. The BHandler which handles the "InternalName" request tries to add the name to the BMessage at BMessage ignores the call, being passed a NULL value. It seems one can't add a NULL "result" field in a BMessage, and the failure B_BAD_VALUE is ignored in BHandler::MessageReceived().

In the end, the right question is what should be the correct reply. B_BAD_VALUE as a error isn't nice too.

comment:2 by X512, 10 months ago

BeOS returns empty B_REPLY message in this case, "error" field is also missing.

I think that it's strange that NULL is a valid name for BHandler. At least "" (empty string) name should be used. I don't know can it cause compatability issues.

comment:3 by korli, 10 months ago

Sorry, I'm not following you. When BeOS has the same behavior, where is the bug?

comment:4 by X512, 10 months ago

I have not checked BeOS behavior when I create this ticket. In terms of BeOS compatibility this is not a bug, but behavior looks weird.

Note: See TracTickets for help on using tickets.