$_REQUEST & $_POST empty

plugin requests post url.

However $_REQUEST & $_POST is empty in POST service.

I have set following parameters in stash-config.properties

plugin.com.atlassian.stash.plugin.hook.threadPoolCoreSize=2

plugin.com.atlassian.stash.plugin.hook.threadPoolMaxSize=3

plugin.com.atlassian.stash.plugin.hook.queueSize=1024

plugin.com.atlassian.stash.plugin.hook.connectionTimeout=10000

plugin.com.atlassian.stash.plugin.hook.changesetsLimit=500

plugin.com.atlassian.stash.plugin.hook.changesLimit=100

Please guide to collect repository and project names.

1 answer

I had the same problem too and it drove me nutts.

When the create the POST data they do not follow propper encoding of the data, but instead encode to JSON and send the string out as such. For PHP this is incorrect, but you can still recieve the data by redirecting the input stream and then decoding json as follows.

$rest_json = file_get_contents("php://input");

$stash_data = json_decode($rest_json);

Let me know if this work, this is what I had to do.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

134 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you