Trac 1.4.1 - Milestone Dropdown missing

43 views
Skip to first unread message

Iqbal Ahmad

unread,
Feb 26, 2020, 6:15:10 AM2/26/20
to Trac Users
Hi All,

  I have installed Trac 1.4.1. Previously we were using Trac 1.0.  I am facing this problem of Milestone Dropdown missing in Create/Modify ticket form. 
  
  Please find the snap-shots of Ticet-Create-Form and Trac-ADMIN page and also trac.ini attached. 

  Any help would greatly appreciated. Thanks.

Package                      Version
---------------------------- --------
chardet                          2.2.1
CKIntegration                1.1.dev0
configobj                        4.7.2
decorator                       3.4.0
futures                           3.1.1
Genshi                           0.7.3
iniparse                          0.4
ipaddress                       1.0.16
Jinja2                             2.11.1
kitchen                           1.1.1
langtable                        0.0.31
MarkupSafe                   1.1.1
perf                                0.1
pip                                  20.0.2
pycurl                             7.19.0
pygobject                       3.22.0
pygpgme                        0.3
pyliblzma                        0.5.3
pyparsing                       1.5.6
python-augeas               0.5.0
python-linux-procfs        0.4.9
pyudev                           0.15
pyxattr                           0.5.1
PyYAML                        3.10
schedutils                      0.4
setuptools                     0.9.8
six                                1.9.0
slip                               0.4.0
slip.dbus                      0.4.0
Trac                             1.4.1
TracAccountManager   0.6.dev0
TracTags                      0.11
TracWysiwyg                0.12.0.7
urlgrabber                     3.10
yum-langpacks              0.4.2
yum-metadata-parser    1.1.4



Regards,
Iqbal
Create-Ticket.JPG
trac.ini
Trac-ADMIN.png

Iqbal Ahmad

unread,
Feb 26, 2020, 9:29:25 AM2/26/20
to Trac Users
Forgot to add Milestone list page.
Milestone-List.JPG

RjOllos

unread,
Feb 26, 2020, 2:03:35 PM2/26/20
to Trac Users
Please try with:

timingandestimationplugin.* = disabled

Also, please post your full plugin list from the /about page.

- Ryan 

Iqbal Ahmad

unread,
Feb 27, 2020, 7:05:08 AM2/27/20
to Trac Users
Hi Ryan,
 
   Thank you again for your kind reply.

   Sorry, it didn't work by disabling timingandestimationplugin.

   I have worked out what the issue is. I have created a fresh trac.ini by initenv and with this when I restarted the trac it gave dropdown box Milestone: in the Create-Ticket form. Then I started to look for the offending configuration parameter which causes Milestone: disapprearing from the Create/Modify form. Finally, after carefully adding each section to the new trac.ini I found that it was the following configuration which was causing the issue:

This was the earlier configuration which caused Milestone: dropdown disappearing from the Create/Modify form. 
[trac]
permission_policies = DefaultPermissionPolicy,LegacyAttachmentPolicy  

And when I added DefaultTicketPolicy to the above line then Milestone: dropdown started to appear again in the Create/Modify form
[trac]
permission_policies = DefaultTicketPolicy,DefaultPermissionPolicy,LegacyAttachmentPolicy  

Thanks againg for the help. 

Regards,
Iqbal

RjOllos

unread,
Feb 27, 2020, 2:08:08 PM2/27/20
to Trac Users


On Thursday, February 27, 2020 at 4:05:08 AM UTC-8, Iqbal Ahmad wrote:
Hi Ryan,
 
   Thank you again for your kind reply.

   Sorry, it didn't work by disabling timingandestimationplugin.

   I have worked out what the issue is. I have created a fresh trac.ini by initenv and with this when I restarted the trac it gave dropdown box Milestone: in the Create-Ticket form. Then I started to look for the offending configuration parameter which causes Milestone: disapprearing from the Create/Modify form. Finally, after carefully adding each section to the new trac.ini I found that it was the following configuration which was causing the issue:

This was the earlier configuration which caused Milestone: dropdown disappearing from the Create/Modify form. 
[trac]
permission_policies = DefaultPermissionPolicy,LegacyAttachmentPolicy  

And when I added DefaultTicketPolicy to the above line then Milestone: dropdown started to appear again in the Create/Modify form
[trac]
permission_policies = DefaultTicketPolicy,DefaultPermissionPolicy,LegacyAttachmentPolicy  

Thanks againg for the help. 

Regards,
Iqbal

Good find. That should *should* happen by the upgrade step, but I think there are some holes in the upgrade script logic. I will create a ticket for the issue.


- Ryan

RjOllos

unread,
Feb 27, 2020, 2:11:55 PM2/27/20
to Trac Users

RjOllos

unread,
Mar 1, 2020, 10:41:07 PM3/1/20
to Trac Users


On Wednesday, February 26, 2020 at 3:15:10 AM UTC-8, Iqbal Ahmad wrote:
Hi All,

  I have installed Trac 1.4.1. Previously we were using Trac 1.0.

By any chance did you, or could you, capture the console output of "trac-admin $env upgrade"?

The upgrade logic should at least echo a message indicating that permission_policies needs to be edited, but in your case the new permission policies should have been automatically added. There should also be a trail of .bak files in the conf directory for each backup step that changed trac.ini.

- Ryan

Iqbal Ahmad

unread,
Mar 2, 2020, 5:05:29 AM3/2/20
to Trac Users
Hi,

   What I meant in my first email was that I was *overwriting the trac.ini* with my old trac.ini file (from 1.0) after the upgrade. 

   The upgrade procedure would write all the four policies in trac.ini. But I was removing two of the policies "DefaultWikiPolicy and DefaultTicketPolicy".

    After the upgrade trac.ini would have:
    permission_policies = DefaultWikiPolicy,DefaultTicketPolicy,DefaultPermissionPolicy,LegacyAttachmentPolicy

   Sorry, if I was not clear in my earlier email. 

Regards,
Iqbal A
Reply all
Reply to author
Forward
0 new messages