nus-cs2103-AY2021S2 / pe-dev-response

0 stars 0 forks source link

Tampering theJSON file makes data invisible #1836

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

I manually edited the json file of propertybook.json with this

{ "properties" : [ { "name" : "Bishan", "propertyType" : "Hdb", "address" : "Blk 150 Bishan Street 11 #02-101", "remark" : null, "postalCode" : "571150", "deadline" : "Jun 30, 2021", "client" : "Client Asking Price: $0", "tagged" : [ ], "status" : null }, { "name" : "Bishan", "propertyType" : "Hdb", "address" : "Blk 150 Bishan Street 11 #02-101", "remark" : null, "postalCode" : "571150", "deadline" : "Jun 30, 2021", "client" : "Client Asking Price: $9,223,372,036,854,775,807", "tagged" : [ ], "status" : null } ] }

the app loads with this

image.png


[original: nus-cs2103-AY2021S2/pe-interim#1836] [original labels: severity.Medium type.FunctionalityBug]

w2vgd commented 3 years ago

Team's Response

The properties in the edited json file have the same pair of address and postal code, which is why upon launching the application, the application will detect duplicate properties in the data file and thats why it starts with an empty property book.

image.png

Duplicate status (if any):

--