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

[Content Types] : The "Site or Folder" field dropdown randomly disappears #20270

Closed
jcastro-dotcms opened this issue Apr 16, 2021 · 5 comments · Fixed by #20465
Closed

[Content Types] : The "Site or Folder" field dropdown randomly disappears #20270

jcastro-dotcms opened this issue Apr 16, 2021 · 5 comments · Fixed by #20465

Comments

@jcastro-dotcms
Copy link
Contributor

jcastro-dotcms commented Apr 16, 2021

Reported via Support: 103962
Reproducible in dotCMS 5.3.8.4 ( branch release-5.3.8.4), 5.3.8.5, and latest master.

Several Content Types stop displaying the Site or Folder dropdown from the Content Type Edit Modal randomly.

To Reproduce
Steps to reproduce the behavior:

  1. Reach out to Jose Castro for details on the required data.
  2. Set up a dotCMS 5.3.8.4 instance.
  3. Reach out to Jose Castro in order to find the failing Content Type.

Expected behavior
The Site or Folder field must show up in the Edit Modal all the time.

Additional context
The customer needs this feature to work in order to continue with their authoring tasks.

@jcastro-dotcms jcastro-dotcms added this to the Maintenance Sprint milestone Apr 16, 2021
@jcastro-dotcms jcastro-dotcms added LTS: Discuss To be discussed between Support & R&D Severity : Discuss and removed LTS: Discuss To be discussed between Support & R&D labels May 10, 2021
@hmoreras hmoreras self-assigned this May 27, 2021
@hmoreras
Copy link
Contributor

hmoreras commented May 28, 2021

Findings: The siteSelector trust in a single property hostname to display the name of the Host assigned to the contentType. The query to get this info is the following:

http://localhost:8080/api/content/render/false/query/+contentType:host%20+identifier:SYSTEM_HOST

If we use this with any identifier except SYSTEM_HOST the object come with hostName and hostname. but with SYSTEM_HOST only comes hostName so the reference get lost in the Front End because of the capital N, and do not display the dropdown.

SYSTEM_HOST results

image

Any other identifier

image

@hmoreras hmoreras assigned jdotcms and unassigned hmoreras May 28, 2021
jdotcms added a commit that referenced this issue May 28, 2021
jdotcms added a commit that referenced this issue May 28, 2021
jdotcms added a commit that referenced this issue May 28, 2021
fmontes added a commit that referenced this issue Jun 1, 2021
@erickgonzalez erickgonzalez linked a pull request Jun 2, 2021 that will close this issue
@hmoreras
Copy link
Contributor

hmoreras commented Jun 4, 2021

working on branch release-21.06

@john-thomas-dotcms john-thomas-dotcms added LTS : Next Ticket that will be added to LTS and removed Severity : Discuss labels Jun 16, 2021
@bryanboza
Copy link
Member

After this fix now we are able to see the drop-down, but if you try to use the filter typing more than 3 characters we are getting the same problem again

image

Also, after update the site, we getting this:

image

After talk with @jcastro-dotcms we need some work here.

@jcastro-dotcms
Copy link
Contributor Author

NOTE TO SUPPORT: For a subsequent dotCMS 5.3.8.6 LTS patch, we just need Jonathan's fix, as this new issue reported by Bryan is only reproducible in more recent versions of dotCMS.

fmontes pushed a commit to dotCMS/core-web that referenced this issue Jul 2, 2021
…ears (#1691)

* progress

* progress

* clean up

* this change because waiting for change detection

* cleanup
@bryanboza
Copy link
Member

Fixed, tested on the real dataset and the fix works as expected...

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

Successfully merging a pull request may close this issue.

9 participants