Page 1 of 1
[SOLVED] Wapt selfservice and icon.png
Published: November 27, 2019 - 4:12 PM
by Patrice_minagri
Hello,
We now have the fantastic WAPT Enterprise 1.7 tool, and I'm interested in WAPT Selfservice.
I added an icon named icon.png to the WAPT folder of a package. This package has been published, and when I open WAPT Selfservice, I can see that my package version has changed, but the icon is still the basic question mark.
The icon is indeed 48x48 pixels. I even replaced the one I initially added to the package with an icon from a Tranquil-IT package, which is correctly visible in my Selfservice. No change; this icon, which displays correctly in the Tranquil-IT package, doesn't appear in the package I tested.
What could explain this lack of display update?
Thank you.
Patrice
Re: Wapt selfservice and icon.png
Published: November 28, 2019 - 11:04 AM
by agauvrit
Hi Patrice,
The icons used in the SelfService interface are those stored in the WAPT package repository in the /icons subfolder.
They are updated when the package is updated in the repository by version increment; otherwise, it's possible to replace them with WinSCP, for example.
You can call us if needed.
Alexandre
Re: Wapt selfservice and icon.png
Published: November 28, 2019 - 11:19 AM
by Patrice_minagri
Hi Alexandre,
Thanks for your reply.
I looked in the /var/www/html/wapt/icons directory (I think that's the directory you're referring to?). I did find a set of icons whose name, icon.png, had been renamed with the name of the package it's associated with.
I ran two tests with different packages that I republished on the server after inserting the icon.png file into their respective WAPT directories.
In one case, it worked fine after several attempts. The correct icon appeared correctly in the Selfservice interface.
In the second case, the wrong icon was displayed, even though retrieving the icon assigned to that package from the server via WinSCP showed the one I had included in the package.
Re: Wapt selfservice and icon.png
Published: November 28, 2019 - 11:42 AM
by Patrice_minagri
I noticed that the permissions weren't the same for the icon files (png) on the server.
All the ones that work are like this:
-rw-r--r-- 1 wapt nginx 1544881 2019-11-27 15:37 agri-mremote.png
The ones that were causing problems were like this:
-rw-r--r-- 1 root root 1544881 2019-11-27 15:37 agri-webconfetat.png
My last two attempts, after redirecting to the server, now appear with these permissions:
-rw-r--r-- 1 wapt apache 1544881 2019-11-27 15:37 agri-webconfetat.png
Do the permissions on the icons always have to be those of wapt and nginx?
Re: Wapt selfservice and icon.png
Published: November 28, 2019 - 12:21
by agauvrit
Yes, they need to be chown as wapt:nginx for it to work correctly
Re: Wapt selfservice and icon.png
Published: November 29, 2019 - 3:17 PM
by Patrice_minagri
Okay! Everything's working fine on my end now.
But this question also arises regarding the software displayed by the web interface (http:127.0.0.1:8088).
On this interface, all the packages have a question mark icon. Where can this be changed? It seems to be in a different place than for Self-Service!
Re: Wapt selfservice and icon.png
Published: November 29, 2019 - 3:59 PM
by vcardon
Hello Patrice
Patrice_minagri wrote: ↑Nov 29, 2019 - 3:17 PM
But this question also arises concerning the software displayed by the web interface (http:127.0.0.1:8088).
The self-service web interface is not planned to be retained, so no further effort is being invested in it.
The web interface will be removed in future versions of WAPT.
We now need to use the native self-service client.
Have a good weekend.
Vincent
Re: Wapt selfservice and icon.png
Published: November 29, 2019 - 4:03 PM
by Patrice_minagri
Hello Vincent,
Thank you for your reply. Indeed, I saw it as redundant.
This will also help to clarify the overall approach to using all of this.
Have a good weekend too.
Patrice