New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
com_redirect adding urls larger than 255 #4781
com_redirect adding urls larger than 255 #4781
Conversation
ok after some reading up I found up that maximum allowed URL in IE is 2083, other browsers allow much higher numbers, even over 100.000, but we must stand with the lowest one, so I set it up for 2083. In this PR I have removed unique constraint. When we insert new row we are actually doing this check inside of the Joomla code, so this is not needed. And it was making a trouble because maximum varchar key for unique key is 767. So while removing it for mysql, I removed it for all DBs because as stated above, it is not needed. Please check this code against Postgre and sqlazure if possible. |
Successful test, for reference test instructions are:
|
@test OK, following @RCheesley steps, structure modified successfully. |
Two good tests thanks setting RTC |
This cannot be merged anymore. Also maybe we need to do it against v3.4-dev branch renaming sql files properly |
@Kixo please can you update your PR as it can no longer be merged. Thanks |
…692_com_redirect_adding_urls_larger_than_255 Conflicts: installation/sql/mysql/joomla.sql installation/sql/postgresql/joomla.sql installation/sql/sqlazure/joomla.sql
@brianteeman updated |
…692_com_redirect_adding_urls_larger_than_255 Conflicts: installation/sql/mysql/joomla.sql installation/sql/postgresql/joomla.sql installation/sql/sqlazure/joomla.sql
@test failed for mssql Please add the closing ) in installation/sql/sqlazure/joomla.sql line 2364. Unrelated to that but found in the course of testing: Saving a link in the redirect component gives an error when using postgresql or mssql as database because NULL cannot be inserted into column "referer". |
…692_com_redirect_adding_urls_larger_than_255
thanks for testing @waader I uninstalled mssql so I did not test changes for the second time. |
There is another small problem. In 3.4.0-2014-09-16.sql ALTER TABLE results in this problem - when you update the database schema via "Extension manager" > Database > Fix: Table 'uy937_redirect_links' does not have column 'new_url' with type 'varchar(255)'. (From file 3.4.0-2014-09-16.sql.) So this line could be deleted. |
That column is supposed to be in the table (see https://github.com/joomla/joomla-cms/blob/staging/installation/sql/mysql/joomla.sql#L1517). |
Of course, but there is a conflict with this statement in 3.4.0-2014-10-17.sql ALTER TABLE |
…692_com_redirect_adding_urls_larger_than_255
@waader I am not exactly sure what the problem is. Can you please explain in more detail or propose the solution. |
The proposed solution was to delete ALTER TABLE #__redirect_links MODIFY new_url varchar(255); in 3.4.0-2014-09-16.sql. |
ok updated |
@test works with mysql and will probably work with postgresql and mssql. But there is another unrelated problem there. Thanks Kixo! |
Please see #9269 |
Allow URLs with lengths up to 2048 chars in com_redirect, redo of PR #4781
.after some reading up I found up that maximum allowed URL in IE is 2083, other browsers allow much higher numbers, even over 100.000, but we must stand with the lowest one, so I set it up for 2083.
Example description here: http://www.boutell.com/newfaq/misc/urllength.html
In this PR I have removed unique constraint. When we insert new row we are actually doing this check inside of the Joomla code, so this is not needed. And it was making a trouble because maximum varchar key for unique key is 767. So while removing it for mysql, I removed it for all DBs because as stated above, it is not needed.
Please check this code against Postgre and sqlazure if possible.