Skip to content

Conversation

@nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Jul 27, 2016

Todo

  • Time- and Timezonepicker for Request time
  • Fix L10N support

Fix #617
Fix #576

allowClear: false,
multiple: false,
placeholder: t('workflowengine', 'Select tag…'),
query: _.debounce(function(query) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice 👍

@MorrisJobke
Copy link
Member

MorrisJobke commented Jul 27, 2016

  • BUG save without specify an ID results in an uncatched exception:
Der Server hat einen internen Fehler und konnte Ihre Anfrage nicht vervollständigen.

Bitte wenden Sie sich an den Serveradministrator, wenn dieser Fehler mehrfach auftritt, geben Sie bitte die, unten stehenden, technischen Details in Ihrem Bericht mit an.

Weitere Details können im Serverprotokoll gefunden werden.


Technische Details

Entfernte Adresse: ::1
Anfragekennung: 77VouOaOp+LEl/ZmTEoQ
Typ: InvalidArgumentException
Code: 0
Nachricht: Tag id must be integer
Datei: /Users/morrisjobke/Projects/nextcloud/server/lib/private/SystemTag/SystemTagManager.php
Zeile: 99

Ablauf

#0 /Users/morrisjobke/Projects/nextcloud/server/apps/workflowengine/lib/Check/FileSystemTags.php(91): OC\SystemTag\SystemTagManager->getTagsByIds('')
#1 /Users/morrisjobke/Projects/nextcloud/server/apps/workflowengine/lib/Manager.php(281): OCA\WorkflowEngine\Check\FileSystemTags->validateCheck('!is', '')
#2 /Users/morrisjobke/Projects/nextcloud/server/apps/workflowengine/lib/Manager.php(203): OCA\WorkflowEngine\Manager->addCheck('OCA\\WorkflowEng...', '!is', '')
#3 /Users/morrisjobke/Projects/nextcloud/server/apps/workflowengine/lib/Controller/FlowOperations.php(86): OCA\WorkflowEngine\Manager->updateOperation(1, 'asdasd', Array, 'deny')
#4 [internal function]: OCA\WorkflowEngine\Controller\FlowOperations->updateOperation(1, 'asdasd', Array, 'deny')
#5 /Users/morrisjobke/Projects/nextcloud/server/lib/private/AppFramework/Http/Dispatcher.php(160): call_user_func_array(Array, Array)
#6 /Users/morrisjobke/Projects/nextcloud/server/lib/private/AppFramework/Http/Dispatcher.php(90): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\WorkflowEngine\Controller\FlowOperations), 'updateOperation') 
#7 /Users/morrisjobke/Projects/nextcloud/server/lib/private/AppFramework/App.php(111): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\WorkflowEngine\Controller\FlowOperations), 'updateOperation') 
#8 /Users/morrisjobke/Projects/nextcloud/server/lib/private/AppFramework/Routing/RouteActionHandler.php(47): OC\AppFramework\App::main('FlowOperationsC...', 'updateOperation', Object(OC\AppFramework\DependencyInjection\DIContainer), Array) 
#9 [internal function]: OC\AppFramework\Routing\RouteActionHandler->__invoke(Array) 
#10 /Users/morrisjobke/Projects/nextcloud/server/lib/private/Route/Router.php(293): call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array) 
#11 /Users/morrisjobke/Projects/nextcloud/server/lib/base.php(950): OC\Route\Router->match('/apps/workflowe...') 
#12 /Users/morrisjobke/Projects/nextcloud/server/index.php(40): OC::handleRequest() 
#13 {main}

return;
}

var placeholder = '["10:00 Europe\\/Berlin","16:00 Europe\\/Berlin"]'; // FIXME need a time picker JS plugin
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MorrisJobke can you help with this maybe? I really suck at such stuff.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@nickvergessen
Copy link
Member Author

Pushed again, fixed the exception for missing tag input

@MorrisJobke
Copy link
Member

I will push my local stuff tomorrow.

.htaccess Outdated
</IfModule>
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####

ErrorDocument 403 /server/core/templates/403.php
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class RequestTime implements ICheck {

const REGEX_TIME = '([0-1][0-9]|2[0-3]):([0-5][0-9])';
const REGEX_TIMEZONE = '([a-zA-Z]+(?:\\\\\\/[a-zA-Z\-\_]+)+)';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈 Just let DateTime parse the time stamp and then handle the exceptions that are thrown. This one here is so error prone.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normal slashes aren't escaped in JSON BTW ;)

@nickvergessen nickvergessen added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 1, 2016
@nickvergessen
Copy link
Member Author

Ready to review @MorrisJobke @schiessle

class RequestTime extends Controller {

/**
* @NoCSRFRequired
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reason?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@MorrisJobke
Copy link
Member

Works 👍

@nickvergessen
Copy link
Member Author

Counting the resolved comments from Lukas as +1

@nickvergessen nickvergessen merged commit 8ad79eb into master Aug 3, 2016
@nickvergessen nickvergessen deleted the add-more-checks branch August 3, 2016 12:38
GitHubUser4234 pushed a commit to GitHubUser4234/server that referenced this pull request Aug 30, 2016
@MorrisJobke MorrisJobke removed their assignment Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants