smhaller / ldap-overleaf-sl

Free LDAP and OAuth2 Authentication and Authorisation for Sharelatex / Overleaf (Community Edition)
GNU Affero General Public License v3.0
74 stars 35 forks source link

Admin Panel doesn't work #27

Closed nehart closed 11 months ago

nehart commented 1 year ago

Hi, First, thanks for the perfect adoption on overleaf.

Besides the admin panel, everything is working ... ... I have no content, when I open the panel... It doesn't matter if I do this with an local or LDAP admin.

Have I done something wrong, or is this a bug? What would you need from me in order to be able to support?

I am using the latest version on this GitHub repository.

admin_panel

smhaller commented 1 year ago

can you try to comment line 61 in ldap-overleaf-sl/Dockerfile and re-build the Image

nehart commented 1 year ago

Hi, Yes... sure.... THANKS!!!!!!... should be possible on the weekend... I will keep you posted!

BR, Norbert.

nehart commented 1 year ago

Unfortunately, it didn't work to remove the following line ....

#rm /overleaf/services/web/modules/user-activate/app/views/user/register.pug && \

You have updated the Dockerfile, right? I had to comment out the line with "share.pug" due to an error that the file is missing!

## share.pug file was removed in later versions
#sed -iE "s%placeholder=.*$%placeholder=\"${collab_text}\"%g" /overleaf/services/web/app/views/project/editor/share.pug && \

BR, Norbert.

nehart commented 1 year ago

Maybe this error message from Firefox helps

Error: [$controller:ctrlreg] The controller with the name 'RegisterUsersController' is not registered.
https://errors.angularjs.org/1.8.2/$controller/ctrlreg?p0=RegisterUsersController
    i https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    get https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    g https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    ae https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    ue https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    ue https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    ue https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    ue https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    ue https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    ue https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    oe https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    i https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    $eval https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    $apply https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    i https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    invoke https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    i https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    Ce https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    <anonymous> https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    <anonymous> https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    <anonymous> https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    <anonymous> https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
    <anonymous> https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2

Object { tags: {…}, extra: {} }
​
extra: Object {  }
​
tags: Object { handler: "angular-exception-handler" }
​
<prototype>: Object { … }
main-1ca8047f80eb1ecaf033.js:2:933988
    <anonymous> https://test03.int.ehart.net/js/main-1ca8047f80eb1ecaf033.js:2
holema commented 1 year ago

Hello, i face the same issue.

holema commented 1 year ago

I found a way to fix this isue: in the new version of this file there is no card with a controller, so I removed this from the card and now the admin page is working. I don't know if there is something missing but as a workaround this is a possibility.

 .col-xs-12
                                        .card
                                                .page-header

image

VPaulV commented 11 months ago

@holema thx! Works for me as well

smhaller commented 11 months ago

Please reopen if the patch does not work for you

tinkerdudeno1 commented 5 days ago

Sorry to have to dig this up again: Where do I erase the lines mentioned above to make the admin panel work again, I cannot seem to find the correct place... I just found out I am not working on the latest version, but on the latest release. I'll try upgrading but I just saw that you committed a change which will fix this. Nevermind!