Uploaded image for project: '{RETIRED} Curriki'
  1. {RETIRED} Curriki
  2. CURRIKI-2467

Build-up a group and personal collection puts resource in wrong space and fails to make a group resource in most cases.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 1.6.1 EOU1 update
    • 1.6 EOU 1
    • Add Path
    • None

    Description

      Summary: Build-up only places the resulting asset in the correct space if you are building up from a group curriculum tab OR you are building-up one of your own collections.
      ---------------------- Evidence below --------------------

      Build-up a group collection. I added an image asset in IE 7. At the end of the add there was a JS error in line one, and the asset was not added into the group collection space:

      http://current.dev.curriki.org/xwiki/bin/view/Coll_jmarks/Spock?bc=Coll_Group_Thisisaclosedgroup%2DTestingBuildUP.BuildUpthisCollection

      A similar error seems to occurs in FF2:

      http://current.dev.curriki.org/xwiki/bin/view/Coll_Flerp/AlembicBass?bc=Coll_Group_Thisisaclosedgroup%2DTestingBuildUP.BuildUpthisCollection

      In Firebug, the JS error is-
      C is not a function
      contains()curriki-main.js (line 1)
      contains(Object tId=9 status=200 statusText=OK, Object url=/xwiki/curriki/users/XWiki.Flerp/groups)curriki-main.js (line 1)
      apply(function(), Object me=Object collections=[1] groups=[0], [Object tId=9 status=200 statusText=OK, Object url=/xwiki/curriki/users/XWiki.Flerp/groups], undefined)ext%2Dbase.js (line 9)
      Connection(Object tId=9 status=200 statusText=OK)ext%2Dall.js (line 17)
      getViewWidth(Object conn=XMLHttpRequest tId=9, Object scope=Object argument=Object timeout=30000, undefined)ext%2Dbase.js (line 10)
      getViewWidth()ext%2Dbase.js (line 10)
      [Break on this error] Array.prototype.contains=function(A)

      {return this.indexOf(A)!==-1}

      ;Ext.namespace(...

      Also in FF, when a non group member adds a LP into a closed group's open collection (Or any open collection probably), the resource is not added to the group collection space.
      However when I used Build-up from the Collections tab (Not view), when logged-in as a group member, I was able to add a link resource that is in the correct collection space:

      http://current.dev.curriki.org/xwiki/bin/view/Coll_Group_Thisisaclosedgroup-TestingBuildUP/Linktest?bc=Coll_Group_Thisisaclosedgroup%2DTestingBuildUP.BuildUpthisCollection

      Additionally, a non member building up form the a groups Curriculum tab is also good:

      http://current.dev.curriki.org/xwiki/bin/view/Coll_Group_Thisisaclosedgroup%2DTestingBuildUP/Nongroupmemberbuild%2Dupfromcollectiontab?bc=Coll_Group_Thisisaclosedgroup%2DTestingBuildUP.BuildUpthisCollection

      THEREFORE!!! Build up from view does not maintain the target collection of the parent. However, Build-up from group curriculum tab does. Additionally, building up another users collection (Form view or from the personal "My Collections" tab) fails to place the new asset in the same space as the composite asset being built-up.

      Attachments

        Activity

          People

            ashanair Asha.A.Nair
            jmarks Joshua Marks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: