Bug 53625 - UMC Appcenter does not show content of error file
UMC Appcenter does not show content of error file
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-0-errata
Assigned To: Jan Luttermann
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-08-02 10:17 CEST by Felix Botner
Modified: 2021-09-15 17:41 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2021-08-02 10:17:38 CEST
If, for example, the preinst of an App fails, we have the option to pass an error message to the appcenter like this

while [ $# -gt 0 ]
do
    case "$1" in
        "--error-file") 
            shift 
            error_file=$1 
            shift 
            ;; 
  *) 
      shift 
      ;; 
  esac 
done 
 
echo "$@" 
echo "this is a test" > $error_file
exit 1

-> univention-app install ...
...
this is a test
Running prescript of 4.4/owncloud=10.7.0 failed. Aborting...

This works on cmdline, but no longer in UMC in UCS 5.0, this is all i get:

-----------------------------------------
Installation von ownCloud
Beim Versuch der Umsetzung kam es zu Fehlern bei owncloud auf master.five.local
Diese Fehlermeldungen kommen vom Server. Weitere Informationen können in der Logdatei des Systems enthalten sein: /var/log/univention/appcenter.log

*
-----------------------------------------
Comment 2 Jan Luttermann univentionstaff 2021-09-09 15:33:51 CEST
univention-appcenter.yaml
7265bc24d593 | Bug #53625: added changelog entry

univention-appcenter (9.0.2-65)
0da3bcf18aa3 | Bug #53625: show content of error file in Appcenter
Comment 3 Dirk Wiesenthal univentionstaff 2021-09-14 11:18:18 CEST
preinst: OK
Code review: OK
YAML: OK
Comment 4 Erik Damrose univentionstaff 2021-09-15 17:41:46 CEST
<https://errata.software-univention.de/#/?erratum=5.0x92>