ctdk / goiardi

A Chef server written in Go, able to run entirely in memory, with optional persistence with saving the in-memory data to disk or using MySQL or Postgres as the data storage backend. Docs: http://goiardi.readthedocs.io/en/latest/index.html
http://goiardi.gl
Apache License 2.0
280 stars 39 forks source link

Client can't download from filestore after hostname change. #40

Closed oker1 closed 9 years ago

oker1 commented 9 years ago

I've started goiardi without a hostname parameter, uploaded a cookbook. The client could download it. I've restarted the server with a hostname parameter, and the client tried the filestore urls with the old (default) hostname. After I've uploaded the cookbook again it worked.

ctdk commented 9 years ago

Strange. I remember this coming up at some point before, but I thought I fixed it. I'll take a look.

ctdk commented 9 years ago

Aha, I found it. (Been busy at work, I'm afraid.) Running tests on it now, but while the hostname for file URLs was being fixed almost everywhere, it was broken exactly one place. Unfortunately when I tested it before it managed to fetch it from the old place. A fix for this, assuming I didn't break something subtly with this, should be up in the morning.

ctdk commented 9 years ago

There's a fix in this for master. I'll be cutting a new release pretty soon too. Thanks for finding that this was still a problem.

ctdk commented 9 years ago

This has been released for about a month. Unless I hear otherwise I'm going to assume this fixed it.