Skip to content
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

Can't list users in admin tools #367

Open
narkuss opened this issue Oct 19, 2019 · 42 comments
Open

Can't list users in admin tools #367

narkuss opened this issue Oct 19, 2019 · 42 comments

Comments

@narkuss
Copy link

narkuss commented Oct 19, 2019

Hi all,
when I go to Administrative tools -> Users, Alfresco tries to retrieve users using enterprise endpoint:
imatge
Versions:
Alfresco Share v6.2.0-RC4
Alfresco Community v6.2.0-ea

@fabtrie
Copy link

fabtrie commented Nov 19, 2019

I can confirm the issue with Alfresco Share v6.2.0. I also verified, that the issue is not present in Share v6.1.0.

@Epurashu
Copy link
Contributor

Epurashu commented Nov 27, 2019

This issue was introduced in Share by the fix required for MNT-20723, PR#115 - Share.

As a workaround that fixes this issue, show-authorization-status property needs to be set to false.

This can be achieved by editing tomcat\webapps\share\WEB-INF\classes\alfresco\share-config.xml and set this property to false, it can be found at line 132.
From
<show-authorization-status>true</show-authorization-status>
To
<show-authorization-status>false</show-authorization-status>

Edit:
A restart is required for the changes to take place.

@narkuss
Copy link
Author

narkuss commented Dec 21, 2019

As a temporary workaround until the next release of share, you can modify the share Dockerfile in your SDK, or create a custom image from share 6.2.0 and add this lines:

# Patch for https://github.com/Alfresco/acs-community-packaging/issues/367
RUN sed -i 's@<show-authorization-status>true</show-authorization-status>@<show-authorization-status>false</show-authorization-status>@' \
	$TOMCAT_DIR/webapps/share/WEB-INF/classes/alfresco/share-config.xml

@AFaust
Copy link

AFaust commented Jan 14, 2020

As already expressed on the Alfresco IRC channel today, there should never have been a config option for this. Other console tools show how the license / edition of Alfresco should be checked to toggle Enterprise-specific functionality without requiring a config option.

@Lorquimur
Copy link

This issue was introduced in Share by the fix required for MNT-20723, PR#115 - Share.

As a workaround that fixes this issue, show-authorization-status property needs to be set to false.

This can be achieved by editing tomcat\webapps\share\WEB-INF\classes\alfresco\share-config.xml and set this property to false, it can be found at line 132.
From
<show-authorization-status>true</show-authorization-status>
To
<show-authorization-status>false</show-authorization-status>

Edit:
A restart is required for the changes to take place.

It don't go for me. I coutinu without see the users.

Can you help me, please?

@Enquier
Copy link

Enquier commented Jul 27, 2020

As a temporary workaround until the next release of share, you can modify the share Dockerfile in your SDK, or create a custom image from share 6.2.0 and add this lines:

# Patch for https://github.com/Alfresco/acs-community-packaging/issues/367
RUN sed -i 's@<show-authorization-status>true</show-authorization-status>@<show-authorization-status>false</show-authorization-status>@' \
	$TOMCAT_DIR/webapps/share/WEB-INF/classes/alfresco/share-config.xml

This worked for me

@douglasawh
Copy link

What do we do with this RUN line? Does it go in the docker-compose.yml? Where?

@abhinavmishra14
Copy link

abhinavmishra14 commented Aug 6, 2020

What do we do with this RUN line? Does it go in the docker-compose.yml? Where?

It goes in DockerFile. But it doesn't work as share-config-custom.xml at /usr/local/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml always replaces the config. You can update the value 'false' in share-config-custom.xml instead.

RUN sed -i 's@<show-authorization-status>true</show-authorization-status>@<show-authorization-status>false</show-authorization-status>@' \
	$TOMCAT_DIR/shared/classes/alfresco/web-extension/share-config-custom.xml
`

@douglasawh
Copy link

@abhinavmishra14 thanks. I just have the docker-compose.yml I downloaded form https://www.alfresco.com/thank-you/thank-you-downloading-alfresco-community-edition

it looks like I might be able to use "command" in the docker-compose.yml to run the sed command. I will find out!

@douglasawh
Copy link

what I ended up doing was pull down 6.1.0 instead of 6.2.0 (or 6.2.2) in the docker-compose.yml. That resolved the issue. I had already kicked off the docker-compose up when I said I would try "command", but I hadn't actually tried it. I guess I wasn't super confident that would work, lol. glad it did!

I don't know what other issues I might face, but I will keep the command option in mind in case we run into something else. Higher priority items at the moment than the command option. Thanks again for the help.

@abhinavmishra14
Copy link

@douglasawh You can have a look at this docker-compose.yml and take a reference on DockerFile usage.
https://github.com/abhinavmishra14/change-acs-share-port-demo/blob/master/docker-compose.yml

@JesusTorre
Copy link

Buenas tardes.
Tengo el mismo problema para poder ver la lista de los usuarios de Alfresco 6.2, vi la solución para el problema pero tengo una duda como acceso al siguiente directorio 'tomcat\webapps\share\WEB-INF\classes\alfresco\share-config.xml'.

Estoy trabajando Alfresco con Docker y Solr en debian 10 pero por mas que busco el directorio no lo encuentro. Esto son algunos de los errores que me manda el Solr.

4/2/2021 15:00:30 WARN false   Config XML parse warning in "solrres:/solrconfig.xml",​ line 1919,​ column 88: Include operation failed,​ reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/alfresco-search-services/solrhome/alfresco'
4/2/2021 15:00:30 WARN false   Config XML parse warning in "solrres:/solrconfig.xml",​ line 1919,​ column 88: Include operation failed,​ reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/alfresco-search-services/solrhome/archive'

4/2/2021 15:00:31 | WARN false |   | SolrResourceLoader | Solr loaded a deprecated plugin/analysis class
[org.apache.solr.analysis.WordDelimiterFilterFactory]. Please consult documentation how to replace it accordingly.

@chatoros
Copy link

chatoros commented Feb 5, 2021

Buenas tardes.
Tengo el mismo problema para poder ver la lista de los usuarios de Alfresco 6.2, vi la solución para el problema pero tengo una duda como acceso al siguiente directorio 'tomcat\webapps\share\WEB-INF\classes\alfresco\share-config.xml'.

Estoy trabajando Alfresco con Docker y Solr en debian 10 pero por mas que busco el directorio no lo encuentro. Esto son algunos de los errores que me manda el Solr.

4/2/2021 15:00:30 WARN false   Config XML parse warning in "solrres:/solrconfig.xml",​ line 1919,​ column 88: Include operation failed,​ reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/alfresco-search-services/solrhome/alfresco'
4/2/2021 15:00:30 WARN false   Config XML parse warning in "solrres:/solrconfig.xml",​ line 1919,​ column 88: Include operation failed,​ reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/alfresco-search-services/solrhome/archive'
4/2/2021 15:00:31 | WARN false |   | SolrResourceLoader | Solr loaded a deprecated plugin/analysis class
[org.apache.solr.analysis.WordDelimiterFilterFactory]. Please consult documentation how to replace it accordingly.

Revisa la documentación de dockers...
yo hice un "docker ps" para ver el id del docker y luego un "docker exec it" con el id
ya ahi modificas el archivo y reinicias el docker

suerte

@JesusTorre
Copy link

@chatoros, buenas tardes.

Aplique el comando docker ps y obtuve el id del contenedor pero al momento de aplicar el siguiente comando sudo docker exec it asderee233 me dice error en el comando it y si lo aplico de la siguiente manera sudo docker exec -it asderee233 me dice que requiere de dos argumentos.

Donde:
asderee233->id de ejemplo

@chatoros
Copy link

chatoros commented Feb 10, 2021 via email

@AFaust
Copy link

AFaust commented Mar 13, 2021

Well.... looks like Alfresco 7.0 was released (or at least tagged), and it still contains the same issue, as there has been no change to the default configuration which breaks this for community, and the flag still results in Enterprise API being called.

@DenysLP
Copy link

DenysLP commented Apr 12, 2021

Changed files

webapps/share/components/console/users-min.js
webapps/share/components/console/users.js

Ajustment this people-enterprise to people.

image

@TripleeDouble
Copy link

I have the same error, with the last version of Alfresco installed using Docker Desktop. How I can resolve it?

@summerduanlina
Copy link

alfresco 7.0 has the same problem.

@hottodoguru
Copy link

Alfresco 7.0 still has the same problem also the solution to changed show-authorization-status property to false is not work because it's already set to False at the first place.

@RAurelian
Copy link

It`s unfortunate to hear that this problem is still ongoing for the past 2 years. Is there any other work-around that works in Alfresco 7?

@AFaust
Copy link

AFaust commented Jun 2, 2021

The amount of redundant "I have the same error", different "solutions" (some of them dirty hacks), false claims of "does not work" etc. on this issue is honestly astounding. Too bad Alfresco is not doing anything against it, like fixing the underlying issue.

For the record, the following configuration file as a share-config-custom-dev.xml in e.g. tomcat/shared/classes/alfresco/web-extension/ has worked for me in all affected Alfresco versions:

<?xml version='1.0' encoding='UTF-8'?>
<alfresco-config>

   <config evaluator="string-compare" condition="Users" replace="true">
      <users>
         <username-min-length>2</username-min-length>
         <password-min-length>3</password-min-length>
         <!-- fix/workaround for https://github.com/Alfresco/acs-community-packaging/issues/367 -->
         <show-authorization-status>false</show-authorization-status>
      </users>
      <enable-external-users-panel>false</enable-external-users-panel>
   </config>
</alfresco-config>

This can be added either via a custom image build or by simply mounting the file into the container. The share-config-custom-dev.xml file is always loaded after any share-config-custom.xml, regardless if they were provided by extension modules or via the server configuration path.

As I have written in March and proven with a direct link to the source code, the default configuration of show-authorization-status property has not changed and is still true, contrary to what @hottodoguru claims. The same setting is repeated in the sample share-config-custom.xml which one may find in the distribution ZIP, as well as the same file for the Docker distribution.

@waldodurpo
Copy link

Changed files

webapps/share/components/console/users-min.js webapps/share/components/console/users.js

Ajustment this people-enterprise to people.

image

Tanks, solved on Alfresco Community 7.0

@mantvs
Copy link

mantvs commented Dec 14, 2021

Very Good!

@15394730733
Copy link

15394730733 commented Jan 18, 2022

更改的文件

webapps/share/components/console/users-min.js webapps/share/components/console/users.js

调整这个以人为本的企业——以人为本。

图片

Tanks, solved on Alfresco Community 7.2
在最新的 Alfresco Community 7.2 上用这个方法也成功解决了问题,不需要修改配置webapps/share/WEB-INF/classes/alfresco/ share-config.xml里的

@IsonXXXX
Copy link

There is no folder "web-extension" in "tomcat/shared/classes/alfresco" on Alfresco Community 7.1 (docker installation), and try to create the "web-extension" manually then add "share-config-custom-dev.xml" in it. But still not working. Can someone who has experienced on this bug can tell me how to fix it? Thanks!

@vpaillusson
Copy link

vpaillusson commented Sep 2, 2022

I encounter the same issue with Alfresco Community 7.3.
Users don't show up, even after verifying that show-authorization-status value was set to false in tomcat/webapps/share/WEB-INF/classes/alfresco/share-config.xml (which I modified using a Dockerfile).
Thank you for your help.

@vpaillusson
Copy link

vpaillusson commented Sep 2, 2022

Found out what was the problem. There was actually already a share-config-custom.xml in $TOMCAT_DIR/shared/classes/alfresco/web-extension/ in which show-authorization-status was set to true.
Modifying this property to false in the same as share-config.xml through Dockerfile and then rebuilding the container did the trick.

@tannineo
Copy link

Cannot believe that they did not fix this thing or add them in the document.

@jpmahon
Copy link

jpmahon commented Nov 14, 2022

This bug is also in 7.2.1 installed using ansible. See http://github.com/Alfresco/alfresco-ansible-deployment

However, I cannot find the offending file. Does anyone know where it is?

Thanks John

@jpmahon
Copy link

jpmahon commented Nov 14, 2022

I think I found the file for the Ubuntu 20 installation. It is:

/var/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/share-config.xml

@alxgomz
Copy link
Contributor

alxgomz commented Nov 14, 2022

@jpmahon I think the file you want to edit is actually /etc/opt/alfresco/content-services/classpath/alfresco/web-extension/share-config-custom.xml
I opened the PR below so ansible deploys with the fix: Alfresco/alfresco-ansible-deployment#501

@jpmahon
Copy link

jpmahon commented Nov 14, 2022

Great Thank-you.

@jpmahon
Copy link

jpmahon commented Nov 14, 2022 via email

@ngoploti
Copy link

ngoploti commented Jan 5, 2023

Found out what was the problem. There was actually already a share-config-custom.xml in $TOMCAT_DIR/shared/classes/alfresco/web-extension/ in which show-authorization-status was set to true. Modifying this property to false in the same as share-config.xml through Dockerfile and then rebuilding the container did the trick.
Thank you @vpaillusson , it has worked for me

@sekroots
Copy link

sekroots commented Jan 18, 2023

Hello. I am using Alfresco community version 7.40 and I am also facing this know issue/bug.

`

Web Script Status 404 - Not Found

`

Web Script Status 404 - Not Found

The Web Script /alfresco/s/api/people-enterprise has responded with a status of 404 - Not Found.

404 Description: Requested resource is not available.

Message: 00180004 Script url /api/people-enterprise does not map to a Web Script.
Server: Community v7.4.0 (r490805b1-blocal) schema 18.000
Time: 18 de jan. de 2023 15:09:06

@hi-ko
Copy link

hi-ko commented Jan 18, 2023

see described work around in #367 (comment)

@sekroots
Copy link

sekroots commented Jan 19, 2023

Hello folks, how are you? I hope you are having some great times.

I did an install/deploy using docker reproducing steps from https://docs.alfresco.com/content-services/community/install/containers/docker-compose/

root@iKIGAI:# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
06a576391f76 alfresco/alfresco-acs-nginx:3.4.2 "/entrypoint.sh" 13 hours ago Up 13 hours 80/tcp, 0.0.0.0:8080->8080/tcp docker-compose_proxy_1
41338cbbd375 postgres:14.4 "docker-entrypoint.s…" 13 hours ago Up 13 hours 0.0.0.0:5432->5432/tcp docker-compose_postgres_1
4ffb6d00bff4 alfresco/alfresco-activemq:5.17.1-jre11-rockylinux8 "/bin/sh -c './init.…" 13 hours ago Up 13 hours 0.0.0.0:5672->5672/tcp, 0.0.0.0:8161->8161/tcp, 0.0.0.0:61613->61613/tcp, 0.0.0.0:61616->61616/tcp docker-compose_activemq_1
a78f227e982a alfresco/alfresco-share:7.4.0-M1 "/usr/local/tomcat/s…" 13 hours ago Up 13 hours 8000/tcp, 8080/tcp docker-compose_share_1
f35ae6e7e5ee alfresco/alfresco-content-repository-community:7.4.0-M1 "catalina.sh run -se…" 13 hours ago Up 8 hours 8000/tcp, 8080/tcp, 10001/tcp docker-compose_alfresco_1
e708f6bc2043 alfresco/alfresco-transform-core-aio:3.0.0 "/bin/sh -c 'java $J…" 13 hours ago Up 13 hours 0.0.0.0:8090->8090/tcp docker-compose_transform-core-aio_1
ee82def6b565 alfresco/alfresco-search-services:2.0.5 "/bin/sh -c '$DIST_D…" 13 hours ago Up 13 hours 10001/tcp, 0.0.0.0:8083->8983/tcp docker-compose_solr6_1
4fffd3ed7486 alfresco/alfresco-content-app:3.1.0 "/docker-entrypoint.…" 13 hours ago Up 13 hours 8080/tcp docker-compose_content-app_1
root@iKIGAI:
#

Alfresco is working and it's a very great system but I cant list users yet. I will keep researching.

@hi-ko Thanks for your reply bro. I tried that but I still cant see users but it's ok for my situation. We are using Alfresco as a document storage to CMDBUILD 3.4 setup.

I am also facing a problem to when uploading a document from CMDBUILD using /alfresco/api/-default-/public/cmis/versions/1.1/atom and I got: org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Type 'P:cmdbuild:classifiable' is unknown!

Again, I repeat: IT IS AN AMAZING TOOL. Congrats to all who developed and keep it!

Thanks.

@sekroots
Copy link

Hello folks. How are you?

I am able to upload files using CMDBUILD interface and files are correctly stored at Alfresco. Thanks

@leon1227
Copy link

Changed files
webapps/share/components/console/users-min.js webapps/share/components/console/users.js
Ajustment this people-enterprise to people.
image

Tanks, solved on Alfresco Community 7.0

Fabulous! this solved the exactly same problem even on today's newest version: JAN/2023.

@santiagoposadag
Copy link

webapps/share/components/console/users-min.js
webapps/share/components/console/users.js

the solution worked for me, i would want to give a more detailed explanation:

the first thing that you hace to do is to list you running container: "docker ps"
look what is the name of your share app

to find the specified documents mentioned below this statement:

webapps/share/components/console/users-min.js
webapps/share/components/console/users.js

you can execute an interactive shell in your share container with the following command:
docker exec -it <share_container_name> /bin/bash

But what you need to do is to copy the files that are in those paths into your host machine
so that you can replace "people-enterprise" to "people"

to do so you can use the following commands:
docker cp <container_name>:/usr/local/tomcat/webapps/share/components/console/users.js .
and
docker cp <container_name>:/usr/local/tomcat/webapps/share/components/console/users-min.js .

this will copy the files from the container into your current host path.

open the files in your text editor find "people-enterprise" and change it to "people"

save changes and copy the files back to the container with these two commands:
docker cp users.js <container_name>:/usr/local/tomcat/webapps/share/components/console/
and
docker cp users-min.js <container_name>:/usr/local/tomcat/webapps/share/components/console/

finally you just have to restart the share container with this command:

docker restart <share_container_name>

@EML-github
Copy link

What a long thread. 4 years and counting. Update for 7.4, if you're not using Docker.

The 7.4.0.1 Ansible install no longer has this problem; the fix is in /etc/opt/alfresco/content-services/classpath/alfresco/web-extension/share-config-custom.xml (yes, in /etc).

The 7.4.0 zip install still has this problem. You can fix it by editing shared/classes/alfresco/web-extension/share-config-custom.xml, with the true/false change shown lots of times above.

Thanks to everybody.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests