Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong arguments position in a log message #67

Merged
merged 1 commit into from
May 16, 2015

Conversation

guewen
Copy link
Member

@guewen guewen commented May 15, 2015

No description provided.

@sbidoul
Copy link
Member

sbidoul commented May 15, 2015

👍

So you managed to trigger that warning?

@guewen
Copy link
Member Author

guewen commented May 15, 2015

So you managed to trigger that warning?

Yes! :-)
I was investigating #68 and called the controller directly on a job such as /connector/runjob?job_uuid=e3ecfa2e-e425-481c-bc0d-3d1cc64f2c02

@guewen
Copy link
Member Author

guewen commented May 15, 2015

BTW would it be "dangerous" if we allowed to call the controller directly on pending jobs?

@sbidoul
Copy link
Member

sbidoul commented May 15, 2015

BTW would it be "dangerous" if we allowed to call the controller directly
on pending jobs?

Someone knowing uuids could then start any job. An external attacker would have to guess uuids to do any harm so maybe it's not dangerous indeed. In that case the worst he could do is a DoS by launching many jobs at once.

Are uuids guessable? If not we could maybe skip the enqueued state.

-sbi

@guewen
Copy link
Member Author

guewen commented May 15, 2015

I would say very difficult to predict, if possible, but they are not designed in the aim to be unpredictable. Anyway, I was thinking about that when I was debugging, just to check if jobs were runnable, but I see no real application otherwise. So maybe we can discuss about that again if we have a concrete use case for that.

@lmignon
Copy link
Contributor

lmignon commented May 16, 2015

👍

1 similar comment
@pedrobaeza
Copy link
Member

👍

pedrobaeza added a commit that referenced this pull request May 16, 2015
Wrong arguments position in a log message
@pedrobaeza pedrobaeza merged commit aa5cf84 into OCA:8.0 May 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants