Homework1
The errors I will mention after are from the project in the last semester. The project is a Java Web project which is about a system for the bone marrow donation.
Briefly, I met 2 errers in my project. One is for the logical and the other one is for the messy code.
For the Error1, I will introduce it in detail. First of all, the system need a log-in module, and if you do not log in then you are just a common user of this website besides you cannot change any information in this website. However, at first in my system, even if you are not the administrators you can change the information too provided that you remember the URL of the page which is for changing the infomation.
This is a terrible error in the system, it may bring lots of problems in the security. Besides, it may make the website have a lot of wrong information so that make the users confused about that.
Fianlly, I find this error by testing my system. I copy my URL of the page for changing things and then I paste it into another browser. I find I can get into it too. As a result, I find this error and debug immediately. By add serveral lines of the code, the problem has been solved in the end.
For the Error2, this is error for messy code and this error is very popular in the website programming. When I need to load the information that the users have typed in into my database and when I get the information from my database to my webpage, there is always messy code if the infomation is in Chinese. This often make people annoyed because there may be lots of problems that result in this problem.
This error may make the whole system terrible because if the users are Chinese then their names are in Chinese of course and then this error will not match the users and the passwords in the database and make the system down.
I find this error when I test if the system is strong. I use several type of the languages and symbols as the user name then this error came into exist and make a big trouble. Fortunately, I change the page encoding and the database encoding and then solved this terrible problem.