Passes rubbish to service providers instead of client-provided data

Bug #1057143 reported by Sergey "Shnatsel" Davidoff
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Contractor
Invalid
Critical
Unassigned
0.2
New
Critical
Unassigned
0.3
Invalid
Critical
Unassigned

Bug Description

The attached .contract makes Contractor pass "0,000000" instead of filename as command-line parameter. Replacing "%F" with %u" makes it pass "14246096" or another seemingly random integer. Tested on pantheon-files and Midori.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :
Changed in contractor:
importance: Undecided → Critical
summary: - Mayhem in passing command-line arguments
+ Passes rubbish to service providers instead of client-provided data
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Testcase: make the attached script executable, add the dir with it to your $PATH, export the modified $PATH and run something that supports Contractor from this shell. The script will write out all the arguments it receives to "myargs" file in your current directory.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Or, instead of messing with $PATH, you can just set the full path to your bluetooth-sendto file into the .contract file.

Changed in contractor:
milestone: none → luna-beta2
Changed in contractor:
milestone: luna-beta2 → luna-beta3
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

I haven't tested this in 0.3, marking incomplete

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

I've killed this in with my very own line of code, marking invalid for 0.3

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.