Menu

#1660 ntf: ntf server truncates additionalText while logging notification.

4.6.2
fixed
Praveen
None
defect
ntf
d
default
minor
2016-01-14
2016-01-08
Praveen
No

Ntf server truncates additionalText to 1024 while logging notification if additionalText is greater than 1024.

Steps to reproduce:
1) In imm.xml increase value of attribute logMaxLogrecsize in calss SA_CONFIG to 1500. Also
increase saLogStreamFixedLogRecordSize for >safLgStrCfg=saLogAlarm,safApp=safLogService to more than 1024.
2) Subscribe for notification using ntfsubscribe.
3) Run below command to send a notification with additionalText greater than 1024.
ntfsend -a "for i in {1..1300}; do a=$a"1"; done;echo $a"

Logged notification in //var/log/opensaf/saflog/saLogAlarm_20160108_112757.log file will have additionalText with length1024 .
Reason is NTF server, while saflogging, truncates additionalText to 1024 if it is greater than 1024. There is not such restrictions for delievering it to any subscriber.

Related

Tickets: #1660
Wiki: ChangeLog-4.6.2

Discussion

  • Praveen

    Praveen - 2016-01-08
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,12 +1,12 @@
    -Ntf server truncates additionalText to 1024 while logging notification if additionalTest is greater than 1024.
    +Ntf server truncates additionalText to 1024 while logging notification if additionalText is greater than 1024.
    
     Steps to reproduce:
     1) In imm.xml increase value of attribute logMaxLogrecsize in calss SA_CONFIG to 1500. Also
        increase saLogStreamFixedLogRecordSize for >safLgStrCfg=saLogAlarm,safApp=safLogService to more than 1024.
     2) Subscribe for notification using ntfsubscribe. 
    -3) Run belwo command to send a notification with additionalText greater than 1024.
    +3) Run below command to send a notification with additionalText greater than 1024.
      ntfsend -a "`for i in {1..1300}; do a=$a"1"; done;echo $a`"
    
    - Loged notification in //var/log/opensaf/saflog/saLogAlarm_20160108_112757.log file will have additionalText with length1024 .
    + Logged notification in //var/log/opensaf/saflog/saLogAlarm_20160108_112757.log file will have additionalText with length1024 .
     Reason is NTF server, while saflogging, truncates additionalText to 1024 if it is greater than 1024. There is not such restrictions for delievering it to any subscriber.
    
    • status: unassigned --> accepted
     
  • Praveen

    Praveen - 2016-01-08
    • status: accepted --> review
     
  • Praveen

    Praveen - 2016-01-14

    changeset: 7229:3dc71bb8efd4
    tag: tip
    parent: 7226:a74f874537d2
    user: praveen.malviya@oracle.com
    date: Thu Jan 14 12:15:01 2016 +0530
    summary: ntfs: increase limit of additionalText while logging notification[#1660]

    changeset: 7228:2fffd1c4dde0
    branch: opensaf-4.7.x
    parent: 7225:13c7304bd3ee
    user: praveen.malviya@oracle.com
    date: Thu Jan 14 12:14:52 2016 +0530
    summary: ntfs: increase limit of additionalText while logging notification[#1660]

    changeset: 7227:ba18ebb1e2eb
    branch: opensaf-4.6.x
    parent: 7224:088f487565d5
    user: praveen.malviya@oracle.com
    date: Thu Jan 14 12:13:26 2016 +0530
    summary: ntfs: increase limit of additionalText while logging notification[#1660]

    https://sourceforge.net/p/opensaf/mailman/message/34749676/

     

    Related

    Tickets: #1660

  • Praveen

    Praveen - 2016-01-14
    • status: review --> fixed
     

Log in to post a comment.