You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2007/05/30 07:19:58 UTC

[jira] Created: (MRM-398) configure guest access by default for pre-configured repositories

configure guest access by default for pre-configured repositories
-----------------------------------------------------------------

                 Key: MRM-398
                 URL: http://jira.codehaus.org/browse/MRM-398
             Project: Archiva
          Issue Type: Bug
          Components: Users/Security, WebDAV interface
    Affects Versions: 1.0-alpha-1
            Reporter: Brett Porter


I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Odea Ching updated MRM-398:
---------------------------------

    Fix Version/s:     (was: 1.0-beta-2)
                   1.0-beta-3

> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>             Fix For: 1.0-beta-3
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99962 ] 

Brett Porter commented on MRM-398:
----------------------------------

I would suggest the best way to do this is to allow assignment of roles as a step in repository creation rather than introducing a new flag that is tied to a role.

But that's a completely different feature. This issue is *only* to configure guest access by default for pre-configured repositories.

> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>            Assignee: Jesse McConnell
>             Fix For: 1.0.x
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109808 ] 

Wendy Smoak commented on MRM-398:
---------------------------------

The solution as described does not match the summary on this issue, so I don't think it should be closed as "fixed".

I don't like defaulting newly _created_ repositories to be visible to the guest user.  That doesn't happen in Continuum-- newly added groups are not visible unless you grant roles.

As I understand the request, it was to be able to pre-configure guest access to some known repositories.  Brett?



> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>            Assignee: Joakim Erdfelt
>             Fix For: 1.0-beta-3
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Joakim Erdfelt (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joakim Erdfelt closed MRM-398.
------------------------------

    Resolution: Fixed

Partial revert of previous solution. (The part that sets all new repositories to have guest access read-only)
Different solution commit'd to archiva/trunk revision 584906.

> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>            Assignee: Joakim Erdfelt
>             Fix For: 1.0-beta-3
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Odea Ching updated MRM-398:
---------------------------------

    Fix Version/s:     (was: 1.0.x)
                   1.0-beta-2

> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>            Assignee: Jesse McConnell
>             Fix For: 1.0-beta-2
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Reopened: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter reopened MRM-398:
------------------------------


I found that this isn't working on a clean installation + database:

jvm 1    | 2007-10-17 18:21:39,076 [WrapperSimpleAppMain] WARN  org.apache.maven.archiva.web.startup.SecuritySynchronization:default  - Unable to add role [Repository Observer - snapshots] to Guest user.
jvm 1    | org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException: Unable to find RBAC Object 'Guest' of type org.codehaus.plexus.redback.rbac.jdo.JdoUserAssignment using fetch-group 'null'
jvm 1    |      at org.codehaus.plexus.redback.rbac.jdo.JdoTool.getObjectById(JdoTool.java:316)

...

jvm 1    | Caused by: javax.jdo.JDOObjectNotFoundException: No such database row
jvm 1    | FailedObject:Guest
jvm 1    |      at org.jpox.store.rdbms.request.FetchRequest.execute(FetchRequest.java:194)


> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>            Assignee: Joakim Erdfelt
>             Fix For: 1.0-beta-3
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Jesse McConnell (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99958 ] 

Jesse McConnell commented on MRM-398:
-------------------------------------

like it, and pretty easy to do using the new RoleManager object and API

> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>            Assignee: Jesse McConnell
>             Fix For: 1.0.x
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Reopened: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wendy Smoak reopened MRM-398:
-----------------------------


Reopening for discussion.

> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>            Assignee: Joakim Erdfelt
>             Fix For: 1.0-beta-3
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MRM-398:
-----------------------------

    Fix Version/s: 1.0-alpha-1

> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security, WebDAV interface
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>             Fix For: 1.0-alpha-1
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MRM-398:
-----------------------------

    Assignee:     (was: Brett Porter)

> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>             Fix For: 1.0-beta-2
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Joakim Erdfelt (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joakim Erdfelt closed MRM-398.
------------------------------

    Resolution: Fixed

Fixed in archiva/trunk revision 
Newly created repositories are setup to be automatically assigned to the guest user in read-only mode.

There are no provisions in redback to assign roles on first startup only.
Using redback ALONE to automatically assign the read-only role to the shipped repositories is not possible.

Closing issue.

We can't hard-code the repository ids either, as corporate installations of archiva will often pre-configure their archiva.xml before starting the first time.

Created a new jira MRM-539 for alternative approach that was poo-poo'd in an earlier comment by brett in this jira.


> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>            Assignee: Joakim Erdfelt
>             Fix For: 1.0-beta-3
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Joakim Erdfelt (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99954 ] 

Joakim Erdfelt commented on MRM-398:
------------------------------------

As well as making 'new' repositories be added to the Guest User ... 

I want to do this one step better.

Have on the admin / repositories page a "Secured Repository" vs "Open Repository" option (and Icon) that really just enables / disables the roles on the Guest User.

What do you think?

> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>            Assignee: Jesse McConnell
>             Fix For: 1.0.x
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MRM-398) configure guest access by default for pre-configured repositories

Posted by "Joakim Erdfelt (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joakim Erdfelt closed MRM-398.
------------------------------

    Resolution: Fixed

Fixed in trunk revision 586622.
Tested with pristine environment.

> configure guest access by default for pre-configured repositories
> -----------------------------------------------------------------
>
>                 Key: MRM-398
>                 URL: http://jira.codehaus.org/browse/MRM-398
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0-alpha-1
>            Reporter: Brett Porter
>            Assignee: Joakim Erdfelt
>             Fix For: 1.0-beta-3
>
>
> I think it makes sense for repositories to be readable by guests by default for a good OOTB experience.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira