Skip to content
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

link tracking function is trimming long urls to 255 char #668

Open
hadifarnoud opened this issue Sep 25, 2018 · 6 comments
Open

link tracking function is trimming long urls to 255 char #668

hadifarnoud opened this issue Sep 25, 2018 · 6 comments
Labels

Comments

@hadifarnoud
Copy link

we have long urls which contains token key for download. when I click on the url it redirects to the original one which is trimmed to 255 characters.

@willpower232
Copy link
Collaborator

You'll have to modify the database for that specific Postal server to alter the varchar field for url into a text field (or mediumtext etc)

image

Atech or someone else will have to add a migration to make a similar change. I'm not sure how to migrate those databases.

@hadifarnoud
Copy link
Author

I think we can consider this a bug. there are many cases that urls are longer than 255 characters.

@willpower232
Copy link
Collaborator

Yes it most certainly is but the only way to fix it is to make the database modifications I have mentioned.

@hadifarnoud
Copy link
Author

I was unable to fix it locally. Not a Rails literate here. I ran into gem install issues and eventually gave up after days of debugging.

can someone please make a pull request for this bug?

@willpower232
Copy link
Collaborator

As I said, the problem is in the database so you'll need to use MySQL tools to make the fix for now.

@willpower232
Copy link
Collaborator

I've found a fix but it needs to be merged and run manually at the minute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants