Permission exception while running as root

I'm trying to import github issues into youtrack using the existing github2youtrack youtrack util. I'm receiving the following error message

youtrack.YouTrackException: Error for [/admin/customfield/bundle/Types]: 403: Forbidden: You have no permissions for bundle [ Types ]
  1. I've run as my personal user and as root
  2. I've cloned the latest rest api (https://github.com/JetBrains/youtrack-rest-python-library)

My youtrack user account has global administrative settings. Additionally, I've run it using credentials created for root.

Here is the exact command I used:

github2youtrack -T $token_file -u $youtrack_login -p $youtrack_password  $yt_url  $gh_login $gh_password $gh_repo


 

Separately, to test root permissions, I created and deleted a test project using the same root credentials hitting the Rest API directly via http calls as shown below. 

$ http --session=logged-in -a ${root_username}:${root_password} ${youtrack_instance}

$ http --session logged-in  PUT "https://${youtrack_instance}.myjetbrains.com/youtrack/rest/admin/project/T321?projectName=Test321&startingNumber=1&projectLeadLogin=sarah.lee@symbiont.io&description=You+know"

$ http --session logged-in  DELETE https://${youtrack_instance}.myjetbrains.com/youtrack/rest/admin/project/T321

 

Here is the full stack trace:

$ github2youtrack -T $token_file -u $youtrack_login -p $youtrack_password $yt_url $gh_login $gh_password $gh_repo
Traceback (most recent call last):
File "/Users/sarahjlee/.pyenv/versions/2.7.9/bin/github2youtrack", line 9, in <module>
load_entry_point('youtrack-scripts==0.1.17', 'console_scripts', 'github2youtrack')()
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrackutils/github2youtrack.py", line 131, in main
csv2youtrack.csv2youtrack(params)
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrackutils/csv2youtrack.py", line 245, in csv2youtrack
importer.import_csv()
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrackutils/csv2youtrack.py", line 275, in import_csv
self.do_import(projects, new_projects_owner_login)
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrack/youtrackImporter.py", line 25, in do_import
self._create_custom_fields(project_ids)
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrack/youtrackImporter.py", line 48, in _create_custom_fields
self._create_field(yt_field[NAME], yt_field[TYPE], yt_field.get(POLICY), yt_field[AUTO_ATTACHED])
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrack/youtrackImporter.py", line 42, in _create_field
create_custom_field(self._target, field_type, field_name, auto_attached, bundle_policy=attach_bundle_policy)
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrack/importHelper.py", line 54, in create_custom_field
bundle = connection.getBundle(field.type, field.defaultBundle)
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrack/connection.py", line 1141, in getBundle
urlquote(name.encode('utf-8'))))
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrack/connection.py", line 181, in _get
return self._reqXml('GET', url)
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrack/connection.py", line 160, in _reqXml
method, url, body, ignoreStatus, "application/xml")
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrack/connection.py", line 48, in wrapped
return f(self, *args, **kwargs)
File "/Users/sarahjlee/.pyenv/versions/2.7.9/lib/python2.7/site-packages/youtrack/connection.py", line 154, in _req
raise youtrack.YouTrackException(url, response, content)
youtrack.YouTrackException: Error for [/admin/customfield/bundle/Types]: 403: Forbidden: You have no permissions for bundle [ Types ] 
1 comment
Comment actions Permalink

The investigation has been moved to the support request

0

Please sign in to leave a comment.