Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InternetSettings - Running S/R from project menu does not open dialog when an error occurs #1367

Open
roopa0222 opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@roopa0222
Copy link

Describe the bug
As part of testing #1254 , when the InternetSetting dropdown is changed to 'Disable all internet use' on the ParatextRegistration form, after restart, S/R on a project throws an exception in the log. It does not bring up the S/R dialog to display an error.

To Reproduce
Steps to reproduce the behavior:

  1. Temporarily remove %localappdata%/Paratext95/InternetSettings.xml and %localappdata%/Paratext95/RegistrationInfo.xml
  2. Open Paratext 10 Studio and make sure the Paratext Registration Information dialog opens automatically
  3. Enter valid registration info. Dropdown the "Internet Settings" section and change the first dropdown to "Disable all internet use". Save and restart.
  4. Project > Open Scripture Editor > zzz6
  5. zzz6 project > Project > Send/Receive this project
  6. Notice it does not bring up the Send/Receive dialog.
  7. An exception is logged in the main.log file
Sending and receiving Paratext projects failed! System.InvalidOperationException: Bug in Paratext caused attempted access to Internet. Request has been blocked.
   at Paratext.Data.InternetAccess.VerifySafety()
   at Paratext.Data.Repository.InternetSharedRepositorySource..ctor(ParatextUser authenticationUser, String forcedUri)
   at Paranext.DataProvider.Projects.SendReceive.ParatextProjectSendReceiveService.GetSharedRepositorySource() in D:\a\paratext-10-studio\paratext-10-studio\temp-build\paranext-core\c-sharp\Projects\SendReceive\ParatextProjectSendReceiveService.cs:line 516
   at Paranext.DataProvider.Projects.SendReceive.ParatextProjectSendReceiveService.SendReceiveProjects(List`1 projectIds) in D:\a\paratext-10-studio\paratext-10-studio\temp-build\paranext-core\c-sharp\Projects\SendReceive\ParatextProjectSendReceiveService.cs:line 174
[/dotnet data provider]
[2024-12-03 11:57:04.784] [debug] JSON-RPC Request error (-32000): Sending and receiving Paratext projects failed! Bug in Paratext caused attempted access to Internet. Request has been blocked. [at C:\Users\rupa_\AppData\Local\Temp\2peiQ959xcSHqxg7cIJYLDmtm4F\resources\app.asar\dist\extension-host\extension-host.js:8:90092]
[2024-12-03 11:57:04.786] [error] 
[extension host error]
An unexpected error occurred while executing "command:paratextBibleSendReceive.sendReceiveProjectsByWebViewId" JSON-RPC method: Error: Sending and receiving Paratext projects failed! Bug in Paratext caused attempted access to Internet. Request has been blocked.
    at T (C:\Users\rupa_\AppData\Local\Temp\2peiQ959xcSHqxg7cIJYLDmtm4F\resources\app.asar\dist\extension-host\extension-host.js:8:301690)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  [cause]: 'JSON-RPC Request error -32000'

Expected behavior
Open S/R dialog and make sure it shows an error and a button to configure Paratext registration and internet settings

Image

main.log

@roopa0222 roopa0222 added the bug Something isn't working label Dec 3, 2024
@tjcouch-sil tjcouch-sil changed the title InternetSettings - S/R dialog does not open when setting is changed to 'Disable all internet use' InternetSettings - Running S/R from project menu does not open dialog when an error occurs Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant