Unqualified layers are looked up in the default workspace, but layer grups are not

Description

Creating a workspace specific group in the default workspace and then reaching it via WMS, it won't be found if the url is not workspace qualified and the workspace prefix is missing from layers, but doing the same with a layer, it will work instead.
This inconsistent behavior might cause troubles if a layer is replaced by a same named layer group, links that used to work, do not anymore

Environment

None

Status

Assignee

Torben Barsballe

Reporter

Andrea Aime

Triage

Fix versions

Affects versions

2.14-RC

Priority

Medium
Configure