-
Notifications
You must be signed in to change notification settings - Fork 191
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
Configurable upload limit for drivers #433
Comments
Hi @SiebelsTim , drivers are for about 10 years deprecated in CUPS, what model do you want to support by the driver? Doesn't the device support some of the driverless standards (AirPrint, IPP Everywhere, Wifi direct, Mopria, PCLm, IPP-over-USB)? |
@SiebelsTim Do you mean uploading PPDs over 400k in size when adding a printer through the CUPS web interface? The current limit (256k) has been in place since December 7, 2005, meaning it was added for CUPS 1.2, and this is the first time the limit has been an issue in the last 17 years... Understand that PPDs and drivers are going away in CUPS 3.0. Changing the limit is a trivial thing, and making it 1MB probably won't increase the potential security risks, but we also are trying very hard not to spend time on improving PPD infrastructure/support because they are going away. Is there a particular reason why you are manually uploading huge PPD files vs. installing them in one of the standard locations so that you can just pick the driver from the list? |
We're operating CUPS as a part of our server software solution which is usually delivered on bare metal servers to our customers. All the day to day administration is performed using a web interface which embeds the CUPS web interface. As our key customer group are schools in Germany, where frequently normal school teachers are responsible for the IT administration and mostly only have basic knowledge on IT things, we don't recommend using the root console - which would be required for installing in the standard location -, which could cause various damages to the server by accident, when you not so much experienced. In our case, the large drivers come from the fact that we have several thousand schools as customers, which of course use a wide variety of printers from many manufacturers. Depending on the manufacturer, the operation with CUPS is only fully supported via PPD files, there are large differences from manufacturer to manufacturer. I know that virtually every network-capable printer supports IPP Everywhere in principle, but in practice sometimes advanced functions do not work without a PPD. |
@FelixJacobi E.g. the maximum PPD sizes on my openSUSE Leap 15.3 system
The biggest one Uncompressed it becomes 378K which exceeds the current limit (256k). I don't know if uploading PPDs through the CUPS web interface |
@jsmeix We're talking about thirdparty PPDs by Printer vendors not shipped by any Linux distribution AFAIK (probably due to proprietary license), but used by our customers, our sample is the |
@FelixJacobi ok, I've found the model on Kyocera webpages (you could at least share the link :) ) - Kyocera produces the packages, but it doesn't put it into dirs where CUPS expects them, so they're not shown in the drivers list. @jsmeix The limit is set only for PPDs uploaded via web interface and its Off topic - ad PPD itself - the half of the PPD are translations, which can be covered by CUPS itself if the driver is generated via internal CUPS/cups-filters PPD generators from IPP response. So to sum it up - it would be great if the printer driver provider updated their packages, so the drivers will get installed into CUPS directories, which IMO helps users much more than uploading them to CUPS Web interface, because printing stack in Linux can pick them up. Ad the size limit - @michaelrsweet I see pappl has 2MB limit for attachments in web if - can I set it to the same value in CUPS templates? |
@zdohnal I guess that those Kyocera_TASKalfa_6054ci.ppd size of 421 KB |
CUPS Web UI: Raise the file limit (fixes #433)
@zdohnal Sorry for the late reply, but yes you can increase the limit to 2MB. |
As far as I can tell,
MAX_FILE_SIZE
is hardcoded in templates and therefore cannot be changed. We have drivers that are over 400KB in size and cannot be uploaded.Can we increase the limit or make it configurable?
The text was updated successfully, but these errors were encountered: