-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
HIGH Priority Bug Report for Sample-Rest-api
Date: 2025-12-23T23:00:14.686Z
Priority: P0
Severity: HIGH
Total Issues: 4
1. MyBookAPI/MyUtilties/getCsvData.go:60
Category: error_handling
Empty error check - error is ignored
fmt.Println("Given File Path ::", csvFilePath)
csvFile, err := os.Open(csvFilePath)
//fmt.Println(reflect.TypeOf(csvFile))
if err != nil {
log.Fatalln(err)
}
csvReaderObj := csv.NewReader(csvFile)
2. MyBookAPI/MyUtilties/getCsvData.go:65
Category: error_handling
Empty error check - error is ignored
}
csvReaderObj := csv.NewReader(csvFile)
records, err := csvReaderObj.ReadAll()
if err != nil {
log.Fatalln(err)
}
//fmt.Println(len(records), reflect.TypeOf(records), reflect.ValueOf(records).Kind())
3. MyBookAPI/searches.go:54
Category: error_handling
Empty error check - error is ignored
fmt.Println("Given File Path ::", csvFilePath)
csvFile, err := os.Open(csvFilePath)
//fmt.Println(reflect.TypeOf(csvFile))
if err != nil {
log.Fatalln(err)
}
csvReaderObj := csv.NewReader(csvFile)
4. MyBookAPI/searches.go:59
Category: error_handling
Empty error check - error is ignored
}
csvReaderObj := csv.NewReader(csvFile)
records, err := csvReaderObj.ReadAll()
if err != nil {
log.Fatalln(err)
}
//fmt.Println(len(records), reflect.TypeOf(records), reflect.ValueOf(records).Kind())
Full report available in workflow artifacts.