You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Ricardo Smania (Desenv)" <ri...@mega.com.br> on 2011/05/16 16:10:34 UTC

Blank log messages when user has no access to specific folder

Hello,

Suppose I have the following folder structure on a specific branch of a Subversion server:

Product 1
  Module A
  Module B

And that a user has access to Module A but not Module B.

If someone commits something to Module A, the user sees it. If someone commits to Module B, he doesn't. That's expected.

If someone commits something to A and B simultaneously, the user sees on the file list what was commited on A but not what was commited on B. That's also expected. When that happens, however, the log message is shown blank to that user, which brings us problems because the user needs to see the bug ID associated with that commit.

Is there a way to always show the log message, even if the user can't see the complete list of files/folders that were commited?

Thank you.

RES: RES: Blank log messages when user has no access to specific folder

Posted by "Ricardo Smania (Desenv)" <ri...@mega.com.br>.
Hello Thorsten,

What happens here is that we have a module with base classes, and all other classes inherit from one in this module. Sometimes we alter something on one of these classes that cause an impact on the subclasses, forcing us to also commit them.

Commiting the modules separately is definitely an easy solution, I just wanted to check if there was some other way to do it.

Thank you all for your help.

Ricardo


-----Mensagem original-----
De: Thorsten Schöning [mailto:tschoening@am-soft.de] 
Enviada em: terça-feira, 17 de maio de 2011 03:47
Para: users@
Assunto: Re: RES: Blank log messages when user has no access to specific folder

Guten Tag Ricardo Smania (Desenv),
am Montag, 16. Mai 2011 um 18:36 schrieben Sie:

> The path isn't
> important, so if there is a way to show the paths and log message,
> but without showing the contents, that would also be a viable solution for us.

I don't think so, there is only read write access in general, not
divided by log, file contents etc. Is there any reason why it's
necessary to commit to both of your example modules in one commit and
not two? I have the same problem, different tags for different
customers with different access rights, and the easiest way to let
each customer get his log message is different commits. Of course it's
on to the committer to have that in mind, but using a pre commit hook
you even may check that there's no commit for both modules with
different access rights.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig
 
Telefon: Potsdam: 0331-743881-0
E-Mail:  tschoening@am-soft.de
Web:     http://www.am-soft.de

AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow


Re: RES: Blank log messages when user has no access to specific folder

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Ricardo Smania (Desenv),
am Montag, 16. Mai 2011 um 18:36 schrieben Sie:

> The path isn't
> important, so if there is a way to show the paths and log message,
> but without showing the contents, that would also be a viable solution for us.

I don't think so, there is only read write access in general, not
divided by log, file contents etc. Is there any reason why it's
necessary to commit to both of your example modules in one commit and
not two? I have the same problem, different tags for different
customers with different access rights, and the easiest way to let
each customer get his log message is different commits. Of course it's
on to the committer to have that in mind, but using a pre commit hook
you even may check that there's no commit for both modules with
different access rights.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig
 
Telefon: Potsdam: 0331-743881-0
E-Mail:  tschoening@am-soft.de
Web:     http://www.am-soft.de

AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow


RES: Blank log messages when user has no access to specific folder

Posted by "Ricardo Smania (Desenv)" <ri...@mega.com.br>.
Hello Erik,

What we intended when we blocked certain folders was that only a few users could see the contents of the files. The path isn't important, so if there is a way to show the paths and log message, but without showing the contents, that would also be a viable solution for us.

Thank you,

Ricardo

-----Mensagem original-----
De: Erik Huelsmann [mailto:ehuels@gmail.com] 
Enviada em: segunda-feira, 16 de maio de 2011 13:16
Para: Daniel Shahaf
Cc: Ricardo Smania (Desenv); users@subversion.apache.org
Assunto: Re: Blank log messages when user has no access to specific folder

Hi Ricardo,

On Mon, May 16, 2011 at 5:38 PM, Daniel Shahaf <d....@daniel.shahaf.name> wrote:
> Ricardo Smania (Desenv) wrote on Mon, May 16, 2011 at 11:10:34 -0300:
>> Is there a way to always show the log message, even if the user can't see the complete list of files/folders that were commited?
>>
>
> Not without applying a custom patch to the server.
>
> (to libsvn_repos)

The choice to leave the log message blank is very explicit: what
guarantee do you have that the message doesn't contain references to
paths the unauthorized user isn't allowed to see?


Bye,

Erik.

Re: Blank log messages when user has no access to specific folder

Posted by Erik Huelsmann <eh...@gmail.com>.
Hi Ricardo,

On Mon, May 16, 2011 at 5:38 PM, Daniel Shahaf <d....@daniel.shahaf.name> wrote:
> Ricardo Smania (Desenv) wrote on Mon, May 16, 2011 at 11:10:34 -0300:
>> Is there a way to always show the log message, even if the user can't see the complete list of files/folders that were commited?
>>
>
> Not without applying a custom patch to the server.
>
> (to libsvn_repos)

The choice to leave the log message blank is very explicit: what
guarantee do you have that the message doesn't contain references to
paths the unauthorized user isn't allowed to see?


Bye,

Erik.

Re: RES: Blank log messages when user has no access to specific folder

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Daniel Shahaf wrote on Tue, May 17, 2011 at 09:56:56 +0200:
> The latter.  Though from memory it's a one-line change to
> libsvn_repos/fs-wrap.c.
> 

See svn_repos_fs_revision_prop()

> (no time right now or I'd give a better pointer)
> 
> Ricardo Smania (Desenv) wrote on Mon, May 16, 2011 at 13:33:20 -0300:
> > Hello Daniel,
> > 
> > Is that patch already available or it would have to be developed from scratch?
> > 
> > Thank you,
> > 
> > Ricardo
> > 
> > 
> > -----Mensagem original-----
> > De: Daniel Shahaf [mailto:d.s@daniel.shahaf.name] 
> > Enviada em: segunda-feira, 16 de maio de 2011 12:38
> > Para: Ricardo Smania (Desenv)
> > Cc: users@subversion.apache.org
> > Assunto: Re: Blank log messages when user has no access to specific folder
> > 
> > Ricardo Smania (Desenv) wrote on Mon, May 16, 2011 at 11:10:34 -0300:
> > > Is there a way to always show the log message, even if the user can't see the complete list of files/folders that were commited?
> > > 
> > 
> > Not without applying a custom patch to the server.
> > 
> > (to libsvn_repos)

Re: RES: Blank log messages when user has no access to specific folder

Posted by Stefan Sperling <st...@elego.de>.
On Tue, May 17, 2011 at 09:56:56AM +0200, Daniel Shahaf wrote:
> The latter.  Though from memory it's a one-line change to
> libsvn_repos/fs-wrap.c.
> 
> (no time right now or I'd give a better pointer)

If such a patch was written we should probably add this as an option
specified somewhere in the authz grammar (allow_log or somesuch).

Though I like the pre-commit hook script suggestion by Thorsten as well.
It's definitely the quickest way to stop the problem from occurring ASAP.

Re: RES: Blank log messages when user has no access to specific folder

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
The latter.  Though from memory it's a one-line change to
libsvn_repos/fs-wrap.c.

(no time right now or I'd give a better pointer)

Ricardo Smania (Desenv) wrote on Mon, May 16, 2011 at 13:33:20 -0300:
> Hello Daniel,
> 
> Is that patch already available or it would have to be developed from scratch?
> 
> Thank you,
> 
> Ricardo
> 
> 
> -----Mensagem original-----
> De: Daniel Shahaf [mailto:d.s@daniel.shahaf.name] 
> Enviada em: segunda-feira, 16 de maio de 2011 12:38
> Para: Ricardo Smania (Desenv)
> Cc: users@subversion.apache.org
> Assunto: Re: Blank log messages when user has no access to specific folder
> 
> Ricardo Smania (Desenv) wrote on Mon, May 16, 2011 at 11:10:34 -0300:
> > Is there a way to always show the log message, even if the user can't see the complete list of files/folders that were commited?
> > 
> 
> Not without applying a custom patch to the server.
> 
> (to libsvn_repos)

RES: Blank log messages when user has no access to specific folder

Posted by "Ricardo Smania (Desenv)" <ri...@mega.com.br>.
Hello Daniel,

Is that patch already available or it would have to be developed from scratch?

Thank you,

Ricardo


-----Mensagem original-----
De: Daniel Shahaf [mailto:d.s@daniel.shahaf.name] 
Enviada em: segunda-feira, 16 de maio de 2011 12:38
Para: Ricardo Smania (Desenv)
Cc: users@subversion.apache.org
Assunto: Re: Blank log messages when user has no access to specific folder

Ricardo Smania (Desenv) wrote on Mon, May 16, 2011 at 11:10:34 -0300:
> Is there a way to always show the log message, even if the user can't see the complete list of files/folders that were commited?
> 

Not without applying a custom patch to the server.

(to libsvn_repos)

Re: Blank log messages when user has no access to specific folder

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Ricardo Smania (Desenv) wrote on Mon, May 16, 2011 at 11:10:34 -0300:
> Is there a way to always show the log message, even if the user can't see the complete list of files/folders that were commited?
> 

Not without applying a custom patch to the server.

(to libsvn_repos)