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

JS error "cannot read properties of null (reading 'uuid')" when open details of a file #3145

Closed
wmeneses opened this issue Jun 13, 2024 · 14 comments
Labels
bug Something isn't working frontend Frontend task good first issue Good for newcomers

Comments

@wmeneses
Copy link

when I access through the libresign icon, the other icons in the bar disappear, when I click on the PDF the sidebar does not load and it is not possible to sign.

Enviroment:

ubuntu server
Browser: any
LibreSign Versión 8.0.2
Nextcloud 28.0.6
Logs (No log error from libresign)

libre

Environment information (please complete the following information):

  • OS: [e.g. Linux Debian, Docker]
  • Browser [e.g. chrome, safari]
  • LibreSign Version [e.g. 3.2.1]
  • Nextcloud Server Version [e.g. 24.0.1]
  • Logs (get the entries from nextcloud.log related with LibreSign i.e tail -f data/nextcloud.log|grep libresign)
@wmeneses wmeneses added the bug Something isn't working label Jun 13, 2024
@github-project-automation github-project-automation bot moved this to 0. Needs triage in Roadmap Jun 13, 2024
@wmeneses
Copy link
Author

It was working fine, (maybe it's cache).

@vitormattos
Copy link
Member

Thanks a lot by your report

Have two types of pages at LibreSIgn:

  1. to authenticated accounts.
    This will display the menu bar
  2. Public pages, to signers that haven't account (signing by email by example)
    This page don't will display the menu bar

I need to make more tests to identify the cases that a link of public page is displayed to an authenticated account.

I already identified a moment:

This need to be fixed.

But could have other scenarios that reproduce the same behavior.

If possible to check what's the steps to reproduce your problem will be excellent to define a right title to this issue and to check if isn't the same scenario of issue #3133. Could you check this and return here with more details?

@wmeneses
Copy link
Author

I am not sure, that it is the same case, it happens to me that simply the sidebar does not load anymore, generating that javascript error when I select the file to sign, the signing process seems to be correct.
imagen_2024-06-13_131724312

@vitormattos
Copy link
Member

I identified the points at RequestSignatureTab.vue that use the property uid
I will review those pieces of code to verify what's happening.
For now, I will rename this issue to be about this JS error because is the point that we identified.

@wmeneses
Copy link
Author

Thank you very much, thank you guys for such a wonderful job. I hope you continue to improve it. I'll keep an eye on this error.

@vitormattos vitormattos changed the title I don't know what happened JS error "cannot read properties of null (reading 'uuid')" when open details of a file Jun 17, 2024
@vitormattos vitormattos added good first issue Good for newcomers frontend Frontend task labels Jun 17, 2024
@wmeneses
Copy link
Author

Hi, I have performed the same test, but with local users and it works fine.

I see what happens with my LDAP users

@vitormattos
Copy link
Member

Good!

I will made a best check at the point of code that throws the error and keep in mind this information.

@wmeneses
Copy link
Author

it seems to be with certain users, I have noticed that it may be because they delete the default folder (LibreSign) that is created in nextcloud, but if I try to create the same folder it still does not work, can it be that, is there a way to "clean" some registry in the user account?

@wmeneses
Copy link
Author

Hi, I have tested this theory and indeed it is that I deleted the libresign folder of several users, because I changed the name from the configuration, I restored the folder and it worked again.

I do not know if this case can be closed, or if it is preferable that in the future this has a solution to prevent a user to do so and lose this functionality, something like "rebuild my signature folder".

Thanks!

@vitormattos
Copy link
Member

If I understood, this problem occur after then you delete the LibreSign folder of an account that already signed a document using visible signature and using a certificate, right? And after then you restored the folder, the problem was solved.

@wmeneses
Copy link
Author

If I understood, this problem occur after then you delete the LibreSign folder of an account that already signed a document using visible signature and using a certificate, right? And after then you restored the folder, the problem was solved.

Yes, it was solved by restoring the folders.

@vitormattos
Copy link
Member

Let's maintain this open. Now we have a scenario to reproduce the problem.

I will check this.

@vitormattos vitormattos added this to the Next Major (30) milestone Jun 27, 2024
@vitormattos vitormattos moved this from 0. Needs triage to Next release in Roadmap Jun 27, 2024
@vitormattos
Copy link
Member

Hi @wmeneses I made a new test without success to reproduce the issue. This sounds good, but I didn't remember that I solved this, maybe was "accidentally" solved and this also is good.

Could you test again with the newest release of LibreSign and give feedback here about your tests related to this issue?

@vitormattos
Copy link
Member

Could you check again at the newest release of LibreSign?

I made a lot of improvements.

Closing this issue as solved.

If this issue persists, don't hesitate to open a new issue making reference to this.

Note

If you like this app, don't hesitate to help us

Ways to help this project:

@github-project-automation github-project-automation bot moved this from Next release to 4. to release in Roadmap Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Frontend task good first issue Good for newcomers
Projects
Status: 4. to release
Development

No branches or pull requests

2 participants