Issue 24391 - qatesttool cvs noentry: Permission denied
Summary: qatesttool cvs noentry: Permission denied
Status: CLOSED WONT_FIX
Alias: None
Product: QA
Classification: Unclassified
Component: www (show other issues)
Version: current
Hardware: Sun Linux, all
: P3 Trivial
Target Milestone: ---
Assignee: issues@qa
QA Contact: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-14 11:38 UTC by sparcmoz
Modified: 2013-08-07 15:07 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description sparcmoz 2004-01-14 11:38:17 UTC
cvs [update aborted]: could not chdir to
qatesttool/framework/filedlg/input/noentry: Permission denied
jim@sun:/usr/local/645$ ls -la qatesttool/framework/filedlg/input/noentry
ls: qatesttool/framework/filedlg/input/noentry: Permission denied
jim@sun:/usr/local/645$ cd qatesttool/framework/filedlg/input/noentry
bash: cd: qatesttool/framework/filedlg/input/noentry: Permission denied
jim@sun:/usr/local/645$ cd qatesttool/framework/filedlg/input
jim@sun:/usr/local/645/qatesttool/framework/filedlg/input$ ls -la
total 36
drwxrwsrwx    9 jim      jim          4096 2003-12-26 10:49 .
drwxrwsrwx    6 jim      jim          4096 2003-12-26 10:49 ..
drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 alldocs
drwsrwsrwx    2 jim      jim          4096 2003-12-26 17:21 CVS
drwsrwsrwx    4 jim      jim          4096 2003-12-26 10:49 filetest
drwsrwsrwx    4 jim      jim          4096 2003-12-26 10:49 filetst2
d---------    3 jim      jim          4096 2003-12-26 10:49 noentry
dr--r--r--    3 jim      jim          4096 2003-12-26 10:49 readentry
drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 readonly

If i chmod like the others then it will proceed until after another update.
Using ssh tunnel :pserver:sparcmoz@localhost:/cvs

chmod a+rwxs *

drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 noentry
drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 readentry
drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 readonly
jim@sun:/usr/local/645/qatesttool/framework/filedlg/input$ cvs status noentry
cvs server: Examining noentry
===================================================================
File: fdlg.sxw          Status: Up-to-date
 
   Working revision:    1.1
   Repository revision: 1.1    
/cvs/qa/qatesttool/framework/filedlg/input/noentry/fdlg.sxw,v
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      -kb
 
jim@sun:/usr/local/645/qatesttool/framework/filedlg/input$
Comment 1 sparcmoz 2004-01-14 12:03:15 UTC
after all that i did delete noentry and 
cvs -z4 update -dP qatesttool

now:
jim@sun:/usr/local/645/qatesttool/framework/filedlg/input$ ls -la
total 36
drwxrwsrwx    9 jim      jim          4096 2004-01-14 22:47 .
drwxrwsrwx    6 jim      jim          4096 2003-12-26 10:49 ..
drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 alldocs
drwsrwsrwx    2 jim      jim          4096 2004-01-14 22:47 CVS
drwsrwsrwx    4 jim      jim          4096 2003-12-26 10:49 filetest
drwsrwsrwx    4 jim      jim          4096 2003-12-26 10:49 filetst2
drwxr-sr-x    3 jim      jim          4096 2004-01-14 22:47 noentry
drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 readentry
drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 readonly


jim@sun:/usr/local/645/qatesttool/framework/filedlg/input$ ls -ld noentry
drwxr-sr-x    3 jim      jim          4096 2004-01-14 22:47 noentry
jim@sun:/usr/local/645/qatesttool/framework/filedlg/input$
Comment 2 sparcmoz 2004-01-14 12:11:24 UTC
paveljanik-> sparcmoz: could you try to do cvs up in qadevtools on different
architecture?
Comment 3 sparcmoz 2004-01-15 09:08:32 UTC
did cvs checkout qatesttool on i686 linux - no problems.

hmm, maybe the testtool does something to my directories? so i run that script
on just these files:


jim@sun:/usr/local/645/qatesttool/framework/filedlg/input$ ls -la
total 36
drwxrwsrwx    9 jim      jim          4096 2004-01-14 22:47 .
drwxrwsrwx    6 jim      jim          4096 2003-12-26 10:49 ..
drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 alldocs
drwsrwsrwx    2 jim      jim          4096 2004-01-14 22:47 CVS
drwsrwsrwx    4 jim      jim          4096 2003-12-26 10:49 filetest
drwsrwsrwx    4 jim      jim          4096 2003-12-26 10:49 filetst2
d---------    3 jim      jim          4096 2004-01-14 22:47 noentry
dr--r--r--    3 jim      jim          4096 2003-12-26 10:49 readentry
drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 readonly
jim@sun:/usr/local/645/qatesttool/framework/filedlg/input$
# insert tests here
testList=("
   /qatesttool/framework/filedlg/filedlg_attributes.bas\
   /qatesttool/framework/filedlg/filedlg_autocompletion.bas\
   /qatesttool/framework/filedlg/filedlg_dialogtest.bas\
   /qatesttool/framework/filedlg/filedlg_folders.bas\
   /qatesttool/framework/filedlg/filedlg_ftpaccess.bas\
")

so it is one of these does the damage. 

result:
cvs [update aborted]: could not chdir to
qatesttool/framework/filedlg/input/noentry: Permission denied
jim@sun:/usr/local/645$

 
Comment 4 sparcmoz 2004-01-15 09:14:21 UTC
now it is a worry becuase i do everything as unpriveleged user (not root) but i
need become root to undo that damage.
Comment 5 sparcmoz 2004-01-15 09:18:11 UTC
sun:/usr/local/645# ls -ld qatesttool/framework/filedlg/input/noentry/*
drwxr-sr-x    2 jim      jim          4096 2004-01-14 22:47
qatesttool/framework/filedlg/input/noentry/CVS
-rwxr-xr-x    1 jim      jim          5359 2003-09-25 19:21
qatesttool/framework/filedlg/input/noentry/fdlg.sxw

sun:/usr/local/645# exit
exit
You have new mail in /var/mail/jim

jim@sun:/usr/local/645$ ls -ld qatesttool/framework/filedlg/input/noentry/*
ls: qatesttool/framework/filedlg/input/noentry/*: Permission denied
jim@sun:/usr/local/645$
Comment 6 sparcmoz 2004-01-15 10:21:42 UTC
I will try and move this to qa. 

I checked out qatesttool on cvs with no tag (defaults to HEAD?) and run tests
linux/sparc on 111fix2

The problem is qatesttool/framework/filedlg/filedlg_attributes.bas leaves my
directories such that cvs cannot update them:

sun:/usr/local/645/qatesttool/framework/filedlg/input# ls -la
total 36
drwxrwsrwx    9 jim      jim          4096 2004-01-14 22:47 .
drwxrwsrwx    6 jim      jim          4096 2003-12-26 10:49 ..
drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 alldocs
drwsrwsrwx    2 jim      jim          4096 2004-01-14 22:47 CVS
drwsrwsrwx    4 jim      jim          4096 2003-12-26 10:49 filetest
drwsrwsrwx    4 jim      jim          4096 2003-12-26 10:49 filetst2
d---------    3 jim      jim          4096 2004-01-14 22:47 noentry
dr--r--r--    3 jim      jim          4096 2003-12-26 10:49 readentry
drwsrwsrwx    3 jim      jim          4096 2003-12-26 10:49 readonly

I run testtool as unpriveleged user but only root can do the repairs.
Comment 7 sparcmoz 2004-01-15 10:26:27 UTC
Now in that bas these comments:

' NOTE: The test can only complete correctly if some of the working
   '       directories have special attributes/accessrights
   ' chmod -R 000 /.../framework/filedlg/input/noentry
   ' chmod -R 555 /.../framework/filedlg/input/readentry
   ' chmod 444 /.../framework/filedlg/input/readonly/*.*

 call hSetUNIXAttributes ' tries to set the attributes for the directories/files
                            ' used in tFileSpecialLoad and tFileSpecialSave
                            ' This works on Sol/Lin only (permissions required)
Comment 8 sparcmoz 2004-01-15 11:12:52 UTC
I accept if this is useful for the test, but the problem is that it cannot be
un-done by the user:
chmod -R 000 /.../framework/filedlg/input/noentry
Comment 9 stx123 2004-01-15 11:37:25 UTC
Reassign issue to owner of selected subcomponent
Comment 10 b.osi.ooo 2006-11-13 11:18:04 UTC
this is needed for the test;
So it is intended behaviour;

I didn't have an issue on cvs with that, but maybe I'm doing it somehow different...

Is it still an issue?

will close this one now.

cheers
Thorsten
Comment 11 b.osi.ooo 2006-11-13 11:19:09 UTC
.
Comment 12 sparcmoz 2006-11-13 20:45:36 UTC
The problem continues here on latest qatestool. cvs cannot over-write this
directory after running the tests.
d---------    3 jim      jim          4096 2004-01-14 22:47 noentry
So it is necessary to do a fresh checkout of qatestool every time. The module
cannot be updated using cvs update. It seems odd to modify test sources by
running a test, but the fresh checkout is a simple work-around so i am happy to
leave this closed.