Migration from SqueakSource to SmalltalkHub encounters 403 Forbidden
Hello, I'm trying to migrate a project from SqueakSource to SmalltalkHub, using the script on the homepage of SqueakSource. However, after successfully pushing a few versions, it encounters an HTTP error: 403 Forbidden. The error can be reproduced, it is always raised when pushing a certain version. Maybe someone has an idea how to get around this issue. Request: a ZnRequest(PUT /mc/hkleinsorgen/InfoVis/main/InfoVis-Examples-hkl.10.mcz) Response: a ZnResponse(403 Forbidden text/plain ) The response also contains an entity: a ZnStringEntity(text/plain receiver of "asTimeStamp" is nil) SqueakSource project: http://www.squeaksource.com/InfoVis SmalltalkHub project: http://www.smalltalkhub.com/#!/~hkleinsorgen/InfoVis I'm using Pharo3.0 (Latest update: #30375). I hope this is the right place to report SmalltalkHub-related issues. -- View this message in context: http://forum.world.st/Migration-from-SqueakSource-to-SmalltalkHub-encounters... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
there should be a proper error message in the ZnResponse object, can you try and inspect it? The monticello UI doesn't properly show the warnings and errors returned by smalltalkhub. On 2013-09-07, at 09:28, Holger Kleinsorgen <h.kleinsorgen@gmail.com> wrote:
Hello,
I'm trying to migrate a project from SqueakSource to SmalltalkHub, using the script on the homepage of SqueakSource. However, after successfully pushing a few versions, it encounters an HTTP error: 403 Forbidden. The error can be reproduced, it is always raised when pushing a certain version.
Maybe someone has an idea how to get around this issue.
Request: a ZnRequest(PUT /mc/hkleinsorgen/InfoVis/main/InfoVis-Examples-hkl.10.mcz) Response: a ZnResponse(403 Forbidden text/plain ) The response also contains an entity: a ZnStringEntity(text/plain receiver of "asTimeStamp" is nil)
SqueakSource project: http://www.squeaksource.com/InfoVis SmalltalkHub project: http://www.smalltalkhub.com/#!/~hkleinsorgen/InfoVis
I'm using Pharo3.0 (Latest update: #30375).
I hope this is the right place to report SmalltalkHub-related issues.
-- View this message in context: http://forum.world.st/Migration-from-SqueakSource-to-SmalltalkHub-encounters... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Hello Camillo, the 403 response only contains a string entity: 'receiver of "asTimeStamp" is nil' Camillo Bruni-3 wrote
there should be a proper error message in the ZnResponse object, can you try and inspect it?
The monticello UI doesn't properly show the warnings and errors returned by smalltalkhub.
On 2013-09-07, at 09:28, Holger Kleinsorgen <
h.kleinsorgen@
> wrote:
Hello,
I'm trying to migrate a project from SqueakSource to SmalltalkHub, using the script on the homepage of SqueakSource. However, after successfully pushing a few versions, it encounters an HTTP error: 403 Forbidden. The error can be reproduced, it is always raised when pushing a certain version.
-- View this message in context: http://forum.world.st/Migration-from-SqueakSource-to-SmalltalkHub-encounters... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
On 07 Sep 2013, at 14:28, Holger Kleinsorgen <h.kleinsorgen@gmail.com> wrote:
Hello,
I'm trying to migrate a project from SqueakSource to SmalltalkHub, using the script on the homepage of SqueakSource. However, after successfully pushing a few versions, it encounters an HTTP error: 403 Forbidden. The error can be reproduced, it is always raised when pushing a certain version.
Maybe someone has an idea how to get around this issue.
Request: a ZnRequest(PUT /mc/hkleinsorgen/InfoVis/main/InfoVis-Examples-hkl.10.mcz) Response: a ZnResponse(403 Forbidden text/plain ) The response also contains an entity: a ZnStringEntity(text/plain receiver of "asTimeStamp" is nil)
SqueakSource project: http://www.squeaksource.com/InfoVis SmalltalkHub project: http://www.smalltalkhub.com/#!/~hkleinsorgen/InfoVis
I'm using Pharo3.0 (Latest update: #30375).
I hope this is the right place to report SmalltalkHub-related issues.
So you copied some packages from SQS to StHub already, and that one fails ? Are you sure that particular package is OK, I mean, not corrupt ? You can try to download it manually using a browser and then unzip it.
-- View this message in context: http://forum.world.st/Migration-from-SqueakSource-to-SmalltalkHub-encounters... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
The MCZ package can be downloaded & extracted. Loading the package in Pharo worked, too. The error response "asTimeStamp" looked like it could be related to the package information. So I stepped into the migration code and saw that version information of the loaded package had #date set to nil. MCVersionInfoWriter then writes an empty string into the package that is transferred to SmalltalkHub. SH doesn't seem to like that and returns 403 Forbidden (400 Bad Request would probably more suitable). I patched the migration code to add missing date information, and after that the migration succeded. Sven Van Caekenberghe-2 wrote
On 07 Sep 2013, at 14:28, Holger Kleinsorgen <
h.kleinsorgen@
> wrote:
Hello,
I'm trying to migrate a project from SqueakSource to SmalltalkHub, using the script on the homepage of SqueakSource. However, after successfully pushing a few versions, it encounters an HTTP error: 403 Forbidden. The error can be reproduced, it is always raised when pushing a certain version.
Maybe someone has an idea how to get around this issue.
So you copied some packages from SQS to StHub already, and that one fails ?
Are you sure that particular package is OK, I mean, not corrupt ?
You can try to download it manually using a browser and then unzip it.
-- View this message in context: http://forum.world.st/Migration-from-SqueakSource-to-SmalltalkHub-encounters... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
On 07 Sep 2013, at 17:21, Holger Kleinsorgen <h.kleinsorgen@gmail.com> wrote:
The MCZ package can be downloaded & extracted. Loading the package in Pharo worked, too.
The error response "asTimeStamp" looked like it could be related to the package information. So I stepped into the migration code and saw that version information of the loaded package had #date set to nil. MCVersionInfoWriter then writes an empty string into the package that is transferred to SmalltalkHub. SH doesn't seem to like that and returns 403 Forbidden (400 Bad Request would probably more suitable). I patched the migration code to add missing date information, and after that the migration succeeded.
The power of Smalltalk, you figured it out yourself and fixed it ;-) Nice. Should something be patched and where ?
Sven Van Caekenberghe-2 wrote
On 07 Sep 2013, at 14:28, Holger Kleinsorgen <
h.kleinsorgen@
> wrote:
Hello,
I'm trying to migrate a project from SqueakSource to SmalltalkHub, using the script on the homepage of SqueakSource. However, after successfully pushing a few versions, it encounters an HTTP error: 403 Forbidden. The error can be reproduced, it is always raised when pushing a certain version.
Maybe someone has an idea how to get around this issue.
So you copied some packages from SQS to StHub already, and that one fails ?
Are you sure that particular package is OK, I mean, not corrupt ?
You can try to download it manually using a browser and then unzip it.
-- View this message in context: http://forum.world.st/Migration-from-SqueakSource-to-SmalltalkHub-encounters... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (3)
-
Camillo Bruni -
Holger Kleinsorgen -
Sven Van Caekenberghe