Modify

Opened 4 years ago

Closed 5 weeks ago

Last modified 5 weeks ago

#8428 closed defect (worksforme)

no TICKETLOG_VIEW available

Reported by: henke.mike@… Owned by: richard
Priority: normal Component: TracTicketChangelogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (last modified by rjollos)

Hi,

I am using a bitnami trac stack. I added the TracTicketChangelogPlugin. Everything seemed fine. I had 31 files like templates\ticketlog_admin.html.

I went to add the TICKETLOG_VIEW permission to users but it isn't available.

Thanks

my command prompt of actions:

oft SQL Server\100\DTS\Binn\;E:\Program Files\Microsoft SQL Server\100\Tools\Bin
n\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\
PrivateAssemblies\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;E:\Program Files\T
ortoiseSVN\bin;E:\Program Files\BitNami Trac Stack\python;E:\Program Files\Graph
viz2.26.3\bin;E:\Program Files\Git\cmd;E:\Program Files\TortoiseGit\bin

E:\Program Files\BitNami Trac Stack>rem ##### SUBVERSION ENV #####

E:\Program Files\BitNami Trac Stack>rem ##### SQLITE ENV #####

E:\Program Files\BitNami Trac Stack>rem ##### APACHE ENV #####
E:\Program Files\BitNami Trac Stack>cd E:\Downloads\tracticketchangelogplugin-r9
782\tracticketchangelogplugin\0.12

E:\Downloads\tracticketchangelogplugin-r9782\tracticketchangelogplugin\0.12>pyth
on setup.py install
running install
running bdist_egg
running egg_info
creating TracTicketChangelogPlugin.egg-info
writing TracTicketChangelogPlugin.egg-info\PKG-INFO
writing top-level names to TracTicketChangelogPlugin.egg-info\top_level.txt
writing dependency_links to TracTicketChangelogPlugin.egg-info\dependency_links.
txt
writing entry points to TracTicketChangelogPlugin.egg-info\entry_points.txt
writing manifest file 'TracTicketChangelogPlugin.egg-info\SOURCES.txt'
reading manifest file 'TracTicketChangelogPlugin.egg-info\SOURCES.txt'
writing manifest file 'TracTicketChangelogPlugin.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\ticketlog
copying ticketlog\i18n_domain.py -> build\lib\ticketlog
copying ticketlog\model.py -> build\lib\ticketlog
copying ticketlog\upgrades.py -> build\lib\ticketlog
copying ticketlog\utils.py -> build\lib\ticketlog
copying ticketlog\web_ui.py -> build\lib\ticketlog
copying ticketlog\__init__.py -> build\lib\ticketlog
copying ticketlog\changelog.txt -> build\lib\ticketlog
copying ticketlog\readme.txt -> build\lib\ticketlog
copying ticketlog\version.txt -> build\lib\ticketlog
creating build\lib\ticketlog\templates
copying ticketlog\templates\ticketlog.html -> build\lib\ticketlog\templates
copying ticketlog\templates\ticketlog_admin.html -> build\lib\ticketlog\template
s
creating build\lib\ticketlog\htdocs
copying ticketlog\htdocs\indicator.gif -> build\lib\ticketlog\htdocs
copying ticketlog\htdocs\json2.js -> build\lib\ticketlog\htdocs
copying ticketlog\htdocs\ticketlog.css -> build\lib\ticketlog\htdocs
copying ticketlog\htdocs\ticketlog.ico -> build\lib\ticketlog\htdocs
copying ticketlog\htdocs\ticketlog.js -> build\lib\ticketlog\htdocs
copying ticketlog\htdocs\ticketlog_admin.css -> build\lib\ticketlog\htdocs
copying ticketlog\htdocs\ticketlog_admin.js -> build\lib\ticketlog\htdocs
creating build\lib\ticketlog\locale
copying ticketlog\locale\messages.pot -> build\lib\ticketlog\locale
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\ticketlog
copying build\lib\ticketlog\changelog.txt -> build\bdist.win32\egg\ticketlog
creating build\bdist.win32\egg\ticketlog\htdocs
copying build\lib\ticketlog\htdocs\indicator.gif -> build\bdist.win32\egg\ticket
log\htdocs
copying build\lib\ticketlog\htdocs\json2.js -> build\bdist.win32\egg\ticketlog\h
tdocs
copying build\lib\ticketlog\htdocs\ticketlog.css -> build\bdist.win32\egg\ticket
log\htdocs
copying build\lib\ticketlog\htdocs\ticketlog.ico -> build\bdist.win32\egg\ticket
log\htdocs
copying build\lib\ticketlog\htdocs\ticketlog.js -> build\bdist.win32\egg\ticketl
og\htdocs
copying build\lib\ticketlog\htdocs\ticketlog_admin.css -> build\bdist.win32\egg\
ticketlog\htdocs
copying build\lib\ticketlog\htdocs\ticketlog_admin.js -> build\bdist.win32\egg\t
icketlog\htdocs
copying build\lib\ticketlog\i18n_domain.py -> build\bdist.win32\egg\ticketlog
creating build\bdist.win32\egg\ticketlog\locale
copying build\lib\ticketlog\locale\messages.pot -> build\bdist.win32\egg\ticketl
og\locale
copying build\lib\ticketlog\model.py -> build\bdist.win32\egg\ticketlog
copying build\lib\ticketlog\readme.txt -> build\bdist.win32\egg\ticketlog
creating build\bdist.win32\egg\ticketlog\templates
copying build\lib\ticketlog\templates\ticketlog.html -> build\bdist.win32\egg\ti
cketlog\templates
copying build\lib\ticketlog\templates\ticketlog_admin.html -> build\bdist.win32\
egg\ticketlog\templates
copying build\lib\ticketlog\upgrades.py -> build\bdist.win32\egg\ticketlog
copying build\lib\ticketlog\utils.py -> build\bdist.win32\egg\ticketlog
copying build\lib\ticketlog\version.txt -> build\bdist.win32\egg\ticketlog
copying build\lib\ticketlog\web_ui.py -> build\bdist.win32\egg\ticketlog
copying build\lib\ticketlog\__init__.py -> build\bdist.win32\egg\ticketlog
byte-compiling build\bdist.win32\egg\ticketlog\i18n_domain.py to i18n_domain.pyc

byte-compiling build\bdist.win32\egg\ticketlog\model.py to model.pyc
byte-compiling build\bdist.win32\egg\ticketlog\upgrades.py to upgrades.pyc
byte-compiling build\bdist.win32\egg\ticketlog\utils.py to utils.pyc
byte-compiling build\bdist.win32\egg\ticketlog\web_ui.py to web_ui.pyc
byte-compiling build\bdist.win32\egg\ticketlog\__init__.py to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
copying TracTicketChangelogPlugin.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG
-INFO
copying TracTicketChangelogPlugin.egg-info\SOURCES.txt -> build\bdist.win32\egg\
EGG-INFO
copying TracTicketChangelogPlugin.egg-info\dependency_links.txt -> build\bdist.w
in32\egg\EGG-INFO
copying TracTicketChangelogPlugin.egg-info\entry_points.txt -> build\bdist.win32
\egg\EGG-INFO
copying TracTicketChangelogPlugin.egg-info\not-zip-safe -> build\bdist.win32\egg
\EGG-INFO
copying TracTicketChangelogPlugin.egg-info\top_level.txt -> build\bdist.win32\eg
g\EGG-INFO
creating dist
creating 'dist\TracTicketChangelogPlugin-0.1-py2.5.egg' and adding 'build\bdist.
win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing TracTicketChangelogPlugin-0.1-py2.5.egg
removing 'e:\program files\bitnami trac stack\python\lib\site-packages\TracTicke
tChangelogPlugin-0.1-py2.5.egg' (and everything under it)
creating e:\program files\bitnami trac stack\python\lib\site-packages\TracTicket
ChangelogPlugin-0.1-py2.5.egg
Extracting TracTicketChangelogPlugin-0.1-py2.5.egg to e:\program files\bitnami t
rac stack\python\lib\site-packages
TracTicketChangelogPlugin 0.1 is already the active version in easy-install.pth

Installed e:\program files\bitnami trac stack\python\lib\site-packages\tracticke
tchangelogplugin-0.1-py2.5.egg
Processing dependencies for TracTicketChangelogPlugin==0.1
Finished processing dependencies for TracTicketChangelogPlugin==0.1

E:\Downloads\tracticketchangelogplugin-r9782\tracticketchangelogplugin\0.12>cd E
:\Program Files\BitNami Trac Stack

E:\Program Files\BitNami Trac Stack>update_mod_python_libs.bat
0 File(s) copied
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\EGG-INFO\depend
ency_links.txt
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\EGG-INFO\entry_
points.txt
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\EGG-INFO\not-zi
p-safe
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\EGG-INFO\PKG-IN
FO
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\EGG-INFO\SOURCE
S.txt
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\EGG-INFO\top_le
vel.txt
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\chang
elog.txt
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\i18n_
domain.py
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\i18n_
domain.pyc
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\model
.py
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\model
.pyc
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\readm
e.txt
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\upgra
des.py
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\upgra
des.pyc
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\utils
.py
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\utils
.pyc
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\versi
on.txt
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\web_u
i.py
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\web_u
i.pyc
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\__ini
t__.py
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\__ini
t__.pyc
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\htdoc
s\indicator.gif
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\htdoc
s\json2.js
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\htdoc
s\ticketlog.css
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\htdoc
s\ticketlog.ico
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\htdoc
s\ticketlog.js
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\htdoc
s\ticketlog_admin.css
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\htdoc
s\ticketlog_admin.js
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\local
e\messages.pot
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\templ
ates\ticketlog.html
python\Lib\site-packages\TracTicketChangelogPlugin-0.1-py2.5.egg\ticketlog\templ
ates\ticketlog_admin.html
31 File(s) copied

E:\PROGRA~1\BITNAM~1>trac-admin E:\Documents and Settings\riccopy\BitNami Trac S
tack projects\RICOMAHA\  permission list
Error: Command not found

E:\PROGRA~1\BITNAM~1>cd E:\Program Files\BitNami Trac Stack\trac\Scripts

E:\Program Files\BitNami Trac Stack\trac\Scripts>trac-admin E:\Documents and Set
tings\riccopy\BitNami Trac Stack projects\RICOMAHA\  permission list
Error: Command not found

E:\Program Files\BitNami Trac Stack\trac\Scripts>trac-admin "E:\Documents and Se
ttings\riccopy\BitNami Trac Stack projects\RICOMAHA\"  permission list
Welcome to trac-admin 0.12.1
Interactive Trac administration console.
Copyright (c) 2003-2010 Edgewall Software

Type:  '?' or 'help' for help on commands.

Trac [E:\Documents and Settings\riccopy\BitNami Trac Stack projects\RICOMAHA"  p
ermission list]> permission list
Error: Command not found
Trac [E:\Documents and Settings\riccopy\BitNami Trac Stack projects\RICOMAHA"  p
ermission list]> exit


E:\Program Files\BitNami Trac Stack\trac\Scripts>trac-admin "E:\Documents and Se
ttings\riccopy\BitNami Trac Stack projects\RICOMAHA"  permission list

User              Action
-----------------------------------------
admin             TRAC_ADMIN
anonymous         BROWSER_VIEW
anonymous         CHANGESET_VIEW
anonymous         FILE_VIEW
anonymous         LOG_VIEW
anonymous         MILESTONE_VIEW
anonymous         REPORT_SQL_VIEW
anonymous         REPORT_VIEW
anonymous         ROADMAP_VIEW
anonymous         SEARCH_VIEW
anonymous         TICKET_VIEW
anonymous         TIMELINE_VIEW
anonymous         WIKI_VIEW
authenticated     REPORT_ADMIN
authenticated     STATS_VIEW
authenticated     TICKET_BATCH_MODIFY
authenticated     TICKET_CREATE_SIMPLE
authenticated     TICKET_EDIT_CC
authenticated     TICKET_EDIT_DESCRIPTION
authenticated     TICKET_MODIFY
authenticated     WIKI_CREATE
authenticated     WIKI_MODIFY
authenticated     XML_RPC
developers        TICKET_CREATE
discussion_users  DISCUSSION_ADMIN
discussion_users  DISCUSSION_APPEND
discussion_users  DISCUSSION_ATTACH
discussion_users  DISCUSSION_MODERATE
discussion_users  DISCUSSION_VIEW
jason             admin
mike              VERSIONCONTROL_ADMIN
mike              admin


Available actions:
 ACCTMGR_ADMIN, ACCTMGR_ADMIN, ACCTMGR_CONFIG_ADMIN, ACCTMGR_CONFIG_ADMIN,
 ACCTMGR_USER_ADMIN, ACCTMGR_USER_ADMIN, BROWSER_VIEW, CHANGESET_VIEW,
 CONFIG_VIEW, EMAIL_VIEW, FILE_VIEW, LOG_VIEW, MILESTONE_ADMIN,
 MILESTONE_CREATE, MILESTONE_DELETE, MILESTONE_MODIFY, MILESTONE_VIEW,
 PERMISSION_ADMIN, PERMISSION_GRANT, PERMISSION_REVOKE, REPORT_ADMIN,
 REPORT_CREATE, REPORT_DELETE, REPORT_MODIFY, REPORT_SQL_VIEW, REPORT_VIEW,
 ROADMAP_ADMIN, ROADMAP_VIEW, SEARCH_VIEW, TICKET_ADMIN, TICKET_APPEND,
 TICKET_BATCH_MODIFY, TICKET_CHGPROP, TICKET_CREATE, TICKET_CREATE_SIMPLE,
 TICKET_EDIT_CC, TICKET_EDIT_COMMENT, TICKET_EDIT_DESCRIPTION,
 TICKET_MODIFY, TICKET_VIEW, TIMELINE_VIEW, TRAC_ADMIN,
 VERSIONCONTROL_ADMIN, WIKI_ADMIN, WIKI_CREATE, WIKI_DELETE, WIKI_MODIFY,
 WIKI_RENAME, WIKI_VIEW, XML_RPC


E:\Program Files\BitNami Trac Stack\trac\Scripts>trac-admin "E:\Documents and Se
ttings\riccopy\BitNami Trac Stack projects\RICOMAHA"  add mike TICKETLOG_VIEW
Error: Command not found

No documentation found for 'add'

E:\Program Files\BitNami Trac Stack\trac\Scripts>trac-admin "E:\Documents and Se
ttings\riccopy\BitNami Trac Stack projects\RICOMAHA" permission add mike TICKETL
OG_VIEW
TracError: TICKETLOG_VIEW is not a valid action.

E:\Program Files\BitNami Trac Stack\trac\Scripts>

Attachments (0)

Change History (17)

comment:1 Changed 4 years ago by anonymous

I enabled the plugin and restarted trac also

comment:2 Changed 4 years ago by rjollos

  • Description modified (diff)

comment:3 Changed 4 years ago by anonymous

hello? anyone? anyone :-)

comment:4 follow-up: Changed 4 years ago by anonymous

It seems I was missing simplejson. The permission is now showing up and I added it to authenticated group but I am still not seeing the Changelog section in the ticket

comment:5 in reply to: ↑ 4 Changed 4 years ago by richard

Replying to anonymous:

It seems I was missing simplejson. The permission is now showing up and I added it to authenticated group but I am still not seeing the Changelog section in the ticket

First, make sure trac browser can work.

Next, the commit logs should conform to log_pattern, the default is \s*#%s\s+.*. See Wiki Example for more information.

comment:6 follow-up: Changed 4 years ago by anonymous

Hi. Thanks for the email. I have simplejson working. Another plugin is using it also. But the trac ticket changelog plugin isn't working in the tickets. We are using commits messages as "#120 - my message". We are using a bitnami trac stack on windows with git.

comment:7 Changed 4 years ago by anonymous

The timeline tab is showing commits:

Changeset [ba327e9] by Mike Henke <xxx@xxx.xxx>
    branch1 branch2 #73 - fixing xxxx

So close :-) This will be sweet once my issue is resolved.

Last edited 5 months ago by rjollos (previous) (diff)

comment:8 Changed 4 years ago by anonymous

We are using the bitnami trac stack on windows with git.

comment:9 follow-up: Changed 4 years ago by anonymous

I can see the ajax call but the response is

{"status": "1", "data": {"headers": ["Changeset", "Author", "Time", "ChangeLog"], "header_width": ["5em", "6em", "8em", ""], "ticket_id": "73", "revisions": []}}

How can I test what it is comparing against ajax call is reading?

Last edited 5 months ago by rjollos (previous) (diff)

comment:10 Changed 4 years ago by anonymous

basically, I am looking for the log or where ticketlog is reading for the log.

thanks,

comment:11 in reply to: ↑ 9 Changed 4 years ago by richard

Replying to anonymous:

I can see the ajax call but the response is

 {"status": "1", "data": {"headers": ["Changeset", "Author", "Time", "ChangeLog"], "header_width": ["5em", "6em", "8em", ""], "ticket_id": "73", "revisions": []}}

How can I test what it is comparing against ajax call is reading?

The problem is the revisions value is empty, that means the plugin can not gather changelogs of the ticket. Maybe you should dig it manually as the SQL do to figure out what is wrong.

Last edited 5 months ago by rjollos (previous) (diff)

comment:12 follow-up: Changed 2 months ago by shorif2000

I have this same problem, however this plugin worked fine on CentOS 5, trac 0.12. I upgraded to CentOS 6 and moved the repo over to trac 1.01. the permission is greyed out and not selectable. No errors show about missing simplejson.

Last edited 5 weeks ago by rjollos (previous) (diff)

comment:13 Changed 2 months ago by anonymous

If the Python version changed when moving platforms you need to reinstall all of your plugins.

comment:14 Changed 5 weeks ago by rjollos

  • Description modified (diff)

comment:15 in reply to: ↑ 12 Changed 5 weeks ago by rjollos

Replying to shorif2000:

I have this same problem, however this plugin worked fine on CentOS 5, trac 0.12. I upgraded to CentOS 6 and moved the repo over to trac 1.01. the permission is greyed out and not selectable. No errors show about missing simplejson.

First step in debugging is to enable TracLogging at DEBUG level and make sure the plugin is loading. Please ask on the trac:MailingList if you continue to experience trouble.

comment:16 in reply to: ↑ 6 Changed 5 weeks ago by rjollos

Replying to anonymous:

We are using a bitnami trac stack on windows with git.

I have to assume the plugin won't work if you have [git] cached_repository = false (trac:wiki:TracIni#git-section).

With the changes proposed in #11821, we might be able to make the plugin work when the repository is not cached.

Last edited 5 weeks ago by rjollos (previous) (diff)

comment:17 Changed 5 weeks ago by rjollos

  • Resolution set to worksforme
  • Status changed from new to closed

All of the issues in this ticket appear to be installation issues. For installation issues, please ask on the trac:MailingList.

Last edited 5 weeks ago by rjollos (previous) (diff)

Add Comment

Modify Ticket

Action
as closed The owner will remain richard.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.