We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9789b39 commit f80b5b5Copy full SHA for f80b5b5
1 file changed
chef-server-api/app/controllers/application.rb
@@ -231,6 +231,10 @@ def load_cookbook_files(cookbook)
231
232
if segment == :templates || segment == :files
233
mo = sf.match("cookbooks/#{cookbook.name}/#{segment}/(.+?)/(.+)")
234
+ unless mo
235
+ Chef::Log.debug("Skipping file #{sf}, as it doesn't have a proper segment.")
236
+ next
237
+ end
238
specificity = mo[1]
239
file_name = mo[2]
240
url_options = { :cookbook_id => cookbook.name.to_s, :segment => segment, :id => file_name }
0 commit comments