No default repository defined in change_history in the part of ticket

46 views
Skip to first unread message

Harold Alcalde Solarte

unread,
Jun 3, 2019, 6:13:32 AM6/3/19
to Trac Users
Hi everyone,

Actually I work with TRAC 1.2.2 and use this plugins:
TicketImport-0.9.0-py2.7.egg 
TracTypedTicketWorkflow-0.2-py2.7.egg
TracXMLRPC-1.1.7dev-py2.7.egg
TracDynamicFields-2.3.0dev-py2.7.egg
TracWorkflowAdmin-0.12.0.4-py2.7.egg
TracSubTicketsPlugin-0.5.4dev-py2.7.egg 
TracWysiwyg-0.12.0.7-py2.7.egg


I made a migration from TRAC 0.11 to TRAC 1.2.2 I also made a Dump from the svn repository and changed from Sqlite to PostgreSQL. Everything works correctly (Browse source, timeline, etc.) but in the change history of the tickets does not refer to the revision and when I position on the rev number it says: "No default repository defined"

This is part of my trac.ini

[browser]
color_scale = enabled
downloadable_paths = /trunk,/branches/*,/tags/*
hide_properties = svk:merge
intermediate_color = 
intermediate_point = 
newest_color = (255, 136, 136)
oldest_color = (136, 136, 255)
oneliner_properties = trac:summary
render_unsafe_content = disabled
wiki_properties = trac:description

[changeset]
max_diff_bytes = 10000000
max_diff_files = 0
wiki_format_messages = enabled

[components]
dynfields.rules.* = enabled
talm_importer.importer.* = enabled
trac.admin.web_ui.* = enabled
trac.versioncontrol.web_ui.browser.* = enabled
tracopt.ticket.commit_updater.committicketreferencemacro = enabled
tracopt.ticket.commit_updater.committicketupdater = enabled
tracopt.ticket.deleter.ticketdeleter = enabled
tracopt.versioncontrol.svn.* = enabled
tracrpc.* = enabled
tracsubtickets.api.* = enabled
tracsubtickets.web_ui.* = enabled
tracworkflowadmin.* = enabled
tracwysiwyg.* = enabled
typedworkflow.* = enabled


[svn]
authz_file = 
authz_module_name = 
branches = trunk,branches/*
eol_style = native
tags = tags/*


[trac]
auth_cookie_lifetime = 0
auth_cookie_path = 
auto_preview_timeout = 2.0
auto_reload = disabled
backup_dir = db
base_url = 
check_auth_ip = disabled
database = postgres://postgres:postgres@localhost:5432/dbPrueba
debug_sql = disabled
default_charset = utf-8
default_date_format = iso8601
default_dateinfo_format = relative
default_handler = WikiModule
default_language = en_GB
default_timezone = 
genshi_cache_size = 128
htdocs_location = 
ignore_auth_case = disabled
jquery_location = 
jquery_ui_location = 
jquery_ui_theme_location = 
mysqldump_path = mysqldump
never_obfuscate_mailto = disabled
permission_policies = ReadonlyWikiPolicy,DefaultPermissionPolicy,LegacyAttachmentPolicy
permission_store = DefaultPermissionStore
pg_dump_path = pg_dump
resizable_textareas = enabled
secure_cookies = disabled
show_email_addresses = disabled
show_full_names = disabled
show_ip_addresses = disabled
timeout = 20
use_base_url_for_redirect = disabled
use_chunked_encoding = disabled
use_xsendfile = disabled
wiki_toolbars = enabled
xsendfile_header = X-Sendfile


Any suggestions what's going on?


notlinkrev.png

RjOllos

unread,
Jun 3, 2019, 2:51:26 PM6/3/19
to Trac Users
With multi-repository added in 0.12, the meaning of a changeset is ambiguous without including the repository name in the TracLink or defining a default repository.

Assuming you have a named repository, you can add an alias in the [repositories] section of trac.ini with the line:

.alias = <name>

Or, if you have defined your repositories through the web administration page, just leaving the name blank when adding an alias.



Screen Shot 2019-06-03 at 11.33.54.jpg


- Ryan


Harold Alcalde Solarte

unread,
Jun 4, 2019, 3:42:42 AM6/4/19
to Trac Users
I´ve tried to do what you say but it doesn´t work. 
In my trac.ini I don´t have any part of [repositories]. I have seen that the commits after the migration are created well and in the change history part the links to the revisions are well created.

I attach a pic of my manage repository and change histyory of one of my tickets.

In the trac log you see the following warning:
Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect
mangerepos.PNG
changehistory.PNG

RjOllos

unread,
Jun 4, 2019, 2:51:31 PM6/4/19
to Trac Users


On Tuesday, June 4, 2019 at 12:42:42 AM UTC-7, Harold Alcalde Solarte wrote:
I´ve tried to do what you say but it doesn´t work. 
In my trac.ini I don´t have any part of [repositories]. I have seen that the commits after the migration are created well and in the change history part the links to the revisions are well created.

I attach a pic of my manage repository and change histyory of one of my tickets.

The second part of my message is applicable to your scenario in that case:

"Or, if you have defined your repositories through the web administration page, just leaving the name blank when adding an alias."

Screen Shot 2019-06-03 at 11.33.54.jpg


Just select the repository, leave the "Name" field blank, and select Add.

 
In the trac log you see the following warning:
Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect

The warning is unrelated to the issue you've described, but you can fix the warning by setting the [trac] base_url option:

- Ryan 

Harold Alcalde Solarte

unread,
Jun 6, 2019, 1:42:11 AM6/6/19
to Trac Users
okay, thank you very much.
Reply all
Reply to author
Forward
0 new messages