MantisBT - Doomseeker
View Issue Details
0004027Doomseeker[All Projects] Documentationpublic2022-09-07 12:132024-11-03 19:12
WubTheCaptain 
Zalewa 
normaltweakhave not tried
closedfixed 
 
1.4.01.4.0 
0004027: IpToCountry_v3.dat.SPECS.txt is ambiguous about the support for multiple sections with the same Type field
0003952:0022367:
Quote from WubTheCaptain
What I did not understand from reading the V3 spec is if there can be multiple sections with the same Type BYTE, e.g. multiple Type 0 (license) sections.
'https://bitbucket.org/Doomseeker/doomseeker-blobs/src/1401483906a6a6efede29f55eb7a0542165fdf46/IpToCountry_v3.dat.SPECS.txt [^]'
Quote
Section
-------

Sections can contain any arbitrary data. The Type of the section informs
what should be expected in the given section and how should it be parsed.

The sections can appear in any order, so the file can have Types
"2, 0, 1" just as well as "0, 1, 2". No section is mandatory either.


  Field    | Size      | Description
  -----------------------------------
  Type     | BYTE      | 0 for Licence, 1 for GeoIP, 2 for URL.
  Size     | ULONGLONG | Size of the section in bytes.
  Payload  | <Size>    | Contents of the section.
The above quoted text in steps to reproduce has the following copyright notice:
Quote
Copyright
=========

Copyright (C) 2022 The Doomseeker Team

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.  This file is offered as-is,
without any warranty.
No tags attached.
Issue History
2022-09-07 12:13WubTheCaptainNew Issue
2022-09-07 12:22WubTheCaptainNote Added: 0022368
2022-09-07 12:42WubTheCaptainNote Added: 0022369
2022-09-07 12:45WubTheCaptainNote Edited: 0022369bug_revision_view_page.php?rev_id=13700
2022-09-07 12:45WubTheCaptainNote Edited: 0022369bug_revision_view_page.php?rev_id=13701
2022-09-07 12:47WubTheCaptainNote Deleted: 0022369
2022-09-07 12:52ZalewaNote Added: 0022371
2022-09-07 12:52ZalewaAssigned To => Zalewa
2022-09-07 12:52ZalewaStatusnew => acknowledged
2022-09-07 12:52ZalewaNote Edited: 0022371bug_revision_view_page.php?bugnote_id=22371#r13703
2022-09-07 15:27ZalewaNote Added: 0022375
2022-09-07 15:27ZalewaStatusacknowledged => needs review
2022-09-10 14:30ZalewaTarget Version => 1.4.0
2023-01-05 12:08ZalewaNote Added: 0022639
2023-01-05 12:08ZalewaStatusneeds review => resolved
2023-01-05 12:08ZalewaFixed in Version => 1.4.0
2023-01-05 12:08ZalewaResolutionopen => fixed
2024-11-03 19:12ZalewaStatusresolved => closed

Notes
(0022368)
WubTheCaptain   
2022-09-07 12:22   
V3 also has an unfortunate design: There is no easy way to tie multiple Type 0 ("license", aka "Text of the licence note.") and Type 2 ("URL", aka "The URL to the database's home page.") together? Specifically with Creative Commons attribution licenses, these two need to be tied together by the license's requirements. I detailed this more in my other note 0003952:0022365.
(0022371)
Zalewa   
2022-09-07 12:52   
Acknowledging that this is an omission in the spec. The licence and geoip sections can exist many times and the program should parse them as they go and append the data to the already known data. The URL section can also theoretically exist more than once but I don't see a purpose for that. Maybe to have more than one home page? The current implementation will just overwrite the previous URL if this section occurs again. In any of these cases it should be considered abnormal to have more than one of each section.

Quote from WubTheCaptain
There is no easy way to tie multiple Type 0 ("license", aka "Text of the licence note.") and Type 2 ("URL", aka "The URL to the database's home page.") together?

Because those sections aren't meant to be associated together. If you need an URL to the licence you can embed it in the licence note. The program won't make it clickable though.

(0022375)
Zalewa   
2022-09-07 15:27   
I hope this will explain the ambiguities:'https://bitbucket.org/Doomseeker/doomseeker-blobs/commits/70c550c129105304d0a415260f6575b2ea80c49e [^]'
(0022639)
Zalewa   
2023-01-05 12:08   
Since there are no further remarks I consider this as resolved.