DNNCommunity / DNN.Repository

DNN.Repository is a rich module used for managing and displaying rich collections of images, files, llinks, etc. on your DNN site. Includes user rating, comments, templating and skinning.
MIT License
8 stars 14 forks source link

Backup and restore to a new location throws off repository #46

Closed MsWilsonD closed 11 months ago

MsWilsonD commented 4 years ago

Hi,

We have a Repository in a test location where the files were uploaded; everything works fine. We did a backup and restored it to a new location for our production area but everything seems off when we use the categories or sort options. The file downloaded is incorrect as if it is not in the referenced location when sorted. When downloaded by going to the actual page the right file is downloaded. Any idea how to resolve this?

juvander commented 4 years ago

I don't quite get this, what exactly have you backed up and restored? And how?

MsWilsonD commented 4 years ago

@juvander the entire website database...

juvander commented 4 years ago

If you did not change location of your web site, then something must have gone wrong on this backup & restore.

MsWilsonD commented 4 years ago

@juvander we did change the location from our development environment to our production environment - two different servers.

juvander commented 4 years ago

Sure, but how about the folder structure on your prod server, are the paths the same over there?

MsWilsonD commented 4 years ago

@juvander yes, they are the same as far as I know...

juvander commented 4 years ago

Which version of Repository & DNN are you using?

MsWilsonD commented 4 years ago

@juvander The version is 4.1.0

juvander commented 4 years ago

With this info cannot really figure out anything that would break this except that something has gone wrong in the backup & restore.

MsWilsonD commented 4 years ago

@juvander ok, thanks. I am going to just do it again directly in Prod as it is causing quite a bit of issue now. Thank you.

MsWilsonD commented 4 years ago

@juvander So, on further checks it seems there is a bug in the filtering options

  1. When using the dashboard categories, once the next button is clicked it reverts to the total pages not the filtered pages (so if I have 14 pages, I filter on a category and get 5 pages, when I click next, to get to page 2 of 5, it reverts to 2 or 14).

  2. Once the filtering is on and the download button is clicked, the wrong files are downloaded (seems the download id on the buttons remain the same even when the location of the file has changed?).

Anyway, I decided to remove the download button all together and use HTML to link the documents directly...that took care of the issue with the download button, but not the page filtering issue unfortunately...

I am using the default theme in this case...

juvander commented 4 years ago

Do you have caching on for this page where this module is located? That might explain this behaviour.

MsWilsonD commented 4 years ago

@juvander yes, we have caching on the page...

juvander commented 4 years ago

that's it then, take that away and it is ok again.

MsWilsonD commented 4 years ago

@juvander that did not resolve at all...seems to have something to do with the Dashboard/Categorizing. If I use the Search window it works fine, once I filter using the Dashboard/Categorizing option, then the issue recurs.

juvander commented 4 years ago

And you did take the caching out from whole page, not just the component? I don't really see any other reason why it now fails on your case and works elsewhere.

juvander commented 4 years ago

@MsWilsonD, see if this is related to issue #47

valadas commented 11 months ago

Closing this due to lack of reponse