admin 管理员组文章数量: 1086019
2024年4月12日发(作者:数组批量赋值)
7 系统出错处理设计System error handling design(撰写人:
杨林森 3112101126 Yanglinsen 2102-011-0300)
7.1 出错信息 Error message
在软件的开发过程中,需要对软件中存在的漏洞立即进行处理,即使一个很
小的漏洞,也会造成整个软件开发系统的垃圾资源无限增多,最终可能会导致系
统的瘫痪。因此在系统设计中,对拟开发系统要注意数据的约束性。为了进行数
据统一收集和规范数据统一格式方面管理者的处理,针对存在的安全隐患,本项
目组进行了统一约束规范。同时,项目组也应该解决Web服务器端的信息安全问
题,这样才能更好的运用管理系统,从而减少系统的维修次数,确保系统的安全
使用。
In the software development process, the need for software vulnerabilities that
exist in immediate treatment, even a small flaw will cause garbage resources of the
entire software development system and the infinite increase, may eventually lead to
paralysis of the system. Therefore, system design, system development should pay
attention to the proposed binding data. In order to deal with a unified data collection
and standardized data formats unified manager for security risks, the project team
conducted a unified constraint specification. Meanwhile, the project team should also
solve the problem of information security Web server, so as to make better use of
management systems, thereby reducing the number of system maintenance, to ensure
the safe use of the system.
出现错误
数据类型错误
逻辑出错
系统内部出错 外部设备出错
Error
Error in data
types
Logic
error
Internal
system error
External
device error
错误名称
Error
解决方法
Solution
1. 用户名和密码出错
User name and password error
提示输入不正确,检查信息是否正确,并返回。
Prompted to enter is not correct, check the
information is correct, and return.
2. 验证码输入错误 登录失败,请重新输入。
Verification code input errors Login failed, please re-enter.
3. 帐号注册为空或者已存在 如空提示错误,返回;存在此用户,提示存在,返
The account register is empty or 回。
already exists Error such as an empty return; exist for this user,
indicate the presence of return.
4. 注册密码低于6位 提示低于6位信息,并重新输入。
Registration password is less than 6 Prompted less than 6, and re-enter.
5. 年龄大于100或小于0 提示信息:年龄应该在0与100之间。
Age greater than 100 or less than 0 The message: Age should be between 0 and 100.
6. 联系方式具有的格式输入错误 提示不是其所拥有的格式,重新输入。
Contact the format of the input error Prompt is not its own format, re-enter.
7. 编号输入不为整数或小于0 提示,编号取值范围错误,应该为正整数。
Number is not entered as an integer Tip No. range error, it should be a positive integer.
or less than 0
8. 标题为空,或标题大于规定字数 提示标题不能为空且应该小于X字,重新输入。
The title is empty, or title greater than Prompt title can not be empty and should be less
the specified number of words than X characters, re-enter.
9. 商品库存数量输入是小数 提示,数量应该为整数,清除并重新输入。
Product inventory quantity input is a Tip number is an integer, remove and re-enter.
decimal
10. 信息ID输入为空 提示出错信息,返回重新输入。
Information ID input is empty With an error message and return to re-enter.
11. 信息类型大于50个字符 提示字数超出规定,重新输入。
The type of information is greater Prompt words out of the provisions re-enter.
than 50 characters
12. 新密码与确认新密码不同 提示新密码与确认新密码不同!
New password and confirm the new Prompted a new password and confirm the new
password password!
13. 提交信息失败 提示失败信息,并建议检查错误信息类型
Submit information failed Prompt failure, and recommended to check the
error message type
14. 手机号码输入不是11位数字 提示您输入的手机号码有误,应该为11位数字。
Phone number input is not 11 digits Prompts you to enter the phone number is wrong,
should be 11 digits.
7.1 输入错误及解决方案
7.1 input errors and solutions
7.2 Web服务器错误处理设计
7.2 the Web server error handling design
错误名称
Error
1. 不合法的Url请求
Url request legal
2. 程序出错抛出异常
Error, an exception is
thrown
3. 数据访问量的过大
Amount of data access over
4. 登陆调用web服务器方法
Log in to call the web server
method
输出
Output
提示错误,返回登录界面
Error, return to the login
screen
输入Log日志中的错误信息
Enter the error message in
the Log
返回请求失败信息
Returns request failure
information
登录页面,要求用户登录
Logon page requires users
to log
补救
Remedy
Struts的请求错误控制
Struts request error-control
判断错误信息,返回登录界面
An error of judgment, and
return to the login screen
针对需求,重新选择服务器
Re-select the server for the
needs
Struts拦截所有请求,判断
用户是否登陆,必须登录才能
进行其他操作。
Struts to intercept all
requests to determine
whether the user login, you
must be logged in to
perform other operations.
7.2 补救措施 Remedial measures
所有的系统,不管采用哪种开发方式,都不可避免的存在弱点。所以不但在
信息管理系统这一级而且在计算中心这一级(如果适用,也包括远程设备)都要审
核并提出设计到安全性的问题。通过识别系统的弱点来减少侵犯安全性的危险,
以及采取必要的预防措施来提高安全水平,这是用户和信息服务管理部门可做得
到的。
All systems, regardless of which way the use of development are inevitable
weaknesses. Therefore, not only in the information management system at this level
and be designed to review and propose security issues in computing center at this
level (if applicable, including remote device). By identifying weaknesses in the
system to reduce the risk of security violations, and to take the necessary
precautionary measures to improve the safety level, which is the user and the
版权声明:本文标题:(完整word版)系统出错处理设计 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1712913198a612168.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论