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

reason for templocks? #6

Open
howeverking opened this issue Jun 26, 2014 · 2 comments
Open

reason for templocks? #6

howeverking opened this issue Jun 26, 2014 · 2 comments

Comments

@howeverking
Copy link

Let me know if there's more appropriate place where I can communicate with you (developers)
Ive been looking over the codes and the usage of templock is not clear to me.
All methods are starting with getting a templock and releases it afterwards.

It does not protect a resource since they are shared locks.
2.
Actual locking is done by regular locks.

I don't know why there need to be templocks and
why all methods are starting with getting a templock.

Can you please clarify it?

@ceefour
Copy link
Owner

ceefour commented Jul 1, 2014

From Daniel Jihoon Koh:

Hello.

I've inspected the WebdavServlet codes and could not get a clear idea
why temp locks are used.

I couldn’t find a proper place to ask this question,
I have even posted an issue on
https://github.com/ceefour/webdav-servlet/issues?state=open
but it’s not being responded,
so here I am writing you this e-mail asking this question.
Let me know if there’s more proper place or person I should ask about it.

As far as I know, temps locks are not required by webdav spec,
and I see it is trying to do an internal logic to protect the resource.
Every methods start with getting a temp lock (creating nodes) and release the lock afterwards.
However, since they are shared locks,
they do not protect the resource from other clients…

Can you please clarify why temp locks are used?

I hope to hear from you soon.

Thank you!! :)

@ceefour
Copy link
Owner

ceefour commented Jul 1, 2014

I'm sorry, I'm not the maintainer of web-servlet project which is actually in http://sourceforge.net/projects/webdav-servlet/

braully pushed a commit to braully/webdav-servlet that referenced this issue Dec 22, 2021
FUN-15544 use getTempLockedObjectByPath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants