Actions
Bug #2685
closedRegular expression problems on checking installation media name
Description
When creating a media with some format can lead to the foreman being stuck:
The root cause is the regular expression checking the name of media on spaces:
"SimpleOrg/Dev_Env/PublishedRHEL532 RHEL Server 5.9 i386" =~ /\A(\S+\s?)+\Z
This takes ages to compute.
On the other hand, it doesn't catch this example "My Media with trailing space "
The more efficient and working regexp should be
/\A(\S+\s)*\S+\Z/
Going to send a PR
Updated by Dominic Cleal over 11 years ago
- Status changed from Assigned to Ready For Testing
- Target version set to 1.2.0
Updated by Ivan Necas over 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 21f2b8d4197a15ac8ace3a9c87e0fbcb1e2c49dc.
Actions