Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9.7.0 upgrade script does not fire when going from before 9.7.0 to 9.7.1 #4075

Closed
1 of 3 tasks
valadas opened this issue Sep 10, 2020 · 5 comments · Fixed by #4076
Closed
1 of 3 tasks

9.7.0 upgrade script does not fire when going from before 9.7.0 to 9.7.1 #4075

valadas opened this issue Sep 10, 2020 · 5 comments · Fixed by #4076

Comments

@valadas
Copy link
Contributor

valadas commented Sep 10, 2020

Description of bug

When upgrading from earlier than 9.7.0 to 9.7.1, the config merge script for 9.7.0 does not fire. This is probably caused by the lack of a 09.07.00.SqlDataProvider because that version did not have sql changes.

Possible workarounds

If you are doing a clean 9.7.1 install

No workaround needed, the normal install works fine.

If you are upgrading from 9.7.0 to 9.7.1

Nothing special is needed, this upgrade path will work.

If you are upgrading from any version before 9.7.0

  • Unzip the upgrade zip and add an empty text file named 09.07.00.SqlDataProvider in the Providers\DataProviders\SqlDataProvider folder.
  • Continue the upgrade as usual

If you have already upgraded to 9.7.1 before encountering this issue

  • Find the web.config file that is located in the root folder of the installation.
  • Create a copy of this file as a backup just in case.
  • Open the original web.config file that is in the root files of the installation in any text editor.
  • In the <sectionGroup name="dotnetnuke"> section add the following line:
<section name="tokens" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" />
  • In the <dotnetnuke> section, add the following lines :
<tokens defaultProvider="CoreTokenProvider">
  <providers>
    <clear />
    <add name="CoreTokenProvider" type="DotNetNuke.Services.Tokens.CoreTokenProvider, DotNetNuke" />
  </providers>
</tokens>

Additional information

Token replace providers are a recent feature (Dnn 9.7.0) and is probably not yet used by many 3rd party modules. But if you do see other configured providers for tokens, you may want to consult with the 3rd party module vendor for instructions on how to best merge this config with theirs.

Affected version

  • 10.00.00 alpha build
  • 09.07.01 release candidate
  • 09.07.00 latest supported release
@valadas valadas added this to the Future: Patch milestone Sep 10, 2020
@david-poindexter
Copy link
Contributor

Thank you for figuring this out and documenting the workaround @valadas 🎉

valadas added a commit to valadas/Dnn.Platform that referenced this issue Sep 10, 2020
Closes dnnsoftware#4075
- Adds missing SqlDataProvider files
@valadas
Copy link
Contributor Author

valadas commented Sep 10, 2020

You are welcome, the PR is in too

@WillStrohl
Copy link
Contributor

Is there a test for this? 🤣

@mitchelsellers
Copy link
Contributor

@hismightiness This one is a bit sticky...it was the cause of a prior issue rather than an issue with actual 9.7.1 releases.

Upgrade testing scenarios should/would have caught it

@WillStrohl
Copy link
Contributor

Oh, I know. I was giving David and Daniel a hard time based on a conversation we had from last night. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants