You are viewing a plain text version of this content. The canonical link for it is here.
Posted to photark-dev@incubator.apache.org by "Luciano Resende (JIRA)" <ji...@apache.org> on 2010/08/15 08:14:15 UTC

[jira] Created: (PHOTARK-58) Sample "Vegas" album is not being visible by default

Sample "Vegas" album is not being visible by default
----------------------------------------------------

                 Key: PHOTARK-58
                 URL: https://issues.apache.org/jira/browse/PHOTARK-58
             Project: PhotArk
          Issue Type: Bug
    Affects Versions: PhotArk M3
            Reporter: Luciano Resende
             Fix For: PhotArk M3


When deploying a photark, users should see Boston and Vegas sample albums. Currently, only Boston is being visible.
While debuging, JCRGalleryImpl getAlbumsToUSer is failing to add Vegas album due to the current "anonymous" user not have permission:

 List<Album> userAlbums = new ArrayList<Album>();
        for (Album album : albums) {
            String[] permissions = new String[]{ALBUM_VIEW_IMAGES_PERMISSION};
            if (accessManager.isPermitted(accessManager.getUserIdFromSecurityToken(securityToken), album.getName(), permissions)) {
                userAlbums.add(album);
            }
        }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PHOTARK-58) Sample "Vegas" album is not being visible by default

Posted by "Sriskandarajah Suhothayan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PHOTARK-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898737#action_12898737 ] 

Sriskandarajah Suhothayan commented on PHOTARK-58:
--------------------------------------------------

I think the albums without owners should be visible to everyone 
and only the Super Admin can make changes to those albums.

Currently those albums are not  visible to the users other than Super Admin.

> Sample "Vegas" album is not being visible by default
> ----------------------------------------------------
>
>                 Key: PHOTARK-58
>                 URL: https://issues.apache.org/jira/browse/PHOTARK-58
>             Project: PhotArk
>          Issue Type: Bug
>    Affects Versions: PhotArk M3
>            Reporter: Luciano Resende
>             Fix For: PhotArk M3
>
>
> When deploying a photark, users should see Boston and Vegas sample albums. Currently, only Boston is being visible.
> While debuging, JCRGalleryImpl getAlbumsToUSer is failing to add Vegas album due to the current "anonymous" user not have permission:
>  List<Album> userAlbums = new ArrayList<Album>();
>         for (Album album : albums) {
>             String[] permissions = new String[]{ALBUM_VIEW_IMAGES_PERMISSION};
>             if (accessManager.isPermitted(accessManager.getUserIdFromSecurityToken(securityToken), album.getName(), permissions)) {
>                 userAlbums.add(album);
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PHOTARK-58) Sample "Vegas" album is not being visible by default

Posted by "Sriskandarajah Suhothayan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PHOTARK-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sriskandarajah Suhothayan updated PHOTARK-58:
---------------------------------------------

    Attachment: fix_for_the_issue_PHOTARK-58.patch

> Sample "Vegas" album is not being visible by default
> ----------------------------------------------------
>
>                 Key: PHOTARK-58
>                 URL: https://issues.apache.org/jira/browse/PHOTARK-58
>             Project: PhotArk
>          Issue Type: Bug
>    Affects Versions: PhotArk M3
>            Reporter: Luciano Resende
>            Assignee: Sriskandarajah Suhothayan
>             Fix For: PhotArk M3
>
>         Attachments: fix_for_the_issue_PHOTARK-58.patch
>
>
> When deploying a photark, users should see Boston and Vegas sample albums. Currently, only Boston is being visible.
> While debuging, JCRGalleryImpl getAlbumsToUSer is failing to add Vegas album due to the current "anonymous" user not have permission:
>  List<Album> userAlbums = new ArrayList<Album>();
>         for (Album album : albums) {
>             String[] permissions = new String[]{ALBUM_VIEW_IMAGES_PERMISSION};
>             if (accessManager.isPermitted(accessManager.getUserIdFromSecurityToken(securityToken), album.getName(), permissions)) {
>                 userAlbums.add(album);
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PHOTARK-58) Sample "Vegas" album is not being visible by default

Posted by "Sriskandarajah Suhothayan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PHOTARK-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898676#action_12898676 ] 

Sriskandarajah Suhothayan commented on PHOTARK-58:
--------------------------------------------------

yes I have intentionally  done in this order to show that Super Admin have rights to all albums and others have only for some.
If you wish I can make Vegas public (viewable to everyone)
Please give your comments 

> Sample "Vegas" album is not being visible by default
> ----------------------------------------------------
>
>                 Key: PHOTARK-58
>                 URL: https://issues.apache.org/jira/browse/PHOTARK-58
>             Project: PhotArk
>          Issue Type: Bug
>    Affects Versions: PhotArk M3
>            Reporter: Luciano Resende
>             Fix For: PhotArk M3
>
>
> When deploying a photark, users should see Boston and Vegas sample albums. Currently, only Boston is being visible.
> While debuging, JCRGalleryImpl getAlbumsToUSer is failing to add Vegas album due to the current "anonymous" user not have permission:
>  List<Album> userAlbums = new ArrayList<Album>();
>         for (Album album : albums) {
>             String[] permissions = new String[]{ALBUM_VIEW_IMAGES_PERMISSION};
>             if (accessManager.isPermitted(accessManager.getUserIdFromSecurityToken(securityToken), album.getName(), permissions)) {
>                 userAlbums.add(album);
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (PHOTARK-58) Sample "Vegas" album is not being visible by default

Posted by "Sriskandarajah Suhothayan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PHOTARK-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sriskandarajah Suhothayan reassigned PHOTARK-58:
------------------------------------------------

    Assignee: Sriskandarajah Suhothayan

> Sample "Vegas" album is not being visible by default
> ----------------------------------------------------
>
>                 Key: PHOTARK-58
>                 URL: https://issues.apache.org/jira/browse/PHOTARK-58
>             Project: PhotArk
>          Issue Type: Bug
>    Affects Versions: PhotArk M3
>            Reporter: Luciano Resende
>            Assignee: Sriskandarajah Suhothayan
>             Fix For: PhotArk M3
>
>
> When deploying a photark, users should see Boston and Vegas sample albums. Currently, only Boston is being visible.
> While debuging, JCRGalleryImpl getAlbumsToUSer is failing to add Vegas album due to the current "anonymous" user not have permission:
>  List<Album> userAlbums = new ArrayList<Album>();
>         for (Album album : albums) {
>             String[] permissions = new String[]{ALBUM_VIEW_IMAGES_PERMISSION};
>             if (accessManager.isPermitted(accessManager.getUserIdFromSecurityToken(securityToken), album.getName(), permissions)) {
>                 userAlbums.add(album);
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PHOTARK-58) Sample "Vegas" album is not being visible by default

Posted by "Sriskandarajah Suhothayan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PHOTARK-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12900833#action_12900833 ] 

Sriskandarajah Suhothayan commented on PHOTARK-58:
--------------------------------------------------

I have fixed this issue in the revision 987604 
Now all albums with out owners will be visible to everyone

> Sample "Vegas" album is not being visible by default
> ----------------------------------------------------
>
>                 Key: PHOTARK-58
>                 URL: https://issues.apache.org/jira/browse/PHOTARK-58
>             Project: PhotArk
>          Issue Type: Bug
>    Affects Versions: PhotArk M3
>            Reporter: Luciano Resende
>            Assignee: Sriskandarajah Suhothayan
>             Fix For: PhotArk M3
>
>         Attachments: fix_for_the_issue_PHOTARK-58.patch
>
>
> When deploying a photark, users should see Boston and Vegas sample albums. Currently, only Boston is being visible.
> While debuging, JCRGalleryImpl getAlbumsToUSer is failing to add Vegas album due to the current "anonymous" user not have permission:
>  List<Album> userAlbums = new ArrayList<Album>();
>         for (Album album : albums) {
>             String[] permissions = new String[]{ALBUM_VIEW_IMAGES_PERMISSION};
>             if (accessManager.isPermitted(accessManager.getUserIdFromSecurityToken(securityToken), album.getName(), permissions)) {
>                 userAlbums.add(album);
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PHOTARK-58) Sample "Vegas" album is not being visible by default

Posted by "Avdhesh Yadav (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PHOTARK-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898699#action_12898699 ] 

Avdhesh Yadav commented on PHOTARK-58:
--------------------------------------

currently Boston and Vegas are  hard coded  as default albums but i think whatever folder(albumname and images )   placed in the gallery folder should be loaded at the startup and displayed to everyone with VIEW_IMAGES_PERMISSION.

Thoughts ?



> Sample "Vegas" album is not being visible by default
> ----------------------------------------------------
>
>                 Key: PHOTARK-58
>                 URL: https://issues.apache.org/jira/browse/PHOTARK-58
>             Project: PhotArk
>          Issue Type: Bug
>    Affects Versions: PhotArk M3
>            Reporter: Luciano Resende
>             Fix For: PhotArk M3
>
>
> When deploying a photark, users should see Boston and Vegas sample albums. Currently, only Boston is being visible.
> While debuging, JCRGalleryImpl getAlbumsToUSer is failing to add Vegas album due to the current "anonymous" user not have permission:
>  List<Album> userAlbums = new ArrayList<Album>();
>         for (Album album : albums) {
>             String[] permissions = new String[]{ALBUM_VIEW_IMAGES_PERMISSION};
>             if (accessManager.isPermitted(accessManager.getUserIdFromSecurityToken(securityToken), album.getName(), permissions)) {
>                 userAlbums.add(album);
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PHOTARK-58) Sample "Vegas" album is not being visible by default

Posted by "Sriskandarajah Suhothayan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PHOTARK-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sriskandarajah Suhothayan resolved PHOTARK-58.
----------------------------------------------

    Resolution: Fixed

> Sample "Vegas" album is not being visible by default
> ----------------------------------------------------
>
>                 Key: PHOTARK-58
>                 URL: https://issues.apache.org/jira/browse/PHOTARK-58
>             Project: PhotArk
>          Issue Type: Bug
>    Affects Versions: PhotArk M3
>            Reporter: Luciano Resende
>            Assignee: Sriskandarajah Suhothayan
>             Fix For: PhotArk M3
>
>         Attachments: fix_for_the_issue_PHOTARK-58.patch
>
>
> When deploying a photark, users should see Boston and Vegas sample albums. Currently, only Boston is being visible.
> While debuging, JCRGalleryImpl getAlbumsToUSer is failing to add Vegas album due to the current "anonymous" user not have permission:
>  List<Album> userAlbums = new ArrayList<Album>();
>         for (Album album : albums) {
>             String[] permissions = new String[]{ALBUM_VIEW_IMAGES_PERMISSION};
>             if (accessManager.isPermitted(accessManager.getUserIdFromSecurityToken(securityToken), album.getName(), permissions)) {
>                 userAlbums.add(album);
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.