WikiTransformationProject / wikitraccs-releases

Releases, issues and discussions for WikiTraccs from the Wiki Transformation Project
https://www.wikitransformationproject.com
8 stars 0 forks source link

WikiTraccs.Console.exe #38

Closed Troid2k closed 1 year ago

Troid2k commented 1 year ago

Hello,

I am creating a POC for WikiTraccs in our business and have successfully managed to get the GUI to migrate some test pages from Confluence to SharePoint. However when I try using the Console I keep hitting an ERROR with the ConfluenceMonitor.ConfluenceRetriever sating the following:

[015 11:02:14 ERR ] [https://confluence+++++++] Unhandled exception in subscription of AttachToRequestPipeline->scanRequestObservable | WikiTraccs.Console.ConfluenceMonitors.ConfluenceContentRetriever System.ArgumentNullException: Interactive authentication configuration missing (Parameter 'authConfig') at WikiTraccs.Shared.Stores.SPO.PnPContextFactory.CreatePnPContext(TransformationContext trafoCtx) in /home/runner/work/wikitraccs-code/wikitraccs-code/WikiTraccs.Shared/Stores/SPO/SpaceInventoryItem.cs:line 5

Is there something I am missing, as I can't see anything that suggests a Parameter 'authConfing' for the appsettings.json file.

heinrich-ulbricht commented 1 year ago

@Troid2k If the GUI can authenticate then this should work with Console as well. Let's have a look.

Do you try to configure interactive authentication (with user login and MFA support) or credential-based authentication for a service account? Depending on the method different settings need to be configured.

The Settings page has some samples of how this might look. Specifically this part:

image

Could you post this part of your configuration file (with the values replaced/anonymized) so I can double-check? This would also allow me to test this specific configuration.

And out of curiosity - what's your use case to using the Console version? What is it that is missing in the GUI?

Troid2k commented 1 year ago

Hello Heinrich-ulbricht, Thank you for looking in to this for me. I will first answer your curiosity question as it is a good question to ask. After successfully getting the GUI to work I thought I would try out the console to see if I could find a greater flexibility with it's use. One was to see if I could organise the pages into a hierarchy structure (I have since found your 'WikiPakk' reference) and two was to see if selecting multiple spaces would be easier (it is just as simple to check the box in grid view of the metadata site). I am finding out more as I test the application.

Now for the console, I have the configuration set for "interactive" shown below: image

It seems to work in a way that it opens chrome for me to login, once successful login chrome disappears but the log shows the ERR as mentioned.

In the GUI>Settings>Show Config as Text, I performed a compare to find difference. The only part I could find was the 'cookie' reference in the GUI settings.

WikiTraccs_GUI

Troid2k commented 1 year ago

Sorry, just realised I didn't give you the source settings (confluence). I have tried both "interactive" and "cookie". image

Troid2k commented 1 year ago

I should also mention that using the console only prompts me to login to confluence. It doesn't test login to SharePoint and confluence like the GUI does.

heinrich-ulbricht commented 1 year ago

@Troid2k Thanks for all your help, I can reproduce the behavior. This is a bug and will be fixed in the next release.

heinrich-ulbricht commented 1 year ago

@Troid2k Could you please check if the latest release resolves the issue?

heinrich-ulbricht commented 1 year ago

Closing this as it should be fixed. Please comment or open another issue if problems persist.