Bug 48079 - Copy a portal
Copy a portal
Status: NEW
Product: UCS
Classification: Unclassified
Component: Portal
UCS 5.0
Other All
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-10-30 11:20 CET by Michael Grandjean
Modified: 2023-01-26 14:51 CET (History)
4 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?: Yes
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 Michael Grandjean univentionstaff 2018-10-30 11:20:47 CET
It should be possible to copy a portal object (similar to copying a user object). Especially in UCS@school scenarios we might want to deploy one portal per school. Those portals all share the same base, but have minor differences. It's cumbersome to start from scratch for every single portal. Therefore being able to copy a portal and tweak it from there would be great.
Comment 1 Michael Grandjean univentionstaff 2018-10-30 12:07:29 CET
I tried to use UDM for this:

> udm settings/portal create --position "cn=portal,cn=univention,dc=schule,dc=example,dc=org" \
>   --set displayName='"en_US" "school startsite for {hostname}"' \
>   --append displayName='"de_DE" "Schulportalseite von {hostname}"' \
>   --set fontColor="black" \
>   --set name="testportal" \
>   --set portalComputers="cn=test01,cn=dc,cn=server,cn=computers,ou=mz,dc=schule,dc=example,dc=org" \
>   --set portalEntriesOrder="cn=teacherconsole,cn=portal,cn=univention,dc=schule,dc=example,dc=org" \
>   --append portalEntriesOrder="cn=something,cn=portal,cn=univention,dc=schule,dc=example,dc=org" \
>   --append portalEntriesOrder="cn=self-service-portal,cn=portal,cn=univention,dc=schule,dc=example,dc=org" \
>   --append portalEntriesOrder="cn=root-cert,cn=portal,cn=univention,dc=schule,dc=example,dc=org" \
>   --append portalEntriesOrder="cn=another-entry,cn=portal,cn=univention,dc=schule,dc=example,dc=org" \
>   --set showApps="TRUE" \
>   --set showLogin="TRUE" \
>   --set showMenu="TRUE" \
>   --set showSearch="TRUE" \
>   --set showServers="TRUE" \
>   --set content="$(< univention-tam/portal_content.json)" \
>   --set background="$(< univention-tam/portal_base64-encoded-image)"

But: 
-bash: /usr/sbin/udm: Argument list too long

Is it not possible to create a portal with a background image via UDM CLI?
Comment 2 Arvid Requate univentionstaff 2021-10-21 13:46:18 CEST
It's a bash error message, use xargs maybe?
Comment 3 Ingo Jürgensmann univentionstaff 2023-01-26 14:51:38 CET
Adding another U@S customer that is asking for copying portal entries