graasp / graasp/graasp-api

[BUG] Item with "path like" name gets stripped when exporting

Open
#1,394 0 comments 0 reactions 1 assignee Assigned to @spaenleh View on GitHub
bug :beetle:
Dominant language
TypeScript
Stars
7
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Having an item that has some "path like" components like `hello/world` gets exported as `world`.

This is due to us treating the item name as a "path" when we want to remove a potential extension from the name:
https://github.com/graasp/graasp/blob/4428861f7eb2eea6c83eca111cac7070c84a0d42/src/services/item/plugins/importExport/utils.ts#L58

Treating the item name as a path can have unexpected consequences, and we should probably use another technique to remove a potential extension.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.