question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DROID CLI can't identify file format by extension in no-profile-mode

See original GitHub issue

The current signature file (DROID_SignatureFile_V94.xml) contains some file format definitions that contain only an <Extension> and no <InternalSignatureID>-reference to a byte signature. One such example is the file format definition for “Java language source code file” (x-fmt/422):

<FileFormat ID="809" Name="Java language source code file" PUID="x-fmt/422">
   <Extension>java</Extension>
</FileFormat>

DROID UI identifies a file with the .java-extension correctly as x-fmt/422 but DROID CLI returns Unknown.


Input:

touch Test.java
./droid.sh -Nr Test.java -Ns DROID_SignatureFile_V94.xml -Nc container-signature-20180920.xml

Output:

DROID 6.4 No Profile mode: Runtime Information
Selected folder or file: Test.java
Binary signature file: DROID_SignatureFile_V94.xml
Container signature file: container-signature-20180920.xml
Open archives: False
Open web archives: False
/home/xxx/DROID-6.4/Test.java,Unknown

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jcharletcommented, Jun 10, 2020
1reaction
jcharletcommented, Feb 4, 2020

a bit late to come to the party but going to look at this, see if it can be included in the upcoming release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DROID: User Guide | The National Archives
An 'extension' identification means that a format was identified purely on the basis of its file extension. Such an identification may not be...
Read more >
Generate FileCollection report XML from Command Line with ...
I have tested the build in reports and I can't seem to find one that links the file path (or URI) and the...
Read more >
How To Open a File With No Extension - Online Tech Tips
You can check the file extension from the Type column in Windows ... you do if your file does have an extension but...
Read more >
How can I determine file type without an extension on Windows?
You can use the TrID tool which has a growing library of file type definitions for identifying files with.
Read more >
Error: not a valid Photoshop document - Adobe Support
Determine the file type of a document. You may have saved a file with the wrong extension, for example a JPEG file with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found