[File] [PATCH] Magdir/ole2compounddocs Autodesk Inventor Part *.IPT described only generic

Christos Zoulas christos at zoulas.com
Sat Aug 5 13:53:49 UTC 2023


Committed, thanks!

christos

> On Jul 30, 2023, at 12:55 PM, Jörg Jenderek <joerg.jen.der.ek at gmx.net> wrote:
> 
> Hello,
> 
> some days ago i handles some 3D models with file name extension IPT.
> 
> When running file command version 5.45 with -e cdf option on such
> examples i get an output like:
> 
> bottom.ipt: OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    3 FAT sectors, Mini FAT start sector 0x3, 3 Mini FAT sectors
> 	    : UNKNOWN, clsid 0x90b4294db249d01193c37e0706000000
> 	    {4D29B490-49B2-11D0-93C3-7E0706000000} with names
> 	    RSeStorage RSeEmbeddings Templates RefdFiles V6 RSeDb
> side1.ipt:  OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    2 FAT sectors, Mini FAT start sector 0x3, 4 Mini FAT sectors
> 	    : UNKNOWN, clsid 0x90b4294db249d01193c37e0706000000
> 	    {4D29B490-49B2-11D0-93C3-7E0706000000} with names
> 	    RSeStorage RSeEmbeddings Templates RefdFiles V5 RSeDb
> side2.ipt:  OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    2 FAT sectors, Mini FAT start sector 0x3, 4 Mini FAT sectors
> 	    : UNKNOWN, clsid 0x90b4294db249d01193c37e0706000000
> 	    {4D29B490-49B2-11D0-93C3-7E0706000000} with names
> 	    RSeStorage RSeEmbeddings Templates RefdFiles V4 RSeDb
> side3.ipt:  OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    3 FAT sectors, Mini FAT start sector 0x3, 4 Mini FAT sectors
> 	    : UNKNOWN, clsid 0x90b4294db249d01193c37e0706000000
> 	    {4D29B490-49B2-11D0-93C3-7E0706000000} with names
> 	    RSeStorage RSeEmbeddings Templates RefdFiles V5 RSeDb
> side4.ipt:  OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    2 FAT sectors, Mini FAT start sector 0x3, 4 Mini FAT sectors
> 	    : UNKNOWN, clsid 0x90b4294db249d01193c37e0706000000
> 	    {4D29B490-49B2-11D0-93C3-7E0706000000} with names
> 	    RSeStorage RSeEmbeddings Templates RefdFiles V5 RSeDb
> top.ipt:    OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    4 FAT sectors, Mini FAT start sector 0x3, 3 Mini FAT sectors
> 	    : UNKNOWN, clsid 0x90b4294db249d01193c37e0706000000
> 	    {4D29B490-49B2-11D0-93C3-7E0706000000} with names
> 	    RSeStorage RSeEmbeddings Templates RefdFiles V7 RSeDb
> 
> Furthermore only generic mime type application/x-ole-storage is
> shown with -i and -e cdf option. With option --extension only 3 byte
> sequence ??? is shown.
> 
> When running file command with -e soft or no extra option for all
> examples i get a output like:
> 
> bottom.ipt: Composite Document File V2 Document
> 	    , Cannot read section info
> side1.ipt:  Composite Document File V2 Document
> 	    , Cannot read section info
> side2.ipt:  Composite Document File V2 Document
> 	    , Cannot read section info
> side3.ipt:  Composite Document File V2 Document
> 	    , Cannot read section info
> side4.ipt:  Composite Document File V2 Document
> 	    , Cannot read section info
> top.ipt:    Composite Document File V2 Document
> 	    , Cannot read section info
> 
> For comparison reason i also run the file format identification
> utility DROID ( See https://sourceforge.net/projects/droid/). The
> examples are only described generic as "OLE2 Compound Document Format"
> by fmt/111 Signature.
> 
> For comparison reason i run the file format identification utility
> TrID ( See https://mark0.net/soft-trid-e.html). This identifies also
> all examples with low priority as "Generic OLE2 / Multistream
> Compound" by docfile.trid.xml. All examples are described as "Autodesk
> Inventor Part" with IPT file name extension by ipt.trid.xml (See
> appended trid-v-ipt.txt.gz).
> 
> Luckily with information given by the other tools i also found a
> page about Autodesk Inventor on Wikipedia and page about IPT on file
> formats archive team web site.
> There it is mow written that is is based on Microsoft Compound File
> format. Following that internal link jumps to that page. There are
> also displayed CLSID is mentioned.
> That informations are now expressed by additional comment lines inside
> Magdir/ole2compounddocs like:
> # URL:		http://fileformats.archiveteam.org/wiki/IPT
> #		https://en.wikipedia.org/wiki/Autodesk_Inventor
> # Reference:	http://mark0.net/download/triddefs_xml.7z
> #		defs/i/ipt.trid.xml
> 
> The IPT examples are recognized as "OLE 2 Compound Document"
> by starting bytes (\320\317\021\340\241\261\032\341) at the beginning
> inside Magdir/ole2compounddocs. Obviously there exist no code
> fragment to do sub class identification. So the examples are
> described as "UNKNOWN". Furthermore the examples have a registered
> Root storage object CLSID. That value is shown as
> 0x90b4294db249d01193c37e0706000000 or expressed in standard curly
> braces expression by {4D29B490-49B2-11D0-93C3-7E0706000000}.
> That means that in branch handling non null CLSID GUID lines must be
> added. The last entry was Autodesk 3ds Max (*.max). So i add afterwards
> lines for my inspected examples. That looks like:
> >>88 	ubequad		0x93c37e0706000000	: Autodesk
> >>>80 	ubequad		0x90b4294db249d011	Inventor Part
> !:mime	model/x-autodesk-ipt
> !:ext	ipt
> I found no official or often used mime type. So i display an user
> defined one.
> 
> After applying the above mentioned modifications by patch
> file-5.45-ole2compounddocs-ipt.diff then all my inspected Autodesk
> Inventor Part examples are now described with more details. This now
> looks with -e cdf option like:
> bottom.ipt: OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    3 FAT sectors, Mini FAT start sector 0x3, 3 Mini FAT sectors
> 	    : Autodesk Inventor Part
> side1.ipt:  OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    2 FAT sectors, Mini FAT start sector 0x3, 4 Mini FAT sectors
> 	    : Autodesk Inventor Part
> side2.ipt:  OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    2 FAT sectors, Mini FAT start sector 0x3, 4 Mini FAT sectors
> 	    : Autodesk Inventor Part
> side3.ipt:  OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    3 FAT sectors, Mini FAT start sector 0x3, 4 Mini FAT sectors
> 	    : Autodesk Inventor Part
> side4.ipt:  OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    2 FAT sectors, Mini FAT start sector 0x3, 4 Mini FAT sectors
> 	    : Autodesk Inventor Part
> top.ipt:    OLE 2 Compound Document, v3.62, SecID 0x1,
> 	    4 FAT sectors, Mini FAT start sector 0x3, 3 Mini FAT sectors
> 	    : Autodesk Inventor Part
> 
> I hope my diff file can be applied in future version of file
> utility.
> 
> Unfortunately the IPT file name suffix is also used for other file formats.
> 
> With best wishes,
> Jörg Jenderek
> --
> Jörg Jenderek
> <trid-v-ipt.txt.gz><file-5_45-ole2compounddocs-ipt_diff.DEFANGED-443><file-5_45-ole2compounddocs-ipt_diff_sig.DEFANGED-444>--
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
> <sanitizer.log>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20230805/9ce6a21a/attachment.asc>


More information about the File mailing list