Bulk creation doesn't work when key has a period

Description

Had a user report a strange issue recently: The bulk requirement creator was failing with the standard error "No replacement performed. Can you edit the page?", but she could create individual requirements without a problem. She was certain she had the right permissions and was putting in the key correctly.

It appears the problem was that the user was trying to use requirement keys with a period in them, for example KEY-1.1. The default behavior of the "Create similar definitions for all [KEY] on this page" is that when creating links it searches using the regex \w*KEY\w*, which will not match the period and thus not create any issues. It works properly when writing a custom regex that matches the period.

I wonder if this is expected behavior and my user is wrong or if it is a bug. I suspect a bug because clearly the key KEY-1.1 is a valid key that RY likes, as opposed to some other special characters, so I think it should be able to find it on the page. As well, the creator is able to correctly count the occurrences of KEY on the page.

We do use old versions of RY and Confluence badly in need of upgrade, so it could be that the behavior has changed, but I don't have the opportunity to upgrade and check just yet.

Environment

Confluence 5.9.4 on CentOS 6.7, RY 1.6.16

Observations

None

Assignee

Unassigned

Reporter

Nate Rathjen

Labels

Participants

None

Components

Priority

Matter of months
Configure