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

sforcel seems to be trigger for invalid url #123

Closed
Leftium opened this issue Oct 12, 2024 · 1 comment
Closed

sforcel seems to be trigger for invalid url #123

Leftium opened this issue Oct 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Leftium
Copy link
Contributor

Leftium commented Oct 12, 2024

Describe the bug

  • sforcel does not seem to be a valid bang; it goes to a login page so I can't be sure, but...
  • The url contains a base64 encoded string with the template parameter {{{s}}} inserted into the middle.
  • Because of the {{{s}}}, the base64 is gibberish when decoded.
  • Without the {{{s}}} it decodes to:
{
  "componentDef": "forceSearch:searchPage",
  "attributes": {
    "term": "Curt",
    "scopeMap": {
      "type": "TOP_RESULTS"
    },
    "context": {
      "disableSpellCorrection": false,
      "disableIntentQuery": false,
      "permsAndPrefs": {
        "SearchUi.searchUIPilotFeatureEnabled": false,
        "SearchExperience.LeftNavEnhancementEnabled": true,
        "Search.crossObjectsAutoSuggestEnabled": true,
        "SearchResultsLVM.lvmEnabledForSearchResultsOn": true,
        "MySearch.userCanHaveMySearchBestResult": false,
        "SearchResultsLVM.lvmEnabledForTopResults": false,
        "OrgPermissions.UnionAppNavSmartScope": true,
        "SearchUi.feedbackComponentEnabled": false,
        "SearchExperience.TopResultsSingleSOSLEnabled": false,
        "OrgPreferences.ChatterEnabled": true,
        "Search.maskSearchInfoInLogs": false,
        "SearchUi.orgHasAccessToSearchTermHistory": false,
        "SearchUi.searchUIInteractionLoggingEnabled": false,
        "MySearch.userCanHaveMySearch": false
      },
      "searchDialogSessionId": "346f5c25-204a-b321-dc37-37c79dd2607d",
      "searchSource": "INPUT_DESKTOP"
    },
    "groupId": "DEFAULT"
  },
  "state": {}
}

To Reproduce
Steps to reproduce the behavior:

  1. Use trigger, like !sforcel TEST
  2. See login page
  3. Try logging in?

Expected behavior
The trigger returns some type of SalesForce search results.

Additional context

  • It may be possible the search term needs to be a base64-encoded string itself, so the entire URL decodes correctly.
  • However this would seem to be a very niche bang.
  • It is the largest bang, taking up 1.3Kb.
@Leftium Leftium added the bug Something isn't working label Oct 12, 2024
@nobodywasishere
Copy link
Member

nobodywasishere commented Oct 12, 2024

I've been going through and deleting bangs for dead / broken websites, looks like this one's on the list. If there's not an obvious replacement, feel free to make a PR deleting this bang

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
None yet
Development

No branches or pull requests

2 participants