Hi there!

I'm running Trac 1.2 on Apache 2.4 + fcgid + Debian 8.7 and I'm facing 
problems on the Admin/Plugin page when I try to apply my changes. After 
clicking the "Apply" button I get this error

Error: Bad Request 

Missing or invalid form token. Do you have cookies enabled?


FireBug shows a 400 Bad Request error on the POST request, but I'm unable 
to understand why.


Trac log is as follow:


Trac[main] DEBUG: Dispatching <RequestWithSession "POST 
'/admin/general/plugin'">
Trac[main] DEBUG: Chosen handler is <Component 
trac.admin.web_ui.AdminModule>
Trac[main] WARNING: [my ip] HTTPBadRequest: 400 Bad Request (Missing or 
invalid form token. Do you have cookies enabled?)


Nothing is shown on Apache error log.


Here are the details of the POST request



*Headers:*


Accept
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate, br
Accept-Language en-US,en;q=0.5
Authorization Digest username="my_user", realm="my.site.com", 
nonce="mHBFfitKBQA=05b9d79aa4ef4bc6ad7e798f45a5d8247efad35d", 
uri="/trac/admin/general/plugin", algorithm=MD5, 
response="4df02479dfebf37be256bbdb0b341470", qop=auth, nc=00000037, 
cnonce="bc0c8547b79d15b9"
Connection keep-alive
Cookie trac_form_token=c207745c95337e1cd89a3bba
Host dev.befreenergy.com
Referer https://my.site.com/trac/admin/general/plugin
Upgrade-Insecure-Requests 1
User-Agent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 
Firefox/51.0



*Body:*


__FORM_TOKEN=c207745c95337e1cd89a3bba&component=trac.admin.api.AdminCommandManager&enable=trac.admin
.api.AdminCommandManager&component=trac.admin.console.TracAdminHelpMacro&enable=trac.admin.console.TracAdminHelpMacro
&component=trac.admin.web_ui.AdminModule&enable=trac.admin.web_ui.AdminModule&component=trac.admin.web_ui
.BasicsAdminPanel&enable=trac.admin.web_ui.BasicsAdminPanel&component=trac.admin.web_ui.LoggingAdminPanel
&enable=trac.admin.web_ui.LoggingAdminPanel&component=trac.admin.web_ui.PermissionAdminPanel&enable=trac
.admin.web_ui.PermissionAdminPanel&component=trac.admin.web_ui.PluginAdminPanel&enable=trac.admin.web_ui
.PluginAdminPanel&component=trac.attachment.AttachmentAdmin&enable=trac.attachment.AttachmentAdmin&

...........


&component=tracopt.ticket.commit_updater.CommitTicketUpdater&component=tracopt
.ticket.deleter.TicketDeleter&component=tracopt.versioncontrol.git.git_fs.CsetPropertyRenderer&enable
=tracopt.versioncontrol.git.git_fs.CsetPropertyRenderer&component=tracopt.versioncontrol.git.git_fs.GitConnector
&enable=tracopt.versioncontrol.git.git_fs.GitConnector&component=tracopt.versioncontrol.git.git_fs.GitwebProjectsRepositoryProvider
&enable=tracopt.versioncontrol.git.git_fs.GitwebProjectsRepositoryProvider&component=tracopt.versioncontrol
.svn.svn_fs.SubversionConnector&component=tracopt.versioncontrol.svn.svn_prop.SubversionMergePropertyDiffRenderer
&component=tracopt.versioncontrol.svn.svn_prop.SubversionMergePropertyRenderer&component=tracopt.versioncontrol
.svn.svn_prop.SubversionPropertyRenderer&plugin=0&update=Apply+changes


Please note that this seems to be a problem related to CGI deployment since 
*using 
the stand-alone mode (tracd) everything works OK!*


I also tried to deploy Trac in WSGI mode but again I have an error when I 
try to use the plugin administration interface ....a different one thought 
....I get content length exceeded, inspecting the request with FireBug I 
saw that Content-Length was set to -1 ....which is quite odd.


Any help would be really appreciated :-)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to