Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2.12.0 #7769

Merged
merged 27 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
68119c1
Update develop after v2.11.3
cvat-bot[bot] Apr 2, 2024
ec4297f
Merge pull request #7717 from opencv/dev-release-2.11.3
bsekachev Apr 2, 2024
d87613d
Update CHANGELOG.md (#7718)
bsekachev Apr 2, 2024
73c7081
Docs: fix broken internal links and ensure they stay fixed (#7695)
SpecLad Apr 2, 2024
69f5de4
Migrate docs to a custom domain (#7698)
SpecLad Apr 3, 2024
0f60b27
Switch the most time-consuming pipelines to the large runner (#7723)
SpecLad Apr 3, 2024
6c12c9e
[GSoC2024] Decode uploaded filename from request header (#7646)
AndrewLuGit Apr 4, 2024
69682f2
[GSoC2024] Displayed total no. of annotations (#7654)
KrishavRajSingh Apr 4, 2024
967a5a6
[Snyk] Security upgrade nginx from mainline-alpine to 1.25.4-alpine3.…
nmanovic Apr 4, 2024
2a6fd0d
Fixed annotation menu for GT objects in GT job (#7714)
bsekachev Apr 4, 2024
ea47d00
Migrate to the `dj-rest-auth==5.0.2` and `django-allauth==0.57.2` (#7…
Marishka17 Apr 4, 2024
6c57c03
Update documentation and repo links after transfer to the cvat-ai org…
SpecLad Apr 5, 2024
f1db0fd
[GSoC2024] Enhancement of empty list components (#7659)
syedbarimanjan Apr 5, 2024
70a7cc0
Update datumaro dependency (#7716)
zhiltsov-max Apr 5, 2024
462b923
Fix Typo in "Export annotations and data from CVAT" (#7738)
Yeek020407 Apr 8, 2024
efbafe9
Fix sometimes failed tests problem (#7732)
novda Apr 9, 2024
1355725
Fix spurious failures in `case_17_lock_hide_features.js` (#7742)
SpecLad Apr 10, 2024
ada56a7
[GSoC2024] feat: add shortcut support for pinning properties (#7709)
tahamukhtar20 Apr 10, 2024
2e610ec
Fix incorrect changelog fragment (#7745)
bsekachev Apr 10, 2024
82a7635
Human protocol integration documentation (#7547)
mdacoca Apr 10, 2024
55ea04b
[GSoC2024] feature: allow downloading video frames in custom extensio…
ChanBong Apr 10, 2024
90d5e1f
[GSoC2024] - fixed attribute rename issue (#7670)
ritikraj26 Apr 11, 2024
3fe396c
Added support for `.rar` and some other archives (#7729)
klakhov Apr 11, 2024
b13191d
Mask stays pixelated during editing (#7747)
bsekachev Apr 11, 2024
f1d308e
[GSoC2024] resolved issue #7443 (navigate over unresolved issues) (#7…
thekavikumar Apr 12, 2024
fbc2610
Updating packages with vulnerabilities (#7713)
novda Apr 12, 2024
7401c00
Prepare release v2.12.0
cvat-bot[bot] Apr 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[GSoC2024] Decode uploaded filename from request header (#7646)
<!-- Raise an issue to propose your change
(https://github.com/opencv/cvat/issues).
It helps to avoid duplication of efforts from multiple independent
contributors.
Discuss your ideas with maintainers to be sure that changes will be
approved and merged.
Read the [Contribution
guide](https://opencv.github.io/cvat/docs/contributing/). -->

<!-- Provide a general summary of your changes in the Title above -->

### Motivation and context
<!-- Why is this change required? What problem does it solve? If it
fixes an open
issue, please link to the issue here. Describe your changes in detail,
add
screenshots. -->
This fixes issue #6528, as filenames with special characters must be
decoded from the MIME header back into UTF-8.

### How has this been tested?
<!-- Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc. -->

### Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply.
If an item isn't applicable for some reason, then ~~explicitly
strikethrough~~ the whole
line. If you don't do that, GitHub will show incorrect progress for the
pull request.
If you're unsure about any of these, don't hesitate to ask. We're here
to help! -->
- [x] I submit my changes into the `develop` branch
- [x] I have created a changelog fragment <!-- see top comment in
CHANGELOG.md -->
- [ ] I have updated the documentation accordingly
- [x] I have added tests to cover my changes
- [x] I have linked related issues (see [GitHub docs](

https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
- [x] I have increased versions of npm packages if it is necessary

([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning),

[cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning),

[cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning)
and

[cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning))

### License

- [x] I submit _my code changes_ under the same [MIT License](
https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the
project.
  Feel free to contact the maintainers if that's a concern.

---------

Co-authored-by: Andrey Zhavoronkov <andrey@cvat.ai>
  • Loading branch information
AndrewLuGit and azhavoro committed Apr 4, 2024
commit 6c12c9e59dcd29f68d6143714850b1a4f5ab0e33
4 changes: 4 additions & 0 deletions changelog.d/20240320_174524_andrew.yunxiang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Creating tasks with special characters in uploaded filename
(<https://github.com/opencv/cvat/pull/7646>)
2 changes: 1 addition & 1 deletion cvat/apps/engine/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ def init_tus_upload(self, request):
response = super().init_tus_upload(request)

if self._is_data_uploading() and response.status_code == status.HTTP_201_CREATED:
self._maybe_append_upload_info_entry(response['Upload-Filename'])
self._maybe_append_upload_info_entry(self._get_metadata(request)['filename'])

return response

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Copyright (C) 2020-2022 Intel Corporation
//
// SPDX-License-Identifier: MIT

/// <reference types="cypress" />

context('Create task with special character in uploaded filename', () => {
const issueId = '6528';
const labelName = `Issue ${issueId}`;
const taskName = `New annotation task for ${labelName}`;
const attrName = `Attr for ${labelName}`;
const textDefaultValue = 'Some default value for type Text';
const imagesCount = 1;
const imageFileName = `image_${labelName.replace(' ', '_').toLowerCase()}`;
const width = 1920;
const height = 1080;
const posX = 10;
const posY = 10;
const color = 'gray';
const archiveName = `${imageFileName}👀.zip`;
const archivePath = `cypress/fixtures/${archiveName}`;
const imagesFolder = `cypress/fixtures/${imageFileName}`;
const directoryToArchive = imagesFolder;
const zipLevel = 0;
const extension = 'bmp';

before(() => {
cy.visit('auth/login');
cy.login();
cy.imageGenerator(imagesFolder, imageFileName, width, height, color, posX,
posY, labelName, imagesCount, extension);
cy.createZipArchive(directoryToArchive, archivePath, zipLevel);
cy.window().then((win) => { win.cvat.config.uploadChunkSize = 5; });
});

describe(`Testing "${labelName}"`, () => {
it('Create a task with 5mb upload chunk size', () => {
cy.createAnnotationTask(taskName, labelName, attrName, textDefaultValue, archiveName);
});

it('Check if task exist', () => {
cy.goToTaskList();
cy.contains('.cvat-item-task-name', taskName).should('exist');
});
});

after(() => {
cy.window().then((win) => { win.cvat.config.uploadChunkSize = 100; });
});
});
Loading