hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sreekanth Ramakrishnan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-4212) New lines and leading spaces are not trimmed of a value when configuration is read
Date Fri, 19 Sep 2008 05:24:44 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sreekanth Ramakrishnan updated HADOOP-4212:
-------------------------------------------

    Attachment: HADOOP-4212-1.patch

Attaching patch with updated test case.

- Introducing an attribute for the value called _preserve-whitespace_ . if the value of the
attribute is set to true. Then value is read as is with leading and trailing whitespaces.
Example :
{noformat}
   <property>
    <name>test.key.withoutwhitespace</name>
    <value>
      Test Value
    </value>
  </property>
  <property>
  <name>test.key.withwhitespace</name>
    <value preserve-whitespace="true">
      Test Value
    </value>
  </property>
{noformat}

The value of the _test.key.withoutwhitespace_ would be "Test Value" and _test.key.withwhitespace_
is "\nTest Value\n".


> New lines and leading spaces are not trimmed of a value when configuration is read
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-4212
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4212
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: conf
>    Affects Versions: 0.18.1
>         Environment: Generic
>            Reporter: Sreekanth Ramakrishnan
>            Assignee: Sreekanth Ramakrishnan
>            Priority: Minor
>         Attachments: HADOOP-4212-1.patch, HADOOP-4212-TESTCASE.patch
>
>
> While configuration value is read the leading and trailing spaces and new line characters
are taken into account.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message