Shared Files Bug

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/24/2008 11:26:48 AM
Gravatar
Total Posts 45

Shared Files Bug

The "up directory" button in the shared files module is hard coded to go to a "default.aspx" page, so it causes an error when you click it if your page is not named correctly. This hapens when you create a page with folder name in the URL.

I created a couple of test pages on the demo site. The "Shared Files Test 1" page has a URL of ~/sharedfilestest1/main.aspx. The "Shared Files Test 2" has a URL of ~/sharedfilestest2/default.aspx. Go to each of these pages and navigate down a subdirectory. (I created a folder called TestFolder on each page.). Then click the "up directory" button (next to the delete button). The first one causes an error (because it's called "main.aspx"), but the second one is OK (because it's called "default.aspx").

9/24/2008 12:00:12 PM
Gravatar
Total Posts 18439

Re: Shared Files Bug

Are you using the latest version of mojoPortal? In the new version the up button uses ajax to update the grid and doesn't redirect at all when clicking this button.

Best,

Joe

9/24/2008 12:36:42 PM
Gravatar
Total Posts 45

Re: Shared Files Bug

Yes, I installed the latest version just yesterday.

It does appear to be using Ajax, but the error page comes up. For example, on the demo site, this is the URL of the error page:

http://demo.mojoportal.com/PageNotFound.aspx?aspxerrorpath=/sharedfilestest1/Default.aspx

 

9/24/2008 1:02:38 PM
Gravatar
Total Posts 18439

Re: Shared Files Bug

That problem happened only because somone made the url for the page have an extra segment like /sharedfiles1/main.aspx instead of just a normal 1 segment url like /somepage.aspx

I deleted those pages and then published one of the shared files instance here: http://demo.mojoportal.com/files.aspx and it works as expected.

People do a lot of strange things on the demo site. Its possible to make broken pages by putting in bad urls. With great power comes responsibility and unfortunatley when we let complete strangers login to the demo site as admin some small percent of them will be jerks.

Over the last few days I've been battling with someone who keeps trashing the demo site apparently in an effort to give a bad impression of mojoportal. I've blocked several ip addresses so far but I doubt if I've seen the last of him. He was doing things like adding a 100 or more content instances to the home page to make it really slow, he pastes in raw html with extra html and body tags to mess up the demo site. I mean the demo site does get junked up from normal use and I periodically have to reset it to clean it up anyway but lately someone has been messing it up on purpose.

Thanks for pointing out the broken pages.

Best,

Joe

9/24/2008 3:00:10 PM
Gravatar
Total Posts 45

Re: Shared Files Bug

Actually, I was the one who created those pages. I created the pages on the demo site to reproduce the problem for you as a convenience. (If you don't like my doing this, I'll refrain from doing this in the future.)

Using these "virtual" folder names is how I have my production site set up. I use the folder names to correspond to the menu hierarchy, and mojoPortal handles this just fine. The problem is that the shared files module is making assumptions about how the pages are named when it shouldn't be.

 

9/24/2008 3:13:46 PM
Gravatar
Total Posts 18439

Re: Shared Files Bug

No worries about what you did setting up those pages to illustrate. I didn't really think that particular thing was meant as someone trying to junk up the site on purpose or that you were doing anything wrong. Its impossible for me to know who is doing what I'm just hyper alert about any weirdness on the demo site right now because someone has been messing with me on that demo site lately.

About the url format though, all I can say is "if its been working" with additional segments in the url that doesn't mean its intended to work that way or that I support it to work that way. The friendly url feature was designed not to show the site hierarchy on purpose. Urls should not break if you re-arrange the site hierarchy thats why in my opinion its a bad idea to reflect the site hierarchy in the url. Site hierachy is well conveyed by the menu, bread crumbs and the site map. Its not needed to be in the url and it makes the site brittle if you do use urls like that. You can no longer move things around without causing 404 errors if you try to maintain hierarchy in the url. So the friendly url feature was meant to provide short urls, if you try to use it other ways your mileage may vary.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.