• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 2.2.1, 2.5.2
    • 2.1.1, 2.5.0
    • Repositories
    • None

      If your README.md file is too large it renders with the message "File content too large to display". Not really sure why there is a limit here. See attached.

        1. boo_stash.jpg
          boo_stash.jpg
          11 kB
        2. README.md
          80 kB

            [BSERV-3197] README markdown doesn't display if "too large"

            AlexH added a comment -

            The following setting does not work when added to stash-config.properties and restarting stash 2.5:

            plugin.stash-readme.max.size=131072

            AlexH added a comment - The following setting does not work when added to stash-config.properties and restarting stash 2.5: plugin.stash-readme.max.size=131072

            CharlesA added a comment -

            Looking through the history I'm afraid to say that after the feature was implemented so nicely in the readme plugin, the version was (accidentally) never bumped in Stash and subsequently didn't make it onto 2.3.x. The whole plugin was subsequently bundled in 2.4, in part to avoid these kinds of complications.

            If you can't upgrade the short-term (and not highly recommended) alternative might be to manually install the fixed readme plugin:

            https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/stash/plugin/stash-readme-plugin/1.0.1/

            The important thing to remember will be to remove it again when you do upgrade to 2.4.

            Cheers,
            Charles

            CharlesA added a comment - Looking through the history I'm afraid to say that after the feature was implemented so nicely in the readme plugin, the version was (accidentally) never bumped in Stash and subsequently didn't make it onto 2.3.x. The whole plugin was subsequently bundled in 2.4, in part to avoid these kinds of complications. If you can't upgrade the short-term (and not highly recommended) alternative might be to manually install the fixed readme plugin: https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/stash/plugin/stash-readme-plugin/1.0.1/ The important thing to remember will be to remove it again when you do upgrade to 2.4. Cheers, Charles

            I tried out this property (it was not available in plugin.stash-readme.max.size), and added the following entry:

            plugin.stash-readme.max.size=131072

            I placed it right after the 4 existing entries, all starting with jdbc...
            After a restart of our Stash server, it still does not work

            Our README.md file is 21K large and Stash still displays:
            File content too large to display

            We use Stash 2.3.1

            Any help appreciated!
            Thanks!

            Stephan Krusche added a comment - I tried out this property (it was not available in plugin.stash-readme.max.size), and added the following entry: plugin.stash-readme.max.size=131072 I placed it right after the 4 existing entries, all starting with jdbc... After a restart of our Stash server, it still does not work Our README.md file is 21K large and Stash still displays: File content too large to display We use Stash 2.3.1 Any help appreciated! Thanks!

            The property is plugin.stash-readme.max.size which currently defaults to 65536 (bytes). Obviously that is a fairly large text file already - you can bump it larger however you should be aware that there are potential performance implications of rendering and displaying a huge markdown file.

            Seb Ruiz (Inactive) added a comment - The property is plugin.stash-readme.max.size which currently defaults to 65536 (bytes). Obviously that is a fairly large text file already - you can bump it larger however you should be aware that there are potential performance implications of rendering and displaying a huge markdown file.

            krusche added a comment - - edited

            We recently did an upgrade to Stash 2.3.1, but I can't find the property in stash-config.properties
            Steve Hoffman, can you kindly tell the name of the property and how the value is supposed to look (with an example), so that I can add it to our stash-config.properties?
            Thanks!

            krusche added a comment - - edited We recently did an upgrade to Stash 2.3.1, but I can't find the property in stash-config.properties Steve Hoffman, can you kindly tell the name of the property and how the value is supposed to look (with an example), so that I can add it to our stash-config.properties? Thanks!

            Probably next week.

            Seb Ruiz (Inactive) added a comment - Probably next week.

            Thanks. Look forward to getting the point release. Nothing in the JIRA for estimated release date?

            Steve Hoffman added a comment - Thanks. Look forward to getting the point release. Nothing in the JIRA for estimated release date?

            bacoboy,
            A fix for this issue will be shipped with the next point release in Stash, 2.2.1. I have bumped the max readme size to 64K with the option of overriding this with a property in stash-config.properties.

            Regards,
            Seb

            Seb Ruiz (Inactive) added a comment - bacoboy , A fix for this issue will be shipped with the next point release in Stash, 2.2.1. I have bumped the max readme size to 64K with the option of overriding this with a property in stash-config.properties . Regards, Seb

            Steve Hoffman added a comment - - edited

            Attaching a sample.
            NOTE: this is just a big file I created. The original file I posted about I can't share.

            Steve Hoffman added a comment - - edited Attaching a sample. NOTE: this is just a big file I created. The original file I posted about I can't share.

            bacoboy if you don't have any sensitive information in it, would you mind sharing your readme with us?

            Or even the number of characters in the file would help

            Seb Ruiz (Inactive) added a comment - bacoboy if you don't have any sensitive information in it, would you mind sharing your readme with us? Or even the number of characters in the file would help

              sruiz Seb Ruiz (Inactive)
              5a9a1ead6f26 Steve Hoffman
              Affected customers:
              0 This affects my team
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: