-
Notifications
You must be signed in to change notification settings - Fork 373
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
limit import path length #2053
Comments
just to be sure, do we have code(or plan) that limits length of pkg_path when deploying package or realm ?? |
@r3v4s we don't have any code yet that does it, this issue is about adding precisely that? though I'm not sure I understood your question |
You did understood perfectly. IMHO, rather than limiting the length to 128, I prefer setting it to 256 because it allows more leeway. |
in case nobody gonna do this, I will take part in this issue. @thehowl |
AFAIK, in oder to limit the total length of pkgPath with regex, we need the the look assertion like this
which is not currently supported in regexp Im thinking about |
It's shame that regexp doesn't support lookaheads. I really can't think of any option other than what you suggested( I'm worried about bench too, but shouldn't this length limit only applies to when we deploy contract(gnokey maketx addpkg) if it is, I don't think bench is going to be big problem |
From PR comment comment: #875 (comment)
We should limit the length of a package path. A limit like 128 or 256 characters sounds reasonable.
The text was updated successfully, but these errors were encountered: