Univention Bugzilla – Bug 42943
Save uploaded Debian packages in a temporary folder
Last modified: 2017-04-18 08:03:36 CEST
Currently, uploaded Debian packages are directly uploaded into the component folder resulting also in overriding existing packages. When uploading a Debian package and then canceling, the modification of the package status will persist. The package files should be uploaded into a temporary folder instead. Only with the click on "save" should they be moved into their final destination. A cron job (or at jobs) could be helpful for cleaning up old uploaded files from time to time.
The adjustments of the JavaScript code are part of this Bug, as well (taken From Bug 42788): > TODOs for Debian package upload: > * The list is not sorted and should be refreshed > * Only 500kb are allowed for the upload > * The checkbox for overriding older package versions is not correctly considered > by the JavaScript code.
r74443: WIP, uploaded deb packages are only kept if changes are saved by the user. Package: univention-management-console-module-appcenter-selfservice Version: 1.0.0-88.78.201611151501
r74451 removes upload size limit and deletion of duplicate packages on upload. Package: univention-management-console-module-appcenter-selfservice Version: 1.0.0-89.79.201611151657
(In reply to Eduard Mai from comment #3) > r74451 removes upload size limit and deletion of duplicate packages on > upload. > > Package: univention-management-console-module-appcenter-selfservice > Version: 1.0.0-89.79.201611151657 The deletion of duplicated packages should be handled exclusively in JavaScript. I adapted the logic in the backend and added handler for the logic in JavaScript. univention-management-console-module-appcenter-selfservice (1.0.0-91): r74462 | Bug #42943: adjust upload logic in JavaScript and Python backend TODO: We still need a cron job to remove old files in the folder /var/cache/univention-appcenter-selfservice/uploads.
(In reply to Alexander Kläser from comment #4) > (In reply to Eduard Mai from comment #3) > > r74451 removes upload size limit and deletion of duplicate packages on > > upload. > > > > Package: univention-management-console-module-appcenter-selfservice > > Version: 1.0.0-89.79.201611151657 > > The deletion of duplicated packages should be handled exclusively in > JavaScript. I adapted the logic in the backend and added handler for the > logic in JavaScript. > > univention-management-console-module-appcenter-selfservice (1.0.0-91): > r74462 | Bug #42943: adjust upload logic in JavaScript and Python backend > > TODO: We still need a cron job to remove old files in the folder > /var/cache/univention-appcenter-selfservice/uploads. Cron job was added with r74464 and r74465. Package: univention-management-console-module-appcenter-selfservice Version: 1.0.0-93.80.201611161149
The new version of the App Provider Portal has been released and this bug will thus be closed.