Bug 714 - Impossible to find a task if its owner has no id
Summary: Impossible to find a task if its owner has no id
Status: RESOLVED FIXED
Alias: None
Product: CS3343_SEP_group8
Classification: Unclassified
Component: DAO (show other bugs)
Version: version0
Hardware: PC Windows
: --- major
Assignee: Meryem
URL:
Depends on:
Blocks:
 
Reported: 2022-11-16 17:16 HKT by Meryem
Modified: 2022-11-17 11:42 HKT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Meryem 2022-11-16 17:16:31 HKT
Problem location : TaskDAO.java
Problem found : TestTaskDAO.java

In the method findTask() we cannot find a task if its owner has no id. That means we would have dead entries in our file which we cannot reach

Solution: User should ALWAYS have a userId -> delete the empty constructor