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

Input validation #15

Open
rchadwic opened this issue Jul 21, 2012 · 5 comments
Open

Input validation #15

rchadwic opened this issue Jul 21, 2012 · 5 comments
Assignees

Comments

@rchadwic
Copy link
Contributor

So, I've been working with a user, and it looks like we really need much more input validation all over the place. Specifically, we should check the database and check the max length of all the strings. Then add validation to prevent inputs that are too long. This poor guy was getting odbc data too long errors all over the place. Also let's put 'placeholder' attributes on blank fields. Also, make sure users know that the keywords are comma separated.

@ghost ghost assigned mickmuzac Jul 21, 2012
@rchadwic
Copy link
Contributor Author

Actually, having been over the site, there were only a few places that needed validation. I did add some max length properties, and client side formatting for the keywords. Maybe this is not that big an issue. I'm not sure how that user was able to get so many max length issues.

@mickmuzac
Copy link
Collaborator

That sounds extremely strange. Does the user have any actual test cases that we can replicate to see the problem (might not matter now since you added fixes)?

Do you think it would make sense to use TEXT data types instead of VARCHAR/CHAR types in more places to avoid string length issues? I'll add a small note letting users know that commas are used as the delimiter for searching.

@rchadwic
Copy link
Contributor Author

Perhaps only text in the description. I read up on it over the weekend, and it seems
like that would slow the searches. The database is slow already, so I don't want to make it worse. I was able to replicate and correct some of the user issues, but not the one related to keywords.

@mickmuzac
Copy link
Collaborator

I can definitely work on it over the next couple of days. What exactly is the problem?

@rchadwic
Copy link
Contributor Author

you know, I'm no longer sure. Maybe we just call this a "cannot replicate"

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

No branches or pull requests

2 participants