share device has an issue with expiration date

nabil boumimimak6 months ago

i tried it on demo4 and still same issue
to reproduce the issue , share a device and wait for it to expire , now share it again with a valid extended expiration date , the link will take u to the expiered one ,
you can also try sharing with an overdue date (expired) then try share it with another valid date , still same issue . seems like when you share the first time and try the second time with a diffrent date the expiration date will not change.

Anton Tananaev6 months ago

There are certain limitation with device sharing you have to know about:

  1. There can only be one shared link. If you already have one created, it will returns the existing one with the original expiration.
  2. Temporary users are deleted once an hour, so it is possible to catch the case when the user already expired, but hasn't been removed yet.
nabil boumimimak6 months ago

to be honest i didnt wait an hour when i was tring to test it in demo4. but in my server its been days and the temporary users hasnt been deleted

Anton Tananaev6 months ago

And you're using the official version 6.2 without any code modifications?

nabil boumimimak6 months ago

no 6.1 with modifications in web , i am now going back to github trying to find the exact code responsible for deleting temporary expired users . i think thats what i am missing .
if its not too much trouble can you oriente me to where exactly its implementd

Anton Tananaev6 months ago

It's done on the server side.

nabil boumimimak6 months ago

6.1 or 6.2
because my server is 6.1 now , is this the issue for me , simply upgrade the server

Anton Tananaev6 months ago

Shouldn't be an issue, but you should upgrade anyway.