Fixed dump for case when task name has a slash (#503)

main
Boris Sekachev 7 years ago committed by Nikita Manovich
parent e4435fc791
commit 074500de7b

@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed incorrect width of shapes borders in some cases
- Fixed annotation parser for tracks with a start frame less than the first segment frame
- Fixed interpolation on the server near outside frames
- Fixed dump for case when task name has a slash
### Security
-

@ -128,6 +128,9 @@ function showOverlay(message) {
}
async function dumpAnnotationRequest(tid, taskName) {
// URL Router on the server doesn't work correctly with slashes.
// So, we have to replace them on the client side
taskName = taskName.replace(/\//g, '_');
const name = encodeURIComponent(`${tid}_${taskName}`);
return new Promise((resolve, reject) => {
const url = `/api/v1/tasks/${tid}/annotations/${name}`;

Loading…
Cancel
Save