Closed a-tze closed 7 years ago
A patch like this removes that filter.
diff --git a/Application/Controller/XMLRPC/Handler.php b/Application/Controller/XMLRPC/Handler.php
index 0427b8a..f9ba614 100644
--- a/Application/Controller/XMLRPC/Handler.php
+++ b/Application/Controller/XMLRPC/Handler.php
@@ -595,7 +595,7 @@
- @throws Exception
-/
public function setTicketDone($ticket_id, $log_message = null) {
- if(!$ticket # Ticket::findAll(['State'])->from('view_serviceable_tickets', 'tbl_ticket')->where(['id'> $ticket_id])->first()) {
+ if(!$ticket # Ticket::findAll(['State'])->where(['id'> $ticket_id])->first()) {
throw new EntryNotFoundException(__FUNCTION__.': ticket not found or parent in wrong state',501);
}
The checks in this function still validate that:
Is there any situation, where a call to setTicketDone should fail, although all of the conditions above are met?
Is there any situation, where a call to setTicketDone should fail, although all of the conditions above are met?
All situations I can think of are covered by the remaining checks.
Fixed in [changeset:bb655d7].
Issue migrated from trac ticket # 136
component: rpc | priority: major | resolution: fixed
2016-09-04 21:54:16: @a-tze created the issue
Currently, running encoding jobs cannot complete when the associated encoding profile is disabled in the project's settings.
This is because those tickets are filtered out of view_servicable_tickets. The condition has either to be removed, or setTicketDone must use another data source. Maybe another view with less strict filtering? So that there is one view for tickets that can be given out (plus worker filters) and another one for tickets that may be completed or failed by workers?