[
https://issues.apache.org/jira/browse/TIKA-4944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18124675#comment-18124675
]
ASF GitHub Bot commented on TIKA-4944:
--------------------------------------
tballison commented on PR #3278:
URL: https://github.com/apache/tika/pull/3278#issuecomment-6044776267
2. y, i get it.
Robot's latest. Please push back if the robot is just finding stuff because
I asked it to. Some of these sound reasonable to me, but you know this area of
the code better than I do. :rofl:
```
Remaining maintainer decision
- onenote:entityGuids is a catch-all for any JCID the switch doesn't name.
It is empty on every fixture, and a frozen key
with no known producer is pure surface. I'd drop it, or at minimum give
every new key a one-line javadoc naming the
source object (0x30 page metadata, 0x0B page node, header guidFile vs
FileIdentityGuid) so the semantics freeze with the
name.
- OneNoteJcid, OneNoteGuidCollector, and GUID.fromMicrosoftBytes are new
public classes/methods. Public is the norm for
parser internals in Tika, so fine unless you want them package-private
with the fsshttpb subpackage moved.
Edge case / usability (punt-able)
- Classic files have no <div class="page"> at all, so page GUIDs can't be
tied to page text there. A follow-on JIRA: emit
a page div per jcidPageNode in the classic walker.
Hygiene
- findPageGuid(cell) duplicates the root-resolution logic of walkCell
(unresolvedRoot/resolvedContentRoot). Share one
"roots to walk" helper so they can't diverge.
- testGuidsCollectedBeforeWalkFailurePublished relies on a
NullPointerException from a null objectGroups. A null guard
later would break the test for the wrong reason. Override
indexObjectsById to throw instead.
- MSOneStorePackageTest repeats the same 16-byte literal eight-plus times;
one helper would cut the file substantially.
- Bags are lexically sorted, so document order of pages is lost. The div
ids recover it for FSSHTTPB only. Fine as is, but
a deliberate choice.
```
> Emit onenote page guids in properties
> -------------------------------------
>
> Key: TIKA-4944
> URL: https://issues.apache.org/jira/browse/TIKA-4944
> Project: Tika
> Issue Type: Improvement
> Components: parser
> Reporter: Henry Lindeman
> Priority: Minor
>
> Onenote section files contain page GUIDs which can be used to reconstruct a
> url pointing to a page in the MS SaaS Onenote application. Since MS hands you
> the documents section at a time the only other way to get to the page GUID is
> to ask MS to list the pages in the section, which we'd prefer not to do
--
This message was sent by Atlassian Jira
(v8.20.10#820010)