Skip to content

Bug Detection Report - Sample-Rest-api (19 issues found) #1

@Ricky512227

Description

@Ricky512227

Bug Detection Report for Sample-Rest-api

Date: 2025-12-23T22:32:34.816Z

Total Bugs Found: 19

  • High Severity: 4
  • Medium Severity: 0
  • Low Severity: 15

High Severity Issues

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)

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())

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)

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())

Low Severity Issues

Found 15 low severity issues. See full report in workflow artifacts for details.

Full report available in workflow artifacts.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions