MapPreviewPage search displays wrong results on first try

Description

If I open the Layer Preview page and do a search, the results are more than expected.
If the results are so much they create more pages than they should, clicking on one of them will bring to an "Access denied" page.

Repeating the search fixes the results.

Environment

2.12-SNAPSHOT
Git Revision
2ddc43ec90325a5c71cb528c417f0cef5c1d2c9d

Status

Assignee

Torben Barsballe

Reporter

Gnafu

Triage

Fix versions

Affects versions

Components

Priority

Medium
Configure