@ -351,6 +351,57 @@ Feature: transfer-ownership
And u s i n g r e c e i v e d t r a n s f e r f o l d e r o f " u s e r 1 " a s d a v p a t h
And a s " u s e r 1 " t h e f o l d e r " / t e s t " e x i s t s
Scenario : transferring ownership of path does not affect other files
Given u s e r " u s e r 0 " e x i s t s
And u s e r " u s e r 1 " e x i s t s
And U s e r " u s e r 0 " c r e a t e d a f o l d e r " / t e s t "
And U s e r " u s e r 0 " u p l o a d s f i l e " d a t a / t e x t f i l e . t x t " t o " / t e s t / s o m e f i l e . t x t "
And U s e r " u s e r 0 " c r e a t e d a f o l d e r " / t e s t 2 "
And U s e r " u s e r 0 " u p l o a d s f i l e " d a t a / t e x t f i l e . t x t " t o " / t e s t 2 / s o m e f i l e . t x t "
When t r a n s f e r r i n g o w n e r s h i p o f p a t h " t e s t " f r o m " u s e r 0 " t o " u s e r 1 "
And t h e c o m m a n d w a s s u c c e s s f u l
And A s a n " u s e r 1 "
And u s i n g r e c e i v e d t r a n s f e r f o l d e r o f " u s e r 1 " a s d a v p a t h
Then D o w n l o a d e d c o n t e n t w h e n d o w n l o a d i n g f i l e " / t e s t / s o m e f i l e . t x t " w i t h r a n g e " b y t e s = 0 - 6 " s h o u l d b e " T h i s i s "
And u s i n g o l d d a v p a t h
And a s " u s e r 0 " t h e f o l d e r " / t e s t " d o e s n o t e x i s t
And a s " u s e r 0 " t h e f o l d e r " / t e s t 2 " e x i s t s
And a s " u s e r 0 " t h e f i l e " / t e s t 2 / s o m e f i l e . t x t " e x i s t s
And u s i n g r e c e i v e d t r a n s f e r f o l d e r o f " u s e r 1 " a s d a v p a t h
And a s " u s e r 1 " t h e f o l d e r " / t e s t " e x i s t s
And a s " u s e r 1 " t h e f o l d e r " / t e s t 2 " d o e s n o t e x i s t
Scenario : transferring ownership of path does not affect other shares
Given u s e r " u s e r 0 " e x i s t s
And u s e r " u s e r 1 " e x i s t s
And U s e r " u s e r 0 " c r e a t e d a f o l d e r " / t e s t "
And U s e r " u s e r 0 " u p l o a d s f i l e " d a t a / t e x t f i l e . t x t " t o " / t e s t / s o m e f i l e . t x t "
And U s e r " u s e r 0 " c r e a t e d a f o l d e r " / t e s t 2 "
And U s e r " u s e r 0 " u p l o a d s f i l e " d a t a / t e x t f i l e . t x t " t o " / t e s t 2 / s h a r e d f i l e . t x t "
And f i l e " / t e s t 2 / s h a r e d f i l e . t x t " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 " w i t h p e r m i s s i o n s 19
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
When t r a n s f e r r i n g o w n e r s h i p o f p a t h " t e s t " f r o m " u s e r 0 " t o " u s e r 1 "
And t h e c o m m a n d w a s s u c c e s s f u l
And A s a n " u s e r 1 "
And u s i n g r e c e i v e d t r a n s f e r f o l d e r o f " u s e r 1 " a s d a v p a t h
Then D o w n l o a d e d c o n t e n t w h e n d o w n l o a d i n g f i l e " / t e s t / s o m e f i l e . t x t " w i t h r a n g e " b y t e s = 0 - 6 " s h o u l d b e " T h i s i s "
And u s i n g o l d d a v p a t h
And a s " u s e r 0 " t h e f o l d e r " / t e s t " d o e s n o t e x i s t
And a s " u s e r 0 " t h e f o l d e r " / t e s t 2 " e x i s t s
And a s " u s e r 0 " t h e f i l e " / t e s t 2 / s h a r e d f i l e . t x t " e x i s t s
And u s i n g r e c e i v e d t r a n s f e r f o l d e r o f " u s e r 1 " a s d a v p a t h
And a s " u s e r 1 " t h e f o l d e r " / t e s t " e x i s t s
And a s " u s e r 1 " t h e f o l d e r " / t e s t 2 " d o e s n o t e x i s t
And u s i n g o l d d a v p a t h
And a s " u s e r 1 " t h e f i l e " / s h a r e d f i l e . t x t " e x i s t s
And A s a n " u s e r 1 "
And G e t t i n g i n f o o f l a s t s h a r e
And t h e O C S s t a t u s c o d e s h o u l d b e " 1 0 0 "
And S h a r e f i e l d s o f l a s t s h a r e m a t c h w i t h
| u i d _ o w n e r | u s e r 0 |
| u i d _ f i l e _ o w n e r | u s e r 0 |
| s h a r e _ w i t h | u s e r 1 |
Scenario : transferring ownership of file shares
Given u s e r " u s e r 0 " e x i s t s
And u s e r " u s e r 1 " e x i s t s