Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22071

Property value is cut at first comma when requested with explicit String type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 16.2.0
    • Configuration
    • None
    • Unknown

    Description

      While it makes sense when you don't indicate the type since it's Apache Common Configuration syntax for list, it feels strange when indicate upfront that this property is a String.

      ConfigurationSource configuration;
      
      configuration.getProperty("myproperty", String.class)
      

      with xwiki.properties containing

      myproperty=value,with,commas
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: