<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ticket search results</title><link>https://forge-allura.apache.org/p/allura/tickets/</link><description>You searched for labels:"import"</description><language>en</language><lastBuildDate>Mon, 17 May 2021 15:07:01 -0000</lastBuildDate><item><title>Github import error on deleted users</title><link>https://forge-allura.apache.org/p/allura/tickets/8212/</link><description>```
Traceback (most recent call last):
  File "/var/local/allura/ForgeImporters/forgeimporters/base.py", line 131, in import_tool
    mount_point=mount_point, mount_label=mount_label, **kw)
  File "/var/local/allura/ForgeImporters/forgeimporters/github/tracker.py", line 137, in import_tool
    self.process_events(extractor, ticket, issue)
  File "/var/local/allura/ForgeImporters/forgeimporters/github/tracker.py", line 205, in process_events
    self.get_user_link(event['actor']['login']))
TypeError: 'NoneType' object has no attribute '__getitem__'
```

This occurs when a deleted-on-github user is involved in a thread.  https://github.com/ampache/ampache/issues/1669 in this case</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Mon, 24 Sep 2018 19:36:24 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/8212/</guid></item><item><title>Update tool imports to support exported attachments.</title><link>https://forge-allura.apache.org/p/allura/tickets/8067/</link><description>With ticket [#8051], we added support for downloading file attachments when exporting tool data.  Our tool import functionality should support that format.  One thing to consider is how we handle importing a zip file that contains data for multiple tools. 
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Heith Seewald</dc:creator><pubDate>Fri, 11 Mar 2016 20:48:38 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/8067/</guid></item><item><title>Remove Google Code importers</title><link>https://forge-allura.apache.org/p/allura/tickets/8054/</link><description>Google Code is in archive mode, so importers as they are now don't work - and some tests fail too.  Supporting the archive format would be nice, but at least for now we should just remove the importers.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Wed, 27 Jan 2016 18:43:59 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/8054/</guid></item><item><title>Bug: removed upsert() method needed by TracWikiImporter</title><link>https://forge-allura.apache.org/p/allura/tickets/8014/</link><description>We removed upsert() in [f33baf] but it is actually used.  We should bring it back with a `user` param, or update TracWikiImporter to not need it.

    Traceback (most recent call last):
      File "/var/local/allura/ForgeImporters/forgeimporters/base.py", line 131, in import_tool
        mount_point=mount_point, mount_label=mount_label, **kw)
      File "/var/local/env-allura/lib/python2.7/site-packages/TracWikiImporter-0.4.2-py2.7.egg/tracwikiimporter/importer.py", line 94, in import_tool
        options.token = self.get_token(user)
      File "/var/local/env-allura/lib/python2.7/site-packages/TracWikiImporter-0.4.2-py2.7.egg/tracwikiimporter/importer.py", line 116, in get_token
        consumer_token = OAuthConsumerToken.upsert(self.classname)
    AttributeError: type object 'OAuthConsumerToken' has no attribute 'upsert'</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Mon, 16 Nov 2015 16:09:46 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/8014/</guid></item><item><title>Wiki not imported properly from Google Code</title><link>https://forge-allura.apache.org/p/allura/tickets/7986/</link><description>https://sourceforge.net/p/forge/site-support/11216/

----

Details from Support Ticket:

----

Hi,
I have imported following project from google code.
https://sourceforge.net/p/openwonderland/
The code imported successfully but the wiki page didn't look same as on the google code.
https://sourceforge.net/p/openwonderland/wiki/OpenWonderland
https://code.google.com/p/openwonderland/wiki/OpenWonderland
Is it not imported properly?


</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Barrett</dc:creator><pubDate>Mon, 21 Sep 2015 14:06:09 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7986/</guid></item><item><title>Phone validation interfering with project import</title><link>https://forge-allura.apache.org/p/allura/tickets/7979/</link><description>~~~~
15:18:01,597 ERROR [forgeimporters.base] error registering project: foobar
Traceback (most recent call last):
  File "/var/local/allura/ForgeImporters/forgeimporters/base.py", line 292, in process
    project_name=kw['project_name'])
  File "/var/local/allura/Allura/allura/model/neighborhood.py", line 129, in register_project
    self, shortname, project_name, user or getattr(c, 'user', None), user_project, private_project, apps)
  File "/var/local/forge-classic/ForgeSF/forgesf/sf_providers.py", line 426, in register_project
    self.validate_project(neighborhood, shortname, project_name, user, user_project, private_project)
  File "/var/local/allura/Allura/allura/lib/plugin.py", line 816, in validate_project
    raise forge_exc.ProjectPhoneVerificationError()
ProjectPhoneVerificationError
~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Fri, 04 Sep 2015 18:28:15 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7979/</guid></item><item><title>Wiki importer for allura's own export format</title><link>https://forge-allura.apache.org/p/allura/tickets/7937/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Sun, 06 Mar 2016 10:16:20 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7937/</guid></item><item><title>Blog importer for allura's own export format</title><link>https://forge-allura.apache.org/p/allura/tickets/7936/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Tue, 21 Jul 2015 18:54:33 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7936/</guid></item><item><title>Forum importer for allura's own export format</title><link>https://forge-allura.apache.org/p/allura/tickets/7935/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Mon, 17 May 2021 15:07:01 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7935/</guid></item><item><title>Error on google code import with paginated comments</title><link>https://forge-allura.apache.org/p/allura/tickets/7864/</link><description>Importing https://code.google.com/p/usbloader-gui/issues/detail?id=1769 fails with the following error.

I suspect it is due to the comment pagination which we probably don't handle at all.

~~~~
Traceback (most recent call last):
  File "/var/local/allura/ForgeImporters/forgeimporters/base.py", line 131, in import_tool
    mount_point=mount_point, mount_label=mount_label, **kw)
  File "/var/local/allura/ForgeImporters/forgeimporters/google/tracker.py", line 123, in import_tool
    self.process_fields(ticket, issue)
  File "/var/local/allura/ForgeImporters/forgeimporters/google/tracker.py", line 164, in process_fields
    ticket.mod_date = dateutil.parser.parse(issue.get_issue_mod_date())
  File "/var/local/allura/ForgeImporters/forgeimporters/google/__init__.py", line 309, in get_issue_mod_date
    last_update = Comment(comments[-1], self.project_name)
  File "/var/local/allura/ForgeImporters/forgeimporters/google/__init__.py", line 391, in __init__
    tag.find('span', 'author').find(True, 'userlink'))
AttributeError: 'NoneType' object has no attribute 'find'
~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Thu, 20 Aug 2015 22:06:09 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7864/</guid></item><item><title>Check for wiki presence before importing it</title><link>https://forge-allura.apache.org/p/allura/tickets/7808/</link><description>The wiki import (both individual and full-project, I suspect) will throw an error if the wiki is not available.  We should catch and handle that situation (e.g. silently skip on full-project import, and error to user on individual import form maybe) so that we don't have unnecessary error emails.

~~~~
Importing the Wiki data from the Groove GitHub project to the groovejam SourceForge project failed with the error: 'git clone --bare -v https://github.com/radhouenerouached/Groove.wiki /tmp/tmpU1fq4V' returned exit status 128: fatal: remote error: access denied or repository not exported: /b/nw/bf/80/1f/107924511/28155028.wiki.git


Traceback (most recent call last):
  File "/var/local/allura/ForgeImporters/forgeimporters/base.py", line 131, in import_tool
    mount_point=mount_point, mount_label=mount_label, **kw)
  File "/var/local/allura/ForgeImporters/forgeimporters/github/wiki.py", line 162, in import_tool
    self.import_pages(wiki_url, history=with_history)
  File "/var/local/allura/ForgeImporters/forgeimporters/github/wiki.py", line 259, in import_pages
    wiki = git.Repo.clone_from(wiki_url, to_path=wiki_path, bare=True)
  File "/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1_20140304-py2.7.egg/git/repo/base.py", line 742, in clone_from
    return cls._clone(Git(os.getcwd()), url, to_path, GitCmdObjectDB, progress, **kwargs)
  File "/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1_20140304-py2.7.egg/git/repo/base.py", line 694, in _clone
    finalize_process(proc)
  File "/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1_20140304-py2.7.egg/git/util.py", line 129, in finalize_process
    proc.wait()
  File "/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1_20140304-py2.7.egg/git/cmd.py", line 101, in wait
    raise GitCommandError(self.args, status, self.proc.stderr.read())
GitCommandError: 'git clone --bare -v https://github.com/radhouenerouached/Groove.wiki /tmp/tmpU1fq4V' returned exit status 128: fatal: remote error: access denied or repository not exported: /b/nw/bf/80/1f/107924511/28155028.wiki.git
~~~~

https://github.com/radhouenerouached/Groove</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Thu, 20 Aug 2015 22:06:52 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7808/</guid></item><item><title>Use OAuth token for github project validation</title><link>https://forge-allura.apache.org/p/allura/tickets/7804/</link><description>Use OAuth token for project validation or else github will return 403 (probably only if request limit is reached) and user will see "This project is unavailable for import" message

</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Igor Bondarenko</dc:creator><pubDate>Thu, 20 Aug 2015 22:07:00 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7804/</guid></item><item><title>Issues import from GitHub is broken</title><link>https://forge-allura.apache.org/p/allura/tickets/7801/</link><description>~~~~~
5:08:33,519 ERROR [taskd:forgeimporters.base.import_tool:5475ecee04687d5bd4a43343:allura.lib.helpers] Failed after 0 retries on url with a timeout of 5.0: https://api.github.com/repos/atom/atom/issues?state=opened&amp;access_token=&lt;...&gt;: HTTP Error 422: Unprocessable Entity
Traceback (most recent call last):
  File "/home/ibondarenko/ibondarenko-1194/forge/Allura/allura/lib/helpers.py", line 1025, in urlopen
    return urllib2.urlopen(url, timeout=timeout)
  File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py", line 121, in __call__
    return self.run_and_log(self._inner, None, *args, **kwargs)
  File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py", line 126, in run_and_log
    return func(*args, **kwargs)
  File "/usr/lib64/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib64/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python2.7/urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 422: Unprocessable Entity
~~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Igor Bondarenko</dc:creator><pubDate>Thu, 20 Aug 2015 22:07:00 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7801/</guid></item><item><title>Ticket attachments aren't imported</title><link>https://forge-allura.apache.org/p/allura/tickets/7580/</link><description>During an Allura ticket import, attachments that go with a comment are imported, but attachments that go with the ticket itself are not.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Thu, 20 Aug 2015 22:07:00 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7580/</guid></item><item><title>Text lost in mediawiki importer</title><link>https://forge-allura.apache.org/p/allura/tickets/7447/</link><description>When converting https://sourceforge.net/p/allura/pastebin/5391e4847929e541de0160d9 the "Custom WMS map sources" section is lost.  This can be tested in an automated test for example changing the `history` method in `TestMediawikiLoader` to use the content for one of the 'text' fields.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Sat, 11 Apr 2015 19:38:15 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7447/</guid></item><item><title>Google code importer should handle Apache-Extras/EclipseLabs projects</title><link>https://forge-allura.apache.org/p/allura/tickets/7381/</link><description>E.g. projects at https://code.google.com/a/eclipselabs.org/hosting/ and https://code.google.com/a/apache-extras.org/hosting/ are slightly different than regular projects.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Thu, 20 Aug 2015 22:07:00 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7381/</guid></item><item><title>Trac ticket error: astimezone() cannot be applied to a naive datetime</title><link>https://forge-allura.apache.org/p/allura/tickets/7177/</link><description>Errored on a CSV file like this from a Trac 1.0.1 instance:

    __group__,ticket,summary,component,status,type,priority,owner,modified,_time,_reporter
    prep,48,Create Stuff,Application,new,build,major,nobody,2014-02-09T05:16:55-05:00,16:14:18-05:00,John Doe

Trace:

~~~~
Traceback (most recent call last):
  File "/var/local/allura/ForgeImporters/forgeimporters/base.py", line 131, in import_tool
    mount_point=mount_point, mount_label=mount_label, **kw)
  File "/var/local/allura/ForgeImporters/forgeimporters/trac/tickets.py", line 119, in import_tool
    json.dumps(export(trac_url), cls=DateJSONEncoder),
  File "/var/local/allura/Allura/allura/scripts/trac_export.py", line 304, in export
    verbose=verbose, do_attachments=do_attachments)
  File "/var/local/allura/Allura/allura/scripts/trac_export.py", line 99, in __init__
    self.ticket_queue = self.next_ticket_ids()
  File "/var/local/allura/Allura/allura/scripts/trac_export.py", line 263, in next_ticket_ids
    r[1]), 'date_updated': self.trac2z_date(r[2])}
  File "/var/local/allura/Allura/allura/scripts/trac_export.py", line 127, in trac2z_date
    d = d.astimezone(pytz.UTC)
ValueError: astimezone() cannot be applied to a naive datetime
~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Thu, 20 Aug 2015 22:07:00 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7177/</guid></item><item><title>Trac-Tickets Importer Rejects URL Containing IP Address [ss6716]</title><link>https://forge-allura.apache.org/p/allura/tickets/7160/</link><description>[forge:site-support:#6716]

&gt;I receive the following message..

&gt;'That is not a valid URL'

&gt;...when attempting to import tickets from a Trac project URL whose domain is an IP address.
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Tsai</dc:creator><pubDate>Thu, 20 Aug 2015 22:07:00 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7160/</guid></item><item><title>Handle importing from older Trac formats</title><link>https://forge-allura.apache.org/p/allura/tickets/7150/</link><description>E.g. trac 0.10.3 on http://www.spamboard.net/wiki/TitleIndex requires:

    -    CONTENT_DIV_ATTRS = {'class': 'wikipage searchable'}
    +    CONTENT_DIV_ATTRS = {'class': 'wikipage'}

(And with that, may require stripping the `&lt;div id='searchable'&gt;` that is within the wikipage.

Also `def page_list` needs to use the href instead of the text of each link.  It'll need to strip off the base URL portion.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Mon, 02 Feb 2015 02:43:49 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7150/</guid></item><item><title>Validate Trac URLs before importing</title><link>https://forge-allura.apache.org/p/allura/tickets/7124/</link><description>https://sourceforge.net/nf/admin/task_manager/view/52ebe3f21be1ce2af7b78b31

Validate Trac URLs so we don't get 404s or spurious NoneType errors during import.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cory Johns</dc:creator><pubDate>Thu, 20 Aug 2015 22:07:00 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7124/</guid></item><item><title>Validate Github projects before importing</title><link>https://forge-allura.apache.org/p/allura/tickets/7118/</link><description>Like [#6895] for Google Code, our github importer should check to see if a user/repo pair is valid before importing (and erroring on a 404 later)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Thu, 20 Aug 2015 22:07:10 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7118/</guid></item><item><title>Default username for GitHub import</title><link>https://forge-allura.apache.org/p/allura/tickets/7102/</link><description>Since we use oauth to connect to GitHub, we should default the username field on the GitHub import pages, since most people will be importing their own projects.  We should still allow changing it, however, since that won't always be the case.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cory Johns</dc:creator><pubDate>Thu, 26 Feb 2015 06:09:49 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7102/</guid></item><item><title>Trac wiki import errors on child pages with "," in name</title><link>https://forge-allura.apache.org/p/allura/tickets/7035/</link><description>E.g importing from http://sourceforge.net/apps/trac/shareaza/wiki/  See http://sourceforge.net/apps/trac/shareaza/wiki/TitleIndex for a list of its pages.  Error is:

~~~~
Traceback (most recent call last):
  File "/home/dbrondsema/dbrondsema-1019/forge/Allura/allura/model/monq_model.py", line 258, in __call__
    self.result = func(*self.args, **self.kwargs)
  File "/home/dbrondsema/dbrondsema-1019/forge/ForgeImporters/forgeimporters/base.py", line 122, in import_tool
    mount_point=mount_point, mount_label=mount_label, **kw)
  File "/var/local/env-allura/lib/python2.7/site-packages/tracwikiimporter/importer.py", line 118, in import_tool
    load_data(f.name, WikiFromTrac.parser(), options)
  File "/home/dbrondsema/dbrondsema-1019/forge/ForgeWiki/forgewiki/scripts/wiki_from_trac/loaders.py", line 54, in load_data
    import_wiki(cli, options.project, options.wiki, options, doc_txt)
  File "/home/dbrondsema/dbrondsema-1019/forge/ForgeWiki/forgewiki/scripts/wiki_from_trac/loaders.py", line 70, in import_wiki
    r = cli.call(url + '/' + title, **page)
  File "/home/dbrondsema/dbrondsema-1019/forge/Allura/allura/lib/import_api.py", line 63, in call
    raise e
HTTPError: HTTP Error 403: Forbidden
~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Thu, 20 Aug 2015 22:07:10 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/7035/</guid></item><item><title>Attached images on comments not importing on GitHub Issues Importer</title><link>https://forge-allura.apache.org/p/allura/tickets/6993/</link><description>Confirmed in [#6922] that the filename is (now) being matched properly and handed off to `Attachment` / `p.add_multiple_attachments()` properly, but it's not showing up on the imported ticket comment.

E.g. https://sf-cjohns-1025.sb.sf.net/p/allura/huboard/48/#0df6 vs https://github.com/rauhryan/huboard/issues/48#issuecomment-5397695</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cory Johns</dc:creator><pubDate>Thu, 20 Aug 2015 22:07:10 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/6993/</guid></item><item><title>Make doc.url.importers URL more specific</title><link>https://forge-allura.apache.org/p/allura/tickets/6974/</link><description>The `doc.url.importers` URL is used for all importers.  It would be more useful it if it was specific to the importer source.  For example `doc.url.importers.google = ...` and `doc.url.importers.trac = ...`</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brondsema</dc:creator><pubDate>Thu, 20 Aug 2015 22:07:10 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/6974/</guid></item></channel></rss>