Start to record some interesting flaws ...
1. Search defects introduced by front page paging mechanism
Background: The default page using the search function is OK (search returned successfully), but on the second page the same search content returned to empty, click again to search has the ability to correctly return content.
Monitor several net requests
- Request URL: The default page search succeeds and returns the requests to find content http://*******/spring/taskaction/getsubactionlist?_search=false&nd= 1451294618340&rows=10&page=1&sidx=&sord=asc&ruleid=11111222&msgtemplateid=
- Request URL: The same search content returned as empty http://*******/spring/taskaction/getsubactionlist?_search=false&nd= when you search again after entering the second page 1451294720344&rows=10&page=2&sidx=&sord=asc&ruleid=11111222&msgtemplateid=
- Request URL: Click Search again to return content to normal http://*******/spring/taskaction/getsubactionlist?_search=false&nd=1451294804649 &rows=10&page=1&sidx=&sord=asc&ruleid=11111222&msgtemplateid=
The reason is obvious. On the paging parameter page, when the number of results for the search is less than rows of one page, the page=2 query returns an empty result, with a simple query condition and then limit to introduce the problem.
Record some interesting bugs.