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
[Feature Request] Product Key Field 252 character limitation - consider raising limitation to 1024 characters #2535
Comments
Just to also add, the Notes function does not have this limitation, which allows me to post the full Product Key. This works as a temporary work around, but it would be helpful in any case to increase the character limitation. |
Would like to second this. I changed the DB field type to mediumtext as a workaround, but that's probably not a good longterm solution. |
I would actually like to make the request to extend it to 2046 characters if possible. That should prevent any future issues with any form of serial or key. |
I may be mistaken but it looks like line 324 of snipe-it/database/2016_02_13_071006_create_snipeit_laravel_database.php It would need to be changed to: I think? (I have a limited knowledge of Laravel) |
Updates the product key field from ~255< to a varchar entry in the database with 2048 character entry. This should appropriately fix the limited entry for serial numbers. Might want to double check my laravel. Still trying to glass over the code, but, if I understood it right, this is the location of where it needs to be changed?
No, that file can actually be removed. It was a backup for when we switched fro v2 to v3. All of the database migrations are in the |
Oh damn, yeah, that was much more complicated then just a single page. :) Thanks for creating the change @snipe 👍! This application rocks! |
Expected Behavior (or desired behavior if a feature request)
I expect it to allow a serial number (regardless of character limits) to be entered into the Product Key Field on the License Asset Page
Actual Behavior
Character count appears to be limited to 252 characters. Causing longer product keys (like those from 3T.io) to discard the remaining product keys in the Web UI.
3T.io/MongoChef's license is ~512 characters. I also expect that there are other license files that could be potentially longer. Please consider raising the character limitation to 1024. I expect that it is limited to 256.
Please confirm you have done the following before posting your bug report:
Please provide answers to these questions before posting your bug report:
v3.3.0-3-g7ef4f23
Ubuntu 16.04
install.sh
N/A
domain.org/admin/licenses/1/edit
N/A
N/A
app/storage/logs
and your webserver's logs.Created a database of users, imported physical assets and two product license keys.
No
The text was updated successfully, but these errors were encountered: