Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1027

Allow null values when setting metadata

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.3
    • metadata
    • None

    Description

      Many file formats have optional metadata entries that result in a lot of if (value == null) statements around metadata.set(...) calls. It would be more convenient if the set method explicitly allowed a null value and that a call like metadata.set(name, null) was essentially equivalent to a metadata.remove(name) call.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jukkaz Jukka Zitting
            jukkaz Jukka Zitting
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment