You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Maria Odea Ching (JIRA)" <ji...@codehaus.org> on 2008/01/25 03:47:58 UTC

[jira] Created: (MRM-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
------------------------------------------------------------------------------------

                 Key: MRM-668
                 URL: http://jira.codehaus.org/browse/MRM-668
             Project: Archiva
          Issue Type: Bug
          Components: browser
    Affects Versions: 1.0.1
            Reporter: Maria Odea Ching
            Priority: Blocker




-- 
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-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

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

Maria Odea Ching commented on MRM-668:
--------------------------------------

i don't think so.. i was already the admin so i already had the observer role :)

> Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
> ------------------------------------------------------------------------------------
>
>                 Key: MRM-668
>                 URL: http://jira.codehaus.org/browse/MRM-668
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0.1
>            Reporter: Maria Odea Ching
>            Priority: Blocker
>


-- 
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-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

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

Maria Odea Ching commented on MRM-668:
--------------------------------------

I added a new repo called test.repo which has artifacts in it, then did a repo scan. Then went to 'Browse', there weren't any artifacts listed. 

>From my investigation, it seems like an authorization problem in repo browse. The following line (from DefaultUserRepositories.getObservableRepositoryIds(..) ) has been returning 'false' for me eventhough I was already an admin. 

if ( securitySystem.isAuthorized( securitySession, ArchivaRoleConstants.OPERATION_REPOSITORY_ACCESS, repoId ) )

I'll investigate further why this is happening..

> Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
> ------------------------------------------------------------------------------------
>
>                 Key: MRM-668
>                 URL: http://jira.codehaus.org/browse/MRM-668
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0.1
>            Reporter: Maria Odea Ching
>            Priority: Blocker
>


-- 
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-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

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

Maria Odea Ching commented on MRM-668:
--------------------------------------

I'll raise up my question in the redback dev list.. Thanks :)

> Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
> ------------------------------------------------------------------------------------
>
>                 Key: MRM-668
>                 URL: http://jira.codehaus.org/browse/MRM-668
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0.1
>            Reporter: Maria Odea Ching
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.0.1
>
>


-- 
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-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

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

Brett Porter commented on MRM-668:
----------------------------------

this has worked for me

> Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
> ------------------------------------------------------------------------------------
>
>                 Key: MRM-668
>                 URL: http://jira.codehaus.org/browse/MRM-668
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0.1
>            Reporter: Maria Odea Ching
>            Priority: Blocker
>


-- 
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-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

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

Maria Odea Ching closed MRM-668.
--------------------------------

    Resolution: Fixed

Fixed in archiva-1.0.x branch -r616198.

> Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
> ------------------------------------------------------------------------------------
>
>                 Key: MRM-668
>                 URL: http://jira.codehaus.org/browse/MRM-668
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0.1
>            Reporter: Maria Odea Ching
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.0.1
>
>


-- 
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-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

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

Maria Odea Ching commented on MRM-668:
--------------------------------------

Sorry, it should be..

SecuritySession securitySession = (SecuritySession) 
       getContextSession().get( SecuritySystemConstants.SECURITY_SESSION_KEY );                
        
if( securitySession == null )
{
      securitySession = (SecuritySession) 
           getContextSession().get( SecuritySession.ROLE );  
}

> Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
> ------------------------------------------------------------------------------------
>
>                 Key: MRM-668
>                 URL: http://jira.codehaus.org/browse/MRM-668
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0.1
>            Reporter: Maria Odea Ching
>            Priority: Blocker
>


-- 
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-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

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

Brett Porter commented on MRM-668:
----------------------------------

this could certainly explain the difference! In the first one, I retained my repositories and user database. In the second one, I used the pre-defined internal repo. So both would work.

This would seem to be a pre-existing bug with a simple workaround (assign yourself the observer role). Does that work?

> Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
> ------------------------------------------------------------------------------------
>
>                 Key: MRM-668
>                 URL: http://jira.codehaus.org/browse/MRM-668
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0.1
>            Reporter: Maria Odea Ching
>            Priority: Blocker
>


-- 
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-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

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

Brett Porter commented on MRM-668:
----------------------------------

I understand the thought behind the fix, and think it's a good enough workaround.

But I also worry it's just masking something else longer term - as your earlier question indicated: "Does anybody know when the security session is set with SecuritySystemConstants.SECURITY_SESSION_KEY as the key and when it is set with SecuritySession.ROLE as the key?" :)

Maybe one of the Redback guys could answer that? It really seems like it should only be set once.



> Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
> ------------------------------------------------------------------------------------
>
>                 Key: MRM-668
>                 URL: http://jira.codehaus.org/browse/MRM-668
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0.1
>            Reporter: Maria Odea Ching
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.0.1
>
>


-- 
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] Issue Comment Edited: (MRM-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

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

brettporter edited comment on MRM-668 at 1/25/08 2:10 AM:
-----------------------------------------------------------

this has worked for me when I was testing the other day based on the release candidate - so it's a little weird there is an inconsistency. For the record, I used my existing user database and repository, but removed the 'archiva' database and the indexes in the repositories, then rescanned them both on start up.

Perhaps it's a default configuration issue?

      was (Author: brettporter):
    this has worked for me
  
> Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
> ------------------------------------------------------------------------------------
>
>                 Key: MRM-668
>                 URL: http://jira.codehaus.org/browse/MRM-668
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0.1
>            Reporter: Maria Odea Ching
>            Priority: Blocker
>


-- 
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-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

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

Maria Odea Ching commented on MRM-668:
--------------------------------------

Looks like it was from my fix in MRM-628, which caused this problem. I changed the key to be looked up to get the security session in ArchivaXworkUser from SecuritySystemConstants.SECURITY_SESSION_KEY  to SecuritySession.ROLE (because the security session's key is set to this). Both are the same security sessions but set with different keys in the session map. Does anybody know when the security session is set with SecuritySystemConstants.SECURITY_SESSION_KEY as the key and when it is set with SecuritySession.ROLE as the key? 

To handle this, I will put a check to lookup the security session from the session map using both keys as shown below. This is in ArchivaXworkUser btw..

private SecuritySession getSecuritySession()
{        
        SecuritySession securitySession = (SecuritySession) getContextSession().get( SecuritySession.ROLE );          
        if( securitySession == null )
        {
            securitySession = (SecuritySession) getContextSession().get( SecuritySystemConstants.SECURITY_SESSION_KEY );  
        }
                
    	return securitySession;        
}


Please advice if there might be anything that will be affected by this.. Thanks 


> Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
> ------------------------------------------------------------------------------------
>
>                 Key: MRM-668
>                 URL: http://jira.codehaus.org/browse/MRM-668
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0.1
>            Reporter: Maria Odea Ching
>            Priority: Blocker
>


-- 
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-668) Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate

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

Brett Porter updated MRM-668:
-----------------------------

         Assignee: Maria Odea Ching
    Fix Version/s: 1.0.1

> Repo browse and search isn't working in trunk and in archiva 1.0.1 release candidate
> ------------------------------------------------------------------------------------
>
>                 Key: MRM-668
>                 URL: http://jira.codehaus.org/browse/MRM-668
>             Project: Archiva
>          Issue Type: Bug
>          Components: browser
>    Affects Versions: 1.0.1
>            Reporter: Maria Odea Ching
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.0.1
>
>


-- 
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