Skip to content

High Priority Issues - Sample-Rest-api (4 issues) #2

@Ricky512227

Description

@Ricky512227

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions