Task51Start - Optional custom status codes and optional redirect targets
See TasksExplained? for more infos about tasks. This task is based on the template at TaskTemplateStart
Status : closed
Category : gui
Date opened : 2007-04-05
Description : Optional custom status codes and optional redirect targets
Referenced in stories/tasks :
WebStatistics
Testsuite : test/functional/rules_generator_test.rb
Commited revision : 196
Remarks :
- There is need for optional status code when mandatory elements are missing.
- There is need for optional status code when parameter domain is not met.
- Redirect targets come into action, when custom status code is 3xx.
According to RFC 2616, the following status codes should come with a location (redirect) header in the response:
Note that 304 and 306 (reserved) should not reply with a redirect. Remo will thus ignore the location field with these status codes.
Changelog
2007-05-04 - added db fields
- Table:field
- headers:mandatory_status_code
- querystringparameters:mandatory_status_code
- cookieparameters:mandatory_status_code
- postparameters:mandatory_status_code
- headers:mandatory_location
- querystringparameters:mandatory_location
- cookieparameters:mandatory_location
- postparameters:mandatory_location
- headers:domain_status_code
- querystringparameters:domain_status_code
- cookieparameters:domain_status_code
- postparameters:domain_status_code
- headers:domain_location
- querystringparameters:domain_location
- cookieparameters:domain_location
- postparameters:domain_location
2007-05-04 - gui and rule editor done
I rewrote the whole tests for the rule editor. Simpified it by testing the subfunctions and not the overall generated ruleset anymore.