Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryPermalink pointing to the wrong contentPermalink pointing to the wrong content
Previous
 
Next
New Post
10/28/2008 1:15 PM
 

Hi there,

The permalink issue seems to have appeared again,

http://www.djabstraction.com/dnn/Default.aspx?tabid=55&id=34

If you attempt to download the file it does not always give you the file for the page you are on, as if something is possible dishing out the latest addition to the repository perhaps?  I've had several comments that another mix is offered and I just confirmed this by trying myself.  Now after looking at a few other pages to see how they are effected it seems to be offering the correct file again now.

It seems a bit flakey, any ideas what could be causing this?

 
New Post
10/31/2008 8:04 PM
 

Hey, I'm getting more people telling me of download links pointing to the wrong files.

Aren't I right in saying this is a fundamental feature of your system?  I'd rather not download the source code and fix this this so would be greatly appreciated if anyone else could offer some advice on this.

 
New Post
11/1/2008 4:46 AM
 

Okay I've got steps to reproduce here..

1. Navigate to http://www.djabstraction.com
2. Click on "Mixes" menu button at the top
3. Click on "Traverse" on the left hand side in "Recent Mixes"
4. Click to download "Traverse" (do not need to complete the download)
5. Go to the following permalink http://www.djabstraction.com/dnn/Default.aspx?tabid=55&id=34
6. Click to download, you will be given the file for "Traverse".

So the only thing that I can think of is a stale v13wstat3 value.

 

 
New Post
11/1/2008 5:34 AM
Accepted Answer 

Okay, problem located,

In Repository.ascx.vb, go to the bottom of the Load event.

v13wstat3("mitemID") = mItemID

There is a case error in the string, it should be "mItemID".

I have fixed my local version and it works as expected now.

Without meaning to sound like a pedant, which I'm sure I will no matter how I put this, but you might want to consider storing string literals as constants.

 
New Post
11/2/2008 8:47 AM
 

I'm not sure what version of the Repository module you are using, but that particular issue was fixed quite a while ago. If you would use the latest version you would not have that issue.  The current version is 3.01.15

from the release notes of 3.01.14
=======================================================================
03.01.14 Build 35870
Released 08.01.2007
=======================================================================

-- Fixed an issue where the wrong item would be downloaded or opened if
   you clicked on a file link in a Dashboard on a different page then
   the Repository Module. The issue was a mispelled v13wstat3 variable
   that kept track of the item's ID. The code would check for mItemID
   but the code that set the variable was setting mitemID (lower case i)
   Since mItemID was always blank, it would default to the first item
   in the Repository instead of the item being displayed.
 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryPermalink pointing to the wrong contentPermalink pointing to the wrong content


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out