Skip to content

Unable to export Options… to JSON for Enterprise servers #7688

Closed

Description

@mobilemind

Description

The Export option always exports the json for GitHub.com, even if you change the drop-down menu at the top to an enterprise server before clicking Export. Valid personal access tokens exist for both the GitHub domain and the Enterprise server domain. The GitHub Enterprise server is GitHub Enterprise Server 3.9.

No console errors are indicated in the console for the original (settings) tab or the console with the replacement content and the data:application/json URL.

In the attached example, I've redacted the Enterprise server, user account, the personal access token (except for the last few characters), and modified the action URL Hoeever you can see it is not exporting

Notice that the token and action URL from the Refined options (settings) are not what appears in the JSON export.

Refined-options

Refined-export

How to replicate the issue + URL

https://ENTERPRISE-SERVER.github.ENTERPRISE-DOMAIN.com

Extension version

24.7.10

Browser(s) used

Safari 17.6 (Mac)

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.

Activity

  1. fregante commented on Aug 15, 2024

    @fregante
    Member

    Thanks for the report! I think this is the bug:

  2. added
    enterprise
    on Aug 19, 2024
  3. mobilemind commented on Aug 24, 2024

    @mobilemind
    Author

    This fix seems to have broken the ability to add and use separate tokens for GitHub.com and an enterprise GitHub domain. If you switch domains and paste in a new token, it replaces the token for both domains with the new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenterprise

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions