PathTooLongException

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.
12/7/2009 9:14:32 AM
Gravatar
Total Posts 104

PathTooLongException

Hi

I use the latest version , when I try create a new page with lang persian title, I got error 403.

and I can't use the portal anymore, try another internet connection and see my IP address banned.

95.82.*.* PathTooLongException 1388/09/16 09:07:11 ق.ظ

Thanks

12/7/2009 9:32:58 AM
Gravatar
Total Posts 18439

Re: PathTooLongException

Hi Ashian,

This issue seems to be the result of a change as of version 2.3.3.0 where we url encode non ascii chars by default. So what happened is the encoded url is too long. In the past the only thing that caused path too long exception were malicious requests so we automatically ban the ip address.

To solve it:

1. Comment out the BannedIPBlockingHttpModule in 2 places in Web.config to disable it temporarily.

2. Go to Administration > Advanced Tools > Banned IP Addresses and find your ip address in the list and delete it so you are no longer banned.

3. Add this to user.config <add key="AlwaysUrlEncode" value="false" />

4. Any pages tyou created after upgrading you may need to go to page settings and change the url and also may need to find the encoded url in Url Manager and delete it.

5. After everything is working again uncomment the BannedIPBlockingHttpModule so it works again.

See this article for more info http://www.mojoportal.com/non-ascii-urls.aspx

Ironically this change was made to fix a problem with Persian Urls but it seems to be causing more problems than it is fixing so I will change the default from true to false for AlwaysUrlEncode in the coming release

Hope it helps,

Joe

6/24/2010 5:51:29 PM
Gravatar
Total Posts 11

Re: PathTooLongException

On a similar note, I have found that this error occurs in this way:

I have a user who maintains a "Daily Quote" forum where he posts a new daily quote every day.  He consistently used the same title on every posting "Daily Quote."  mojoPortal creates an ASPX url based on the title.  If the page name has been used before, a 1 is preppended until a unique url has been created.  The daily quotes have been going for almost 2 years so the url became something like 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111daily-quote.aspx

which is too big for the system to handle.  The IP is banned at this point and the user gets a 403 Forbidden error for all sites created within mojoPortal.

 

I am using a little older version of mojoPortal, so I don't know if this has been fixed.  I am using version 2.3.1.3 MSSQL.

Does your solution resolve this issue as well?

6/25/2010 12:03:04 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: PathTooLongException

This is a bug in the ClientScript/friendlyurlsuggest_v2.js. I recommend to completely disable this script because this script has some other serious errors. This must be done in

  • mojoPortal.Features.UI\Blog\EditPost.aspx.cs
  • \Web\Admin\PageSettings.aspx.cs

or editing friendlyurlsuggest_v2.js
 

6/25/2010 5:28:18 AM
Gravatar
Total Posts 18439

Re: PathTooLongException

rlcowley,

Steve answered about this correctly on this other thread.

SkySandy,

rcowley is using a very old version of mojoPortal.

If you feel there is a bug with the url suggest script in the current version of mojoPortal, please provide details in terms of steps to produce the problem, expected result, actual result.

Thanks,

Joe

6/26/2010 8:15:47 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: PathTooLongException

I have the latest version of the system. It really bug. The easiest way to find it:
1. Click add post in blog
2. Copy long string in Title
3. Save post

As a result, we obtain the IP address banned. After these steps, the only way to return the system to normal operation is to delete a row from mp_BannedIPAddresses. Since its own IP address is in blacklist.

But not only the error associated with a long string is in the process. The same procedure does not check that not all of characters allowed in the addressbar line. As a result, the user is not available to view the full blog entry (the browser error, that such Adresses does not exist)
 

Also if the title contains characters are not the English alphabet, the URL of the blog contains the same characters (not English). This leads to the following: In older versions of the browser (like IE6) users can not see a blog entry.

So I always disable friendlyurlsuggest_v2.js

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