Bugzilla – Bug 440
Metadata Editor: Tags without values can't be added
Last modified: 2019-08-09 10:13:51 UTC
Same issue if you save and load a template. The only way you can add a tag without a value is to add a space in "Value" (which few users will think of doing).
Created attachment 583 [details] Patch provided by Kelson Patch transferred from forum topic: http://forum.audacityteam.org/viewtopic.php?p=264895#p264895
Thus compiles and works OK for me on all three platforms.
The patch still applies OK (just a couple of lines offset) and still works OK here. I've assigned it to myself as a reminder to commit it when the 2.1.2 freeze ends.
Committed https://github.com/audacity/audacity/commit/23186f9bf Marked as Fix Made.
(In reply to Steve Daulton from comment #4) Testing on Mac El Capitan on 01a95c5-2.1.3-alpha-13-feb-16 and Testing on W10 on aud audacity-win-rf933621-2.1.3-alpha-19-feb-16 Tests ok on both platforms Note the command for metadata editing has now changed to "Edit Metadata Tags"
Still works for me on Linux Ubuntu 14.04 32-bit.
Something has broken the fix. REOPENED.
(In reply to Gale Andrews from comment #7) Broken by fix for bug 1382 https://github.com/audacity/audacity/commit/79eeb03
(In reply to Steve Daulton from comment #8) > Broken by fix for bug 1382 So, the fix for this bug 440 must take into account bug 1382 which must then be retested.
(In reply to Gale Andrews from comment #9) Although the symptoms are the same now as when this bug (440) was originally opened, the original bug 440 is still fixed. The problem is that the fix for bug 1382 has caused a new bug with the same symptoms as the original bug 440. The problem now is a direct result of https://github.com/audacity/audacity/commit/79eeb03 Each tag is a name / value pair. If a new tag is added without a value, it is being deleted: if (value.IsEmpty()) { // Erase the tag
(In reply to Steve Daulton from comment #10) >If a new tag is added without a value, it is being deleted: I think this is reasonable behavior I assume that here Stev is quoting from the code: if (value.IsEmpty()) { // Erase the tag If so, then this is intended, designed, behavior And we can document this behavior in the Manual And this this "bug" is an enhancement request
REOPENED. Steve wrote: The bug is a regression. If I create a template with a custom field, I would expect that custom field to be present when I come to use it, not to magically disappear without notice.
DEVEL - FIX MADE https://github.com/audacity/audacity/commit/9d1b75a5d75ad6f5449c22e5cace83f4aa387c10 Bug 1382 will need retesting.
(In reply to James Crook from comment #13) Testing on W10 with audacity-2.3.3-alpha-296-13348841c038bdd7614ae9e401ad0a419f7fb44a This nowrks properly on Windows. In particular, at Step 4 the Composer tag is present. But further testing around the editor shows no untoward behaviors
(In reply to James Crook from comment #13) Testing on macOS 10.14.5 with mac 2.3.3 alpha jc004 of 25Jul19 This now works properly on Mac. In particular, at Step 4 the Composer tag is present. And further testing around the editor shows no untoward behaviors
Works for me on Linux.