You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the bindings are stored as a pipe delimited set when you add to the set or remove from it, save fails with a console error on bindingsToString.
Old style binding: http:#{httpPort}://#{UseStandardHttpBinding}/false when parsed host is undefined.
Solution
A new migration Script0092MigrateIisBindingsToJson that reads entire DeploymentProcess table, looking in Steps -> Actions -> Properties -> Octopus.Action.IISWebSite.Bindings, it ignores any that are new style, already have the indicator of starting as a JSON array is empty [] or start of populated set [{.
@pawelpabich yes it will be fixed for customers when they install v4 and Script0093MigrateIisBindingsToJson runs, same goes if they run the migrator and go to v4.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you think you've found a related issue, please contact our support team so we can triage your issue, and make sure it's handled appropriately.
lockbot
locked as resolved and limited conversation to collaborators
Nov 24, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue
If the bindings are stored as a pipe delimited set when you add to the set or remove from it, save fails with a console error on
bindingsToString
.Old style binding:
http:#{httpPort}://#{UseStandardHttpBinding}/false
when parsed host is undefined.Solution
A new migration
Script0092MigrateIisBindingsToJson
that reads entireDeploymentProcess
table, looking inSteps -> Actions -> Properties -> Octopus.Action.IISWebSite.Bindings
, it ignores any that are new style, already have the indicator of starting as a JSON array is empty[]
or start of populated set[{
.A new BindingEntry is built up from the split up of the pipe delimited string, following how Calamari does it in this conditional branch of code.
Test cases
In test function:
CleanupBindingsCheck_Script0092MigrateIisBindingsToJson
Unit tests with crafted steps containing old style
Compared Database pre migration with post migration (Script0092MigrateIisBindingsToJson)
During testing, reviewed changes to the entire document, only changes were by design.
The text was updated successfully, but these errors were encountered: