Import fails on large ZIP exports
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- web-dev
调研方向
首先检查 #304 中讨论的导出和导入入口,重点关注媒体、背景、标记和共享图像引用在导出的 JSON 中是如何表示的。重现大型 ZIP 的情况,并验证仅包含所引用图像的导出可以在不超过 20MB 上传限制的情况下导入。
由索引模型根据 Issue 内容生成。
描述
In discussion in #304 we found that StoryMap creates export ZIP files containing all files associated with a project, sometimes creating a ZIP which is larger than the 20MB maximum upload supported by the system. Thus, the export cannot be re-imported.
In this specific case, there were many files in the export which were not in active use in the storymap. This is unsurprising, since there's no "delete" functionality. It's also the case that many of the images were much larger than they reasonably needed to be for display in a storymap which would almost certainly have been smaller (in pixel dimensions) than the image file.
The workaround was to create a new ZIP, omitting all image files which weren't referenced in the JSON files in the export. This imported without any issue.
We might consider filtering the images part of the export process to only include images which are actively used in the media, background, marker, or sharing image locations. It's possible in theory that we'd still create an export larger than 20MB. I don't really think it's a good idea to increase that threshold, but then, I don't know what we'd do besides tell people "sorry."
I suppose we could also consider downsampling uploaded images, although that should go in its own issue if we decide it's the right way to go.
- 主要语言
- JavaScript
- 星标
- 250
- 派生
- 61
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NUKnightLab/StoryMapJS 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
NUKnightLab/StoryMapJS#507 ·
-
Visual glitches未关闭
难度 4/5 3-5 天 新手友好度 48/100
NUKnightLab/StoryMapJS#506 ·
-
难度 5/5 一周以上 新手友好度 35/100
NUKnightLab/StoryMapJS#505 ·
-
难度 2/5 1-3 小时 新手友好度 50/100
NUKnightLab/StoryMapJS#495 ·
-
难度 4/5 3-5 天 新手友好度 35/100
NUKnightLab/StoryMapJS#488 ·
查看 NUKnightLab/StoryMapJS 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
area-clientside-dartpad
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
alphagov/public-asset-checker#378 · 1 条评论 ·
维护者通常 1 天内回复
-
S: triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
[Bug] Large consumer queue inventories crash health diagnostics可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
apache/rocketmq-dashboard#7242 ·
维护者通常 3 天内回复