Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » E [0001] : Unauthorized & E [0001] : java.lang.NumberFormatException(Try to access a rmap at a secure http url)
E [0001] : Unauthorized & E [0001] : java.lang.NumberFormatException [message #509495] Fri, 22 January 2010 15:45 Go to next message
Matthias Kappeller is currently offline Matthias KappellerFriend
Messages: 54
Registered: July 2009
Member
Hi,

in my CQuery i would like to access a rmap from http...

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="http://my.location/repo/trunk/tests/app1.rmap">
    <cq:rootRequest name="app1.a" componentType="osgi.bundle"/>
</cq:componentQuery>


this will result in the error:
E [0001] : Unauthorized
So i've thought i will prefix a (of course valid) login user.

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="http://test:test@my.location/repo/trunk/tests/app1.rmap">
    <cq:rootRequest name="app1.a" componentType="osgi.bundle"/>
</cq:componentQuery>


but then i've received the error:
E [0001] : java.lang.NumberFormatException: For input string: "test@my.location": For input string: "test@my.location"

How can i access a rmap from a secure http adress?

Thank U a lot for a possible solution Smile

Regards
Matthias

[Updated on: Fri, 22 January 2010 16:31]

Report message to a moderator

Re: E [0001] : Unauthorized & E [0001] : java.lang.NumberFormatException [message #509506 is a reply to message #509495] Fri, 22 January 2010 16:09 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Matthias,
This seems to be caused by code in the ECF HttpClientRetrieveFileTransfer class that assumes that a port number should
follow the ':'. Hence, it makes an attempt to parse the password as an integer. I'm CC'in the ecf-dev mailing list. I
guess Buckminster should do something with the URL before passing it to ECF and perhaps they can clarify what the
correct approach should be.

What you report but I don't see when running tests on this is the conversion into a 'mailto:' URL. I wonder if that's my
newsreader that plays a trick on me. Do you see that in your original mail too?

Regards,
Thomas Hallgren


On 01/22/2010 04:45 PM, Matthias Kappeller wrote:
> Hi,
>
> in my CQuery i would like to access a rmap from http...
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="http://my.location/repo/trunk/tests/app1.rmap">
> <cq:rootRequest name="app1.a" componentType="osgi.bundle"/>
> </cq:componentQuery>
>
>
> this will result in the error:
> E [0001] : Unauthorized
> So i've thought i will prefix a (of course valid) login user.
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="http://test:test@my.location/repo/trunk/tests/app1.rmap">
> <cq:rootRequest name="app1.a" componentType="osgi.bundle"/>
> </cq:componentQuery>
>
>
> but then i've received the error:
> E [0001] : java.lang.NumberFormatException: For input string:
> "mailto:test@my.location": For input string: "mailto:test@my.location"
>
> How can i access a rmap from a secure http adress?
>
> Thank U a lot for a possible solution :)
>
> Regards
> Matthias
Re: E [0001] : Unauthorized & E [0001] : java.lang.NumberFormatException [message #509512 is a reply to message #509506] Fri, 22 January 2010 16:36 Go to previous messageGo to next message
Matthias Kappeller is currently offline Matthias KappellerFriend
Messages: 54
Registered: July 2009
Member
Hi Thomas,

also the 'forum engine' gives me a magic to my url Smile

my
@
will become a '.'

let me try to enter the url once again with some spaces in between:

http:// test : test @ my.location/repo/trunk/tests/app1.rmap

and the error message does not contain the 'mailto:'. It is 'test @ my.location' (without the spaces beside the @).

Regards,

Matthias

[Updated on: Mon, 25 January 2010 09:15]

Report message to a moderator

Re: E [0001] : Unauthorized & E [0001] : java.lang.NumberFormatException [message #509846 is a reply to message #509495] Mon, 25 January 2010 15:30 Go to previous message
Matthias Kappeller is currently offline Matthias KappellerFriend
Messages: 54
Registered: July 2009
Member
This problem has occurred in multiple cases.

So I 've create a BugReport on this, https://bugs.eclipse.org/bugs/show_bug.cgi?id=300689


I've solved this temporarily while I've adjusted org.eclipse.buckminster.core.query.model.ComponentQuery to 'setConnectContext' always to a predefined 'ConnectContextFactory.createUsernamePasswordConnectContext' .

Regards,

Matthias
Previous Topic:How to move the product into a update site category
Next Topic:Cannot install headless Buckminster 3.5 or features from update site
Goto Forum:
  


Current Time: Thu Apr 25 04:47:46 GMT 2024

Powered by FUDForum. Page generated in 0.02731 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top