#18752 closed bug (fixed)

IOM document MIME type doesn't return supported apps

Reported by: humdinger Owned by: nobody
Priority: normal Milestone: R1/beta5
Component: Servers/registrar Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

This is hrev57502, 64bit.

I noticed that ShowImage doesn't populate the "Open with..." menu when viewing Icon-O-Matic icons.

I wrote a small test app that calls GetSupportingApps() on the "application/x-vnd.Haiku-icon" MIME type and prints out the MIME type and the returned BMessage. It's attached.

The output is:

MimeType application/x-vnd.Haiku-icon
BMessage('rgrz') {
        be:sub = int32(0x0 or 0)
        be:super = int32(0x0 or 0)
        result = int32(0x0 or 0)
}

So zero supported apps, which signatures would normally be added in "applications" string fields to the BMessage.

Attachments (2)

App.cpp (425 bytes ) - added by humdinger 11 months ago.
source
checkMIME (8.7 KB ) - added by humdinger 11 months ago.
64bit binary

Download all attachments as: .zip

Change History (6)

by humdinger, 11 months ago

Attachment: App.cpp added

source

by humdinger, 11 months ago

Attachment: checkMIME added

64bit binary

comment:1 by humdinger, 11 months ago

It appears that it works with lower-case "Haiku", so "application/x-vnd.haiku-icon".

So either change the MIME type in the database, or - there has to be some comparison somewhere - do the comparison case-insensitive.

RFC2045 says:

The type, subtype, and parameter names are not case sensitive.

Hints?

comment:2 by waddlesplash, 11 months ago

The type is declared as "Haiku-icon" everywhere but in ShowImage's RDEF: https://xref.landonf.org/source/search?q=%22Haiku-icon%22&defs=&refs=&path=&hist=&type=&project=haiku

So, if it's declared that way in ShowImage, then something must already be doing case-insensitive comparison. But since IOM lists it capitalized, then something else must be happening here.

comment:4 by waddlesplash, 11 months ago

Milestone: UnscheduledR1/beta5
Resolution: fixed
Status: newclosed

Original fix merged at hrev57523, then a more sophisticated fix done and the original fix backed out in hrev57530.

Note: See TracTickets for help on using tickets.