Access denied in uncontrolled folder prevents add in controlled folder

Bug #1012907 reported by Kevin R. Bulgrien
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Explorer
New
Undecided
LunarSwift
QBzr
Incomplete
Undecided
Unassigned

Bug Description

In a corporate environment, IT has installed Symantec Endpoint Protection. In the use-case, I control my web browser bookmarks and other general system configuration files in Bazaar. This means that I see a glaring red exclamation on my C: drive if I forget to commit adds and changes to configuration in areas I want to preserve across hard disk failures or to duplicate on other systems.

In any event, I cannot add new files via the explorer integration now. When I try to add via the GUI, I get:

Bazaar has encountered an environmental error. Please report a bug if this is not the result of a local problem at https://bugs.launchpad.net/qbzr/+filebug including this traceback, and a description of what you were doing when the error occurred.

bzr: ERROR: [Error 5] Access is denied: u'C:/Documents and Settings/All Users/Application Data/Symantec/Symantec Endpoint Protection/12.1.1000.157.105/SRTSP/Quarantine\\*.*'

The thing is All Users was not added or committed. I even tried adding down to SRTSP and ignoring it and Quarantine, but ignoring these folders does not stop Bazaar for poking its nose into places nobody asked it too.

All I was trying to do was use the GUI to add C:\Documents and Settings\kbulgrien\Favorites\yadayada.url

Bazaar itself has an issue with files going non-readable in the workspace, but what's all this about preventing someone from working in their workspace because of some other totally random unreadable file in a place nowhere near the workspace!

Revision history for this message
Kevin R. Bulgrien (kevin-bulgrien) wrote :

Tortoise Bazaar 0.6.6
Executable: C:\Program Files\Bazaar\tbzrcommand.exe
Library: C:\Program Files\Bazaar\lib\library.zip\tbzrlib
from bzr checkout C:/
  revision: 16
  revid: <email address hidden>
  branch nick: c

Bazaar (bzr) 2.5.0
  from bzr checkout C:/
    revision: 16
    revid: <email address hidden>
    branch nick: c
  Python interpreter: C:\Program Files\Bazaar\python26.dll 2.6.6
  Python standard library: C:\Program Files\Bazaar\lib\library.zip
  Platform: Windows-XP-5.1.2600-SP3
  bzrlib: C:\Program Files\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:/Documents and Settings/kbulgrien/Application Data/bazaar/2.0
  Bazaar log file: C:\Documents and Settings\kbulgrien\My Documents\.bzr.log
bzrtools 2.5.0
Various useful commands for working with bzr.
changelog_merge 2.5.0
Merge hook for GNU-format ChangeLog files
colo 0.4.0
Work with colocated branches using current technology.
explorer 1.2.2
Version Control for Human Beings.
fastimport 0.14.0dev
FastImport Plugin
git 0.6.7
A GIT branch and repository format implementation for bzr.
launchpad 2.5.0
Launchpad.net integration plugin for Bazaar.
loom 2.3.0dev
(no description)
netrc_credential_store 2.5.0
Use ~/.netrc as a credential store for authentication.conf.
news_merge 2.5.0
Merge hook for bzr's NEWS file.
pipeline 1.4.0
Manage a series of branches as a pipeline.
qbzr 0.22.1
QBzr - Qt-based frontend for Bazaar
rewrite 0.6.4dev
Rebase support.
svn 1.1.2
Support for Subversion branches
upload 1.0.1dev
Upload a working tree, incrementally.
xmloutput 0.8.8
This plugin adds an option (--xml) to log and provides an xml version of some builtin commands.

Revision history for this message
Kevin R. Bulgrien (kevin-bulgrien) wrote :

Also, this appears to break the whole GUI integration. (!) overlays do not go away even after using a command line to fix the issues, and there is no Bazaar context menus stuff when I right-click under C:\Documents and Settings\kbulgrien\Favorites. I do get context menu integration at Favorites, just not below. I have no idea if/how that error message and context menu breakage is related. I have controlled files under Favorites that I committed via the command-line interface.

Revision history for this message
Kevin R. Bulgrien (kevin-bulgrien) wrote :

Upgrading to the 2.5.1 Windows installer does nothing to change the issue.

Revision history for this message
Alexander Belchenko (bialix) wrote :

(!) Overlays is related to TortoiseBzr.

I'm not sure about inability to add files.
Can you try to stop tracking "All Users" in bzr with command:

bzr remove --keep "path/to/All Users"

and then just ignore the entire All Users folder?

Changed in qbzr:
status: New → Incomplete
Revision history for this message
Alexander Belchenko (bialix) wrote :

Also, for error
bzr: ERROR: [Error 5] Access is denied: u'C:/Documents and Settings/All Users/Application Data/Symantec/Symantec Endpoint Protection/12.1.1000.157.105/SRTSP/Quarantine\\*.*'

I need the relevant part of .bzr.log. You can find location of your .bzr.log in the output of `bzr version` or corresponding GUI dialog.

Revision history for this message
Kevin R. Bulgrien (kevin-bulgrien) wrote :

(!) Overlays are not affected as mentioned above. When I fixed an issue in the CLI, I had not done a status command there and had not seen additional issues in the GUI, but later found them and the overlays updated. They had been appropriate all along. Apologies for the misinformation.

Revision history for this message
Kevin R. Bulgrien (kevin-bulgrien) wrote :

See attached snippet from .bzr.log.

Revision history for this message
Kevin R. Bulgrien (kevin-bulgrien) wrote :

I really do not want to ignore the whole All Users folder, but I have no particular interest in the Symantec stuff, so using MinGW MSYS:

$ bzr remove --keep "/c/Documents and Settings/All Users/Application Data/Symantec"
bzr: ERROR: [Error 5] Access is denied: u'C:/Documents and Settings/All Users/Application Data/Symantec/Symantec Endpoint Protection/12.1.1000.157.105/SRTSP/Quarantine\\*.*'

Revision history for this message
Alexander Belchenko (bialix) wrote :

The last error indicates the problem in bzr itself.

affects: tortoisebzr → bzr
Revision history for this message
Alexander Belchenko (bialix) wrote :

Can you show me content of your .bzrignore, please? Also, can you check what `bzr ignored` command prints?

Revision history for this message
Alexander Belchenko (bialix) wrote :

So we have a problem in qbzr:

2.290 Traceback (most recent call last):
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\trace.py", line 365, in reports_exception_decorate
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\add.py", line 143, in initial_load
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 1469, in set_tree
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 539, in set_tree
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 667, in process_tree
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 1177, in set_checked_paths
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 1169, in set_checked_items
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 849, in setData
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 838, in set_child_checked_recurse
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 838, in set_child_checked_recurse
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 838, in set_child_checked_recurse
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 838, in set_child_checked_recurse
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 838, in set_child_checked_recurse
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 838, in set_child_checked_recurse
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 817, in set_child_checked_recurse
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 632, in load_dir
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\treewidget.py", line 559, in working_tree_get_children
WindowsError: [Error 5] Access is denied: u'C:/Documents and Settings/All Users/Application Data/Symantec/Symantec Endpoint Protection/12.1.1000.157.105/SRTSP/Quarantine\\*.*'

I wonder why we're trying to look into that folder if you say it's ignored.

tags: added: qadd treewidget
Revision history for this message
Kevin R. Bulgrien (kevin-bulgrien) wrote :

$ cat /c/.bzrignore
System Volume Information
NTUSER.DAT
RECYCLER
ntldr
*.lnk
.bzr.log
_AcroTemp
ntuser.???*
Desktop.ini
desktop.ini
pagefile.sys
./MSOCache
./Documents and Settings/All Users/Application Data/Symantec/Symantec Endpoint Protection/12.1.1000.157.105/SRTSP
Quarantine
SrtETmp

Revision history for this message
Kevin R. Bulgrien (kevin-bulgrien) wrote :
Download full text (3.5 KiB)

$ cd ~ && bzr ignored
Documents and Settings/All Users/Application Data/Symantec/Symantec Endpoint Protection/12.1.1000.157.105/SRTSP ./Documents and Settings/All Users/Application Data/Symantec/Symantec Endpoint Protection/12.1.1000.157.105/SRTSP
Documents and Settings/All Users/Application Data/desktop.ini desktop.ini
Documents and Settings/All Users/ntuser.dat ntuser.???*
Documents and Settings/All Users/ntuser.dat.LOG ntuser.???*
Documents and Settings/All Users/ntuser.pol ntuser.???*
Documents and Settings/kbulgrien/Application Data/Microsoft/Internet Explorer/Quick Launch/Altova DiffDog.lnk *.lnk
Documents and Settings/kbulgrien/Application Data/Microsoft/Internet Explorer/Quick Launch/Bazaar Explorer.lnk *.lnk
Documents and Settings/kbulgrien/Application Data/Microsoft/Internet Explorer/Quick Launch/Launch Internet Explorer Browser.lnk *.lnk
Documents and Settings/kbulgrien/Application Data/Microsoft/Internet Explorer/Quick Launch/Launch Microsoft Office Outlook.lnk *.lnk
Documents and Settings/kbulgrien/Application Data/Microsoft/Internet Explorer/Quick Launch/MSYS.lnk *.lnk
Documents and Settings/kbulgrien/Application Data/Microsoft/Internet Explorer/Quick Launch/Mozilla Firefox.lnk *.lnk
Documents and Settings/kbulgrien/Application Data/Microsoft/Internet Explorer/Quick Launch/Outlook Express.lnk *.lnk
Documents and Settings/kbulgrien/Application Data/Microsoft/Internet Explorer/Quick Launch/PuTTY.lnk *.lnk
Documents and Settings/kbulgrien/Application Data/Microsoft/Internet Explorer/Quick Launch/Windows Explorer.lnk *.lnk
Documents and Settings/kbulgrien/Application Data/Microsoft/Internet Explorer/Quick Launch/desktop.ini desktop.ini
Documents and Settings/kbulgrien/Application Data/desktop.ini desktop.ini
Documents and Settings/kbulgrien/Desktop/Launchers/Adobe Acrobat 9 Standard.lnk *.lnk
Documents and Settings/kbulgrien/Desktop/Launchers/Altova DiffDog.lnk *.lnk
Documents and Settings/kbulgrien/Desktop/Launchers/Bazaar Explorer.lnk *.lnk
Documents and Settings/kbulgrien/Desktop/Launchers/Doctar Runtime.lnk *.lnk
Documents and Settings/kbulgrien/Desktop/Launchers/Internet Explorer.lnk *.lnk
Documents and Settings/kbulgrien/Desktop/Launchers/MSYS.lnk *.lnk
Documents and Settings/kbulgrien/Desktop/Launchers/Mozilla Firefox.lnk *.lnk
Documents and Settings/kbulgrien/Desktop/Launchers/diskmgmt.msc.lnk *.lnk
Documents and Settings/kbulgrien/Desktop/Launchers/gVim 7.2.lnk *.lnk
Documents and Settings/kbulgrien/Desktop/Launchers/gVim Easy 7.2.lnk *.lnk
Documents and Settings/kbulgrien/Desktop/Launchers/gVim Read only 7.2.lnk *.lnk
Documents and Settings/kbulgrien/My Documents/.bzr.log .bzr.log
Documents and Settings/kbulgrien/My Documents/My Music/Desktop.ini Desktop.ini
Documents and Settings/kbulgrien/My Documents/My Music/Sample Music.lnk *.lnk
Documents and Settings/kbulgrien/My Documents/My Pictures/Desktop.ini Desktop.ini
Documents and Settings/kbulgrien/My Documents/My Pictures/Sample Pictures.lnk *.lnk
Documents and Settings/kbulgrien/My Documents/desktop.ini desktop.ini
Documents and Settings/kbulgrien/NTUSER.DAT NTUSER.DAT
Documents and Settings/kbulgrien/SendTo/desktop.ini desktop.ini
Documents and Se...

Read more...

Revision history for this message
Kevin R. Bulgrien (kevin-bulgrien) wrote :

As I retracted the comment about broken overlays, it should probably be explicitly noted that the part about broken context menus in explorer is still correct. In example:

Context menus are present for "/c/Documents and Settings/kbulgrien/"

Context menus are not present for "/c/Documents and Settings/kbulgrien/Annoyances.org - Internet Explorer cannot display the webpage.url"

Revision history for this message
Kevin R. Bulgrien (kevin-bulgrien) wrote :

Oops:

Ok: "/c/Documents and Settings/kbulgrien/Favorites"

Not Ok: "/c/Documents and Settings/kbulgrien/Favorites/Annoyances.org - Internet Explorer cannot display the webpage.url"

Revision history for this message
John Welford (john-welford) wrote :

I am also seeing a similar error message when I try to add files located within my "My Documents".

This was working fine on XP but since an upgrade to Windows 7 (64 bit) it is complaining about the built in folders (e.g. "My Music"). I have no desire to version control anything within the "My Music" folder but as it cannot read from it the add GUI will not run.

Are there any possible workarounds for this bug?

Revision history for this message
Kevin R. Bulgrien (kevin-bulgrien) wrote :

This issue is not strictly limited to Add operations. For example, attempting to invoke Bazaar Explorer on C:\ results in the same failure.

Mon 2012-09-24 13:09:05 -0500

0.125 looking for plugins in C:/Documents and Settings/kbulgrien/Application Data/bazaar/2.0/plugins
0.125 looking for plugins in C:/Program Files/Bazaar/plugins
1.500 Deprecated function called
Called from:
  File "bzrlib\lazy_import.pyo", line 200, in _import
  File "C:/Program Files/Bazaar/plugins\explorer\lib\explorer.py", line 32, in <module>
  File "C:/Program Files/Bazaar/plugins\explorer\lib\desktop_env.py", line 158, in <module>
2.672 Deprecated method called
Called from:
  File "C:/Program Files/Bazaar/plugins\explorer\lib\explorer.py", line 166, in __init__
  File "C:/Program Files/Bazaar/plugins\explorer\lib\explorer.py", line 258, in _refresh_user_configuration
  File "C:/Program Files/Bazaar/plugins\explorer\lib\explorer.py", line 265, in get_default_editor
2.688 loading explorer extensions for clothes ['Bazaar support', 'Register on Launchpad']
2.704 explorer extensions provided by the colo plugin in C:/Program Files/Bazaar/plugins/colo/explorer
2.907 opening working tree 'C:/'
2.969 None

2.969 Traceback (most recent call last):
  File "C:/Program Files/Bazaar/plugins\explorer\lib\explorer.py", line 1518, in callable_with_cleanup
  File "C:/Program Files/Bazaar/plugins\explorer\lib\explorer.py", line 1685, in _open_location_task
  File "C:/Program Files/Bazaar/plugins\explorer\lib\location_viewer.py", line 163, in add_location
  File "C:/Program Files/Bazaar/plugins\explorer\lib\location.py", line 176, in view
  File "C:/Program Files/Bazaar/plugins\explorer\lib\view_workingtree.py", line 77, in __init__
  File "C:/Program Files/Bazaar/plugins\explorer\lib\view_workingtree.py", line 117, in _add_file_watcher_paths
  File "bzrlib\osutils.pyo", line 1850, in _walkdirs_utf8
  File "_walkdirs_win32.pyx", line 236, in bzrlib._walkdirs_win32.Win32ReadDir.read_dir (bzrlib\_walkdirs_win32.c:1877)
WindowsError: [Error 5] C://Documents and Settings/All Users/Application Data/Symantec/Symantec Endpoint Protection/12.1.1101.401.105/SRTSP/SrtETmp/*

2.969 No Apport available to Bazaar
[ 2492] 2012-09-24 13:09:09.680 INFO: checking status of VCSPath(u'C:\\')
10556.470 opening working tree 'C:/'

Martin Packman (gz)
no longer affects: bzr
Revision history for this message
LunarSwift (elad-rubin1000) wrote :

It is quite ridiculous that this crucial bug is still not resolved. After years of affecting many users, including me!

Is there anything done on this fatal bug?
I cannot add files to bzr because of the "access denied" bug.

Changed in bzr-explorer:
assignee: nobody → LunarSwift (elad-rubin1000)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.