---

** [tickets:#1421] logsv: not check special characters from saLogStreamFileName 
value**

**Status:** unassigned
**Milestone:** 4.6.1
**Created:** Thu Jul 16, 2015 09:35 AM UTC by Vu Minh Nguyen
**Last Updated:** Thu Jul 16, 2015 09:35 AM UTC
**Owner:** nobody


Logsv does not validate if the saLogStreamFileName value has sepcial characters 
or not.
See at line of saLogStreamFileName attribute.
>
    # immlist safLgStrCfg=str9,safApp=safLogService
    Name                                               Type         Value(s)
    ========================================================================
    safLgStrCfg                                        SA_STRING_T  
safLgStrCfg=str9 
    saLogStreamSeverityFilter                          SA_UINT32_T  30 (0x1e)
    saLogStreamPathName                                SA_STRING_T  . 
    saLogStreamNumOpeners                              SA_UINT32_T  1 (0x1)
    saLogStreamMaxLogFileSize                          SA_UINT64_T  5000000 
(0x4c4b40)
    saLogStreamMaxFilesRotated                         SA_UINT32_T  4 (0x4)
    saLogStreamLogFullHaltThreshold                    SA_UINT32_T  75 (0x4b)
    saLogStreamLogFullAction                           SA_UINT32_T  3 (0x3)
    saLogStreamLogFileFormat                           SA_STRING_T  <Empty>
    saLogStreamFixedLogRecordSize                      SA_UINT32_T  150 (0x96)
    saLogStreamFileName                                SA_STRING_T  \/ a bc  . 
txt 
    saLogStreamCreationTimestamp                       SA_TIME_T    
1437031872934978000 (0x13f15cdfed3421d0, Thu Jul 16 08:31:12 2015)
    logStreamDiscardedCounter                          SA_UINT64_T  0 (0x0)
    SaImmAttrImplementerName                           SA_STRING_T  
safLogService 
    SaImmAttrClassName                                 SA_STRING_T  
SaLogStreamConfig 
    SaImmAttrAdminOwnerName                            SA_STRING_T  <Empty>


As the result, logsv gets failed to create cfg/log files.

In trace log, we get following err message:

> Jul 16  8:31:13.068090 osaflogd [417:lgs_util.c:0106] TR 
> lgs_create_config_file_h - Config file path "/repl_opensaf/saflog/./\/ a bc  
> . txt.cfg"
Jul 16  8:31:13.068997 osaflogd [417:lgs_filehdl.c:0170] >> 
create_config_file_hdl
Jul 16  8:31:13.069422 osaflogd [417:lgs_filehdl.c:0172] TR 
create_config_file_hdl - file_path "/repl_opensaf/saflog/./\/ a bc  . txt.cfg"
Jul 16  8:31:13.074774 osaflogd [417:lgs_filehdl.c:0182] NO Could not open 
'/repl_opensaf/saflog/./\/ a bc  . txt.cfg' - No such file or directory
Jul 16  8:31:13.075243 osaflogd [417:lgs_filehdl.c:0232] << 
create_config_file_hdl: rc = -1
Jul 16  8:31:13.075975 osaflogd [417:lgs_util.c:0166] << 
lgs_create_config_file_h: rc = -1
Jul 16  8:31:13.079080 osaflogd [417:lgs_stream.c:0347] TR 
log_initiate_stream_files - lgs_create_config_file_h() FAIL



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to