Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2455

Size rotating file handler incorrectly handles file size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.CR1
    • 7.1.0.Alpha1
    • Logging
    • None

    Description

      In SizeRotatingFileHandler, the file size is defined like this:

      <xs:complexType name="sizeType">
              <xs:attribute name="value">
                  <xs:simpleType>
                      <xs:restriction base="xs:string">
                          <xs:pattern value="^[0-9]+[bkmgtp]?$"/>
                      </xs:restriction>
                  </xs:simpleType>
              </xs:attribute>
          </xs:complexType>

      However, the model is using a Long instead of a String. So you can't specify file sizes like "10m" or "256k".

      Attachments

        Issue Links

          Activity

            People

              jperkins-rhn James Perkins
              ssilvert@redhat.com Stan Silvert
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: