Commit 18a14de
fix: rename internal drag-drop MIME type to RFC 6838 form (#1468)
* fix: rename internal drag-drop MIME type to RFC 6838 form
The internal MIME identifier QtPass uses for drag-and-drop payloads
was registered as "application/vnd+qtpass.dragAndDropInfoPasswordStore".
The '+' in that form is reserved for structured-syntax suffixes (e.g.
"application/atom+xml") in RFC 6838; the vendor-tree separator is
'.'. Rename to "application/vnd.qtpass.dragAndDropInfoPasswordStore".
Used in exactly 9 places, all inside QtPass:
- src/storemodel.cpp: mimeTypes(), mimeData(), canDropMimeData() x2,
parseDropData()
- tests/auto/model/tst_storemodel.cpp: 4 assertions + makeMimeData()
Internal-only identifier (drag/drop happens between QtPass widgets in
the same process), so no compatibility break.
Also rearrange the test include block — <memory> now sits with the
C++ stdlib headers above the Qt headers, matching the
stdlib-then-Qt-then-project convention used elsewhere.
Build clean, 33/33 storemodel tests pass.
Other CodeRabbit nits in tst_util.cpp (DF9 underscore, hoist
ASSUMED_MAX_KEY_ID_LENGTH, ScopedUmask RAII) were re-evaluated and
still skipped — same rationale as #1467.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test: QVERIFY2 on the two MIME-type assertions
CodeRabbit nit on #1468 follow-up: bare QVERIFY() on the
mimeTypes()/mimeData() assertions doesn't say which MIME string was
expected if the test fails. Switch to QVERIFY2 with descriptive
messages.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f0361c2 commit 18a14de
2 files changed
Lines changed: 18 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
10 | | - | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
221 | | - | |
222 | | - | |
223 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
| |||
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
301 | | - | |
| 305 | + | |
302 | 306 | | |
303 | 307 | | |
304 | 308 | | |
| |||
404 | 408 | | |
405 | 409 | | |
406 | 410 | | |
407 | | - | |
| 411 | + | |
408 | 412 | | |
409 | 413 | | |
410 | 414 | | |
| |||
0 commit comments