voideex / RbxPHP

5 stars 5 forks source link

UploadAsset.php returns file moved error #6

Closed mrparkerlol closed 8 years ago

mrparkerlol commented 8 years ago

_EDIT: After even more debugging this issue seems to arise because ROBLOSECURITY cookie not in the POST response._

_EDIT: I have done even more debugging and the POST response from the server (when uploading the asset) looks like this:_

HTTP/1.1 302 Found
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
Location: /RobloxDefaultErrorPage.aspx?id=b1ea72b0-d085-4366-b945-85b8cb0f394f&mode=&code=
Set-Cookie: rbx-ip=; domain=roblox.com; path=/; HttpOnly
Set-Cookie: RBXSource=rbx_acquisition_time=1/23/2016 11:20:51 PM&rbx_acquisition_referrer=&rbx_medium=Direct&rbx_source=&rbx_campaign=&rbx_adgroup=&rbx_keyword=&rbx_matchtype=&rbx_send_info=0; domain=roblox.com; expires=Tue, 23-Feb-2016 05:20:51 GMT; path=/
P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
Date: Sun, 24 Jan 2016 05:20:51 GMT

_and the login POST response looks like this:_

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Set-Cookie: rbx-ip=; domain=roblox.com; path=/; HttpOnly
Set-Cookie: RBXSource=rbx_acquisition_time=1/23/2016 11:27:32 PM&rbx_acquisition_referrer=&rbx_medium=Direct&rbx_source=&rbx_campaign=&rbx_adgroup=&rbx_keyword=&rbx_matchtype=&rbx_send_info=0; domain=roblox.com; expires=Tue, 23-Feb-2016 05:27:32 GMT; path=/
Set-Cookie: rbx-ip=; domain=roblox.com; path=/; HttpOnly
Set-Cookie: RBXSource=rbx_acquisition_time=1/23/2016 11:27:32 PM&rbx_acquisition_referrer=&rbx_medium=Direct&rbx_source=&rbx_campaign=&rbx_adgroup=&rbx_keyword=&rbx_matchtype=&rbx_send_info=0; domain=roblox.com; expires=Tue, 23-Feb-2016 05:27:32 GMT; path=/
Set-Cookie: GuestData=UserID=-1395099778; domain=.roblox.com; expires=Thu, 11-Jun-2043 04:27:32 GMT; path=/
P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
Date: Sun, 24 Jan 2016 05:27:32 GMT
Content-Length: 44893

_Hopefully I have provided enough information to help you fix it_ _Also, I didn't modify anything from the responses, they were received like this, with no roblosecurity, which is odd._


After some debugging in the last issue I mentioned about the script returning "assetid/xml invalid" turned out to be because the script was returning an error saying something about the page being moved.

I have added the needed changes and now get this whenever I try uploading the model:

  <html><head><title>Object moved</title></head><body>
  <h2>Object moved to <a href="/RobloxDefaultErrorPage.aspx?id=7fe32577-c7cf-413f-99bb-62d736b5c742&amp;mode=&amp;code=">here</a>.</h2>
  </body></html>
  <html><head><title>Object moved</title></head><body>
  <h2>Object moved to <a href="/RobloxDefaultErrorPage.aspx?id=7fe32577-c7cf-413f-99bb-62d736b5c742&amp;mode=&amp;code=">here</a>.</h2>
  </body></html>

This possibly means that they changed something with the upload process. Roblox errors usually mean accessing a blocked resource, or providing invalid arguments.

I have tried intercepting packets from ROBLOX Studio to see if anything got changed, but it seems the only thing was the url change.

I don't have any idea on why this happens but I think it is an issue that the script needs to address.