mapbox / mapbox/tilelive

tilelive.serialize() should throw on invalid Tile obj

Open
#117 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
540
Forks
106
PR merge metrics
No merged PRs in 30d

Description

if you feed `tilelive.serialize()` some poorly formatted Tiles, it sliently skips over them. instead of silently skipping bad stream input, tilellive should probably error or at least warn when you're feeding it bad stuff.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the tilelive.serialize() entry point and reproduce the behavior with a poorly formatted Tile object. Determine the intended error or warning behavior from the existing serialization flow. Done means invalid stream input is no longer silently skipped.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.