Edgewall Software

Ticket #7263 (new defect)

Opened 5 months ago

Last modified 3 months ago

/trunk/contrib/trac-pre-commit-hook not stringent enough in supported_cmds

Reported by: sbranden@… Owned by: cboos
Priority: normal Milestone:
Component: version control Version: 0.10.4
Severity: normal Keywords: contrib
Cc: dtreth@…

Description

There is a hole in the trac-pre-commit-hook which lets commands through and then they are not processed properly by trac-post-commit-hook.

For example: "arefs #1234" or "ref #1234" or "refa #1234" will all successfully get through the trac-pre-commit-hook. When the trac-post-commit-hook runs it will now be able to identify these commands and link the svn commit to the trac ticket.

Attachments

Change History

Changed 3 months ago by dtreth@…

  • keywords contrib added
  • component changed from ticket system to version control

you could add a "\b" to the beginning of the regexp and a "\b" to the end of the action match section. I am not sure of the full ramifications of this, because as I read it the regexp was designed to be flexible. Assuming the people who are using the repo know that this is what they need to do, we can probably assume it is a typo, and we can probably figure out what is meant by their statement. In which case, the post commit can be written in such a way as to accept "arefs", "ref" and "refa", as well as the others that could possibly slip through the regexp as written, as what is obviously implied by the statement. Also, this is not a ticket system bug, rather I believe it is a version control problem.

Changed 3 months ago by dtreth@…

  • cc dtreth@… added

I'm adding myself to the cc as I am interested in using these hook scripts in the future.

Add/Change #7263 (/trunk/contrib/trac-pre-commit-hook not stringent enough in supported_cmds)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.