Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Form-based authentication with gitlab 13.6.1 not working because of missing closing tag for "me(After upgrade from gitlab 13.3.8-ce to 3.6.1-ce the authentication fails because of a sax parser exception caused by a missing closing tag for "meta" )
Form-based authentication with gitlab 13.6.1 not working because of missing closing tag for "me [message #1835154] Wed, 25 November 2020 20:57 Go to next message
Oliver Welter is currently offline Oliver WelterFriend
Messages: 3
Registered: November 2020
Junior Member
No Message Body
  • Attachment: .log
    (Size: 37.01KB, Downloaded 26 times)
Re: Form-based authentication with gitlab 13.6.1 not working because of missing closing tag for &quo [message #1835157 is a reply to message #1835154] Thu, 26 November 2020 03:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32111
Registered: July 2009
Senior Member
I assume you found out to use that via this:

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Accessing_Setups_that_Require_Authentication

But I can't debug such a thing for you because I don't have a password on your server.

Some things you could try yourself (in addition to debugging it). The -Doomph.setup.ecf.trace=true will show more details about the network traffic.

Delete everything in <home>/.eclipse/org.eclipse.oomph.setup/cache and then you can see what files are downloaded from the server and see what is wrong with the XML being processed. It sound like at some point an XML file is expected and likely a HTML has been served instead.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Form-based authentication with gitlab 13.6.1 not working because of missing closing tag for & [message #1835601 is a reply to message #1835157] Tue, 08 December 2020 09:42 Go to previous messageGo to next message
Oliver Welter is currently offline Oliver WelterFriend
Messages: 3
Registered: November 2020
Junior Member
I looked into the issue and the underlying problem is that the used Xerces SAX parser assumes valid XML but gitlab uses HTML5 which is less restrictive compared to XML. While XML demands a closing tag HTML5 does not for the "meta" tag. I didn't find any option to relax the XML validation in Xerces.
For increase of robustness it would be preferable to use TagSoup instead of Xerces for parsing HTML websites.

Re: Form-based authentication with gitlab 13.6.1 not working because of missing closing tag for & [message #1835646 is a reply to message #1835601] Wed, 09 December 2020 12:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32111
Registered: July 2009
Senior Member
I'm confused by the above statement because org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.FormHandler.readForm(URI) reads the bytes and uses pattern matching to find the form details (assuming the bytes are UTF-8 encoded). It does not parse the site content at all. Of course the setup resources themselves must be well-formed XML, so I'm not sure when/how HTML5 enters the picture...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Form-based authentication with gitlab 13.6.1 not working because of missing closing tag for & [message #1835676 is a reply to message #1835646] Thu, 10 December 2020 08:22 Go to previous messageGo to next message
Oliver Welter is currently offline Oliver WelterFriend
Messages: 3
Registered: November 2020
Junior Member
Interesting. In the attached log file of the initial post there is the following stacktrace starting at line 11:

org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.xml.sax.SAXParseExceptionpublicId: https://git.nia-health.de/nia/nia-backend/-/raw/master/eclipse/NiaBackend.setup?oomph_form=b%27users/sign_in%27#/; systemId: https://git.nia-health.de/nia/nia-backend/-/raw/master/eclipse/NiaBackend.setup?oomph_form=b%27users/sign_in%27#/; lineNumber: 69; columnNumber: 3; The element type "meta" must be terminated by the matching end-tag "</meta>".

It looks like the SAX parser is involved when adding a URL to an Eclipse project via the "Add User Projects" Dialog.
Re: Form-based authentication with gitlab 13.6.1 not working because of missing closing tag for & [message #1835682 is a reply to message #1835676] Thu, 10 December 2020 10:11 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32111
Registered: July 2009
Senior Member
If the form authentication fails, the setup URL will still be accessed and that will, without a proper cookie, likely redirect to some HTML failure page that will not be well-formed XML.

You could try using the VM option -Doomph.setup.ecf.trace=true to get more detailed information about the flow of information over the network. It can also be useful to clear the ~/.eclipse/org.eclipse.oomph.setup/cache folder and then to see which resource have been downloaded and what their contents are when you the try the installer or IDE again.

To really figure out what's going wrong, you'd need to actually debug org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl. It's easy to set up a development environment for that purpose...


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:ResourceCreationTask and line delimiter CRLF
Next Topic:Installation Error
Goto Forum:
  


Current Time: Tue Dec 07 22:39:28 GMT 2021

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

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

Back to the top