Uploaded image for project: 'ngrinder'
  1. ngrinder
  2. NGRINDER-414

Fix access error to the shared user's repo by SVN

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.2
    • Component/s: controller
    • Labels:
      None
    • Environment:

      Win7

      Description

      [Steps]
      1.User SVN Client(TortoiseSVN) to export user's SVN directory "http://10.34.64.213:8080/svn/user" to local ;
      2.Found error happened in TortoiseSVN "401 Unauthorized".
      This error didn't happen on "admin" user (admin/admin) but on general users,e.g. user/123456,user_du/123456.

      See attached.

        Activity

        Hide
        junoyoon JunHo Yoon added a comment -

        svn client keep the id / pw on the local pc cache. so what you've got is that svn client access the user repo with admin id.
        you should clear up the svn cache.

        if you're using svn cli, you should do like following.

        svn co http://~~~ --username user

        Show
        junoyoon JunHo Yoon added a comment - svn client keep the id / pw on the local pc cache. so what you've got is that svn client access the user repo with admin id. you should clear up the svn cache. if you're using svn cli, you should do like following. svn co http://~~~ --username user
        Hide
        junoyoon JunHo Yoon added a comment -

        I found how to resolve this issue. the key point is... I should change realm depending on the user repo. I'll resume this again.

        Show
        junoyoon JunHo Yoon added a comment - I found how to resolve this issue. the key point is... I should change realm depending on the user repo. I'll resume this again.
        Hide
        junoyoon JunHo Yoon added a comment -

        Mavlarn. Please find out the custom realm setting way.

        <!-- used for svn access -->
        <http realm="svn" pattern="/svn/**" access-decision-manager-ref="accessDecisionManager">
        <http-basic />
        <intercept-url pattern="/svn/**" access="A, U, S" />
        </http>

        in applicationContext-security, there is the above section. It uses "svn" as a realm, realmn is a kind of sub category of the security area. So. SVN client keeps the ID/PW per realmn,
        Currently... only svn realm is provided when accessing svn repo. It might be better to provide the user id as realm. Please check if there are a way to define custom security setting which dynamically set the realm depending on the URL.

        For example.. if a user access

        http://~~~/svn/user1/....

        user1 should be realmn for this URL.

        Show
        junoyoon JunHo Yoon added a comment - Mavlarn. Please find out the custom realm setting way. <!-- used for svn access --> <http realm="svn" pattern="/svn/**" access-decision-manager-ref="accessDecisionManager"> <http-basic /> <intercept-url pattern="/svn/**" access="A, U, S" /> </http> in applicationContext-security, there is the above section. It uses "svn" as a realm, realmn is a kind of sub category of the security area. So. SVN client keeps the ID/PW per realmn, Currently... only svn realm is provided when accessing svn repo. It might be better to provide the user id as realm. Please check if there are a way to define custom security setting which dynamically set the realm depending on the URL. For example.. if a user access http://~~~/svn/user1/ .... user1 should be realmn for this URL.
        Hide
        junoyoon JunHo Yoon added a comment -

        Fixed by introducing

        • svnAccessDecisionManager
        • svnHttpBasicEntryPoint
        Show
        junoyoon JunHo Yoon added a comment - Fixed by introducing svnAccessDecisionManager svnHttpBasicEntryPoint
        Hide
        junoyoon JunHo Yoon added a comment -

        Close All

        Show
        junoyoon JunHo Yoon added a comment - Close All

          People

          • Assignee:
            mavlarn Mavlarn Tuohuti
            Reporter:
            cn14306 DuBan
            CC (Referrer):
            Isaiah Choe, Mavlarn Tuohuti, 户向伟
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: