Bad Request - Invalid URL

10 years 2 months ago #1 by darktranslator
I have the component installed on an IIS server. If I turn on SEF URLs in the Joomla Global Configuration and then edit an issue from the front end the system generates a massive long URL that rtesults in an HTTP error 400. The request URL is invalid.
The notification email is still triggerred though. Without the SEF URLs everything is OK.
Have I missed a configuration setting somewhere?

Thanks

John

Please Log in or Create an account to join the conversation.

10 years 2 months ago #2 by geoffc
Replied by geoffc on topic Bad Request - Invalid URL
There is no parameter as such to define the URL, and I would need to know more details of the URL that is generated (with and without SEF). Is this just with the Joomla SEF or is there another SEF component such as sh404SEF?

There would be a long hex string at the end of the URL that reflects the return address from the issue edit, which is generated from the directing page.

What version of Joomla, Issue Tracker etc is this occuring upon? I do not immediately have the facility to test on IIS, but this doesn't sound immediately like it is IIS related, but I haven't had any reports on this type of problem. This would be IIS acccessing an MYSQL database I presume.

Th email would be triggered before the return to the URL is initiated, so that is not unexpected behaviour.

If it is just the return address it is objecting to, it would be possible to revert back to a previous behaviour of returning to the home page after an edit, but the 'return address' is added in a number of places not just in the edit, so I would wish to eliminate it as a possibility before suggesting any change.

Regards
Geoff

Please Log in or Create an account to join the conversation.

10 years 2 months ago #3 by darktranslator
Hi Geoff,
Thanks for the comprehensive reply! I am currently using Joomla 2.5.17 and the latest version of Issue Tracker (1.5.1) From memory the previous version never exhibited this behaviour. And I am accessing a MySQL database. There are no third party SEF extensions in use, just the Joomla SEF. Here are the URLs being generated:

Without SEF turned on,

Main Issue Page
http://sssukadmin/index.php?option=com_issuetracker&view=itissueslist&Itemid=366&lang=en

Viewing issue
http://sssukadmin/index.php?option=com_issuetracker&view=itissues&id=36&Itemid=366&lang=en

Editing this issue
http://sssukadmin/index.php?option=com_issuetracker&view=form&layout=edit&a_id=36&return=aHR0cDovL3Nzc3VrYWRtaW4vaW5kZXgucGhwP29wdGlvbj1jb21faXNzdWV0cmFja2VyJnZpZXc9aXRpc3N1ZXMmaWQ9MzYmSXRlbWlkPTM2NiZsYW5nPWVu&Itemid=366&lang=en

(saving this issue is OK)

Now with SEF turned on

Main Issue page
http://sssukadmin/index.php/en/issue-tracker

Viewing issue
http://sssukadmin/index.php/en/issue-tracker/36?view=itissues&id=36

Editing this issue
http://sssukadmin/index.php/en/issue-tracker?view=form&layout=edit&a_id=36&return=aHR0cDovL3Nzc3VrYWRtaW4vaW5kZXgucGhwL2lzc3VlLXRyYWNrZXIvMzY/dmlldz1pdGlzc3VlcyZpZD0zNiZsYW5nPWVu

(Saving this issue results in the bad URL)

Please not that this site is an intranet site so the URLs above are not accessile from the internet.
Thanks for your help in this issue

Regards
John

Please Log in or Create an account to join the conversation.

10 years 2 months ago #4 by geoffc
Replied by geoffc on topic Bad Request - Invalid URL
Hmmmm.

From the information provided I suspect that the return address is probably OK, and that IIS is not involved in the problem.

I have a suspicion as to where it may be occuring but I will have to carry out a few tests internally to confirm or deny it.

Have you tried the test with site error reporting set to 'maximum', since that might assist in narrowing the cause down, although this may not be a coding bug, more a logic type error. Also I have a suspicion that even though you get the 'wrong/strange URL' that your issue may well have been saved with your changes. The reason is that you said you get the notification email and that happens after the issue is saved and prior to returning to the calling page.

By previous version not showing the problem, I presume you are referring to version 1.3.4, which also gives me a possible clue.

This may take a day or so to resolve I suspect, unless I can get the same symptoms in my tests.

Regards
Geoff

Please Log in or Create an account to join the conversation.

10 years 2 months ago #5 by darktranslator
OK. Turning error reporting to maximum does not display any error messages, and yes, the previous version in use was 1.3.4.
Thanks again for your help on this.

Regards
John

Please Log in or Create an account to join the conversation.

10 years 2 months ago - 10 years 2 months ago #6 by geoffc
Replied by geoffc on topic Bad Request - Invalid URL
Just a quick update on progress.
I have installed a fresh install of J2.5.17 and installed IT 1.5.1 (using Apache). Created menu items etc
and ran some quick test with and without SEF and cannot reproduce the problem.

I did find an error in extracting the 'additional information' to add to the issue (now fixed) which generated a PHP error but this is unrelated to the URL being invalid. Also found a situation where the published state is reset (minor) also unrelated to URL problem.

I am continuing to look at the URL as I suspect it may still be wrong in some cases.

Update: Cannot seem to get the same problem on my test install. Every test I try seems to work flawlessly as regards the URL. Looking at the Joomla {url=http://docs.joomla.org/IIS_and_Joomla]docs[/url] it implies that IIS has a few peculiarities with SEF which may or may not be related.

I think I need to set up an IIS server install to check this particular problem out more fully.

What version of IIS are you using?

Regards
Geoff

Please Log in or Create an account to join the conversation.

Time to create page: 0.171 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries