Fix cantaloupe sync column mapping — greedy name keyword matches Location Name #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The Cantaloupe sync API column mapping had a greedy matching bug. The heuristic keyword "name" (single word) was matching "Location Name" headers before the more specific "location name" keyword could match. This caused asset names to be stored in the
_location_namefield and vice versa.Fix
Commits
f7ffa0e— fix column mapping heuristic, add comprehensive testsTest Results