<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Meanwhile I located the file on github.
      It has already the change in it:<br>
      <span class="author"><a href="https://github.com/tHerrmann"
          rel="contributor">tHerrmann</a></span> <time title="25. Juni
        2014 10:59 MESZ" datetime="2014-06-25T08:59:39Z"
        is="relative-time">on 25 Jun 2014</time><a
href="https://github.com/alkacon/opencms-core/commit/c429d9e9351378050c325082afe9727f760d0060"
        class="message" data-pjax="true" title="Avoiding to set the
        content length header to avoid truncated export
        files."> Avoiding to set the content length header to avoid
        truncated export</a><br>
      <br>
      I'm trying to compile the file locally in my OpenCMS installation
      with the aim to exchange the class in the tree.<br>
      <br>
      Now I'm getting some Java errors (around 40):<br>
      C:\Program
      Files\Apache_Group\Tomcat-8.0.5\webapps\ROOT\WEB-INF\lib>"C:\Program
      Files\Java\jdk1.8.0_05\bin\javac" -cp
      "%JAVA_HOME%;.\opencms.jar;..\classes;C:\Program
      Files\Apache_Group\Tomcat-8.0.5\lib\servlet-api.jar" 
      CmsUsersCsvDownloadDialog.java<br>
      <br>
      Most of them are:<br>
                                                              ^<br>
        symbol:   method getSettings()<br>
        location: class CmsUsersCsvDownloadDialog<br>
      CmsUsersCsvDownloadDialog.java:241: error: cannot find symbol<br>
      List<CmsUser> users =
      OpenCms.getOrgUnitManager().getUsers(getCms(), getParamOuf<br>
      qn(), false);<br>
                                                                 ^<br>
        symbol:   method getCms()<br>
        location: class CmsUsersCsvDownloadDialog<br>
      CmsUsersCsvDownloadDialog.java:241: error: cannot find symbol<br>
      List<CmsUser> users =
      OpenCms.getOrgUnitManager().getUsers(getCms(), getParamOuf<br>
      qn(), false);<br>
                                                                          
      ^<br>
        symbol:   method getParamOufqn()<br>
        location: class CmsUsersCsvDownloadDialog<br>
      CmsUsersCsvDownloadDialog.java:268: error: cannot find symbol<br>
      List<CmsUser> groupUsers =
      getCms().getUsersOfGroup(itGroups.next());<br>
                                 ^<br>
        symbol:   method getCms()<br>
        location: class CmsUsersCsvDownloadDialog<br>
      CmsUsersCsvDownloadDialog.java:296: error: cannot find symbol<br>
      getCms(),<br>
      ^<br>
        symbol:   method getCms()<br>
        location: class CmsUsersCsvDownloadDialog<br>
      CmsUsersCsvDownloadDialog.java:297: error: cannot find symbol<br>
CmsRole.valueOfGroupName(itRoles.next()).forOrgUnit(getParamOufqn()),<br>
                                                          ^<br>
        symbol:   method getParamOufqn()<br>
        location: class CmsUsersCsvDownloadDialog<br>
      CmsUsersCsvDownloadDialog.java:325: error: method does not
      override or implement<br>
       a method from a supertype<br>
      @Override<br>
      ^<br>
      <br>
      I'm not sure at this point in time whether this is the
      recommendable method to get back to my user data or<br>
      whether an appropriate MySQL command would lead to the desired
      result more quickly.<br>
      <br>
      <br>
      <time title="25. Juni 2014 10:59 MESZ"
        datetime="2014-06-25T08:59:39Z" is="relative-time"></time>
      <div class="commit-title"><br>
        <br>
      </div>
      Am 06.01.2015 um 17:14 schrieb Christoph Kukulies:<br>
    </div>
    <blockquote cite="mid:54AC0A02.8060206@physik.rwth-aachen.de"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div class="moz-cite-prefix">BTW, which version of OpenCMS are you
        refering?<br>
        I managed to locate the tree/branch 7_0_x on github but I can't
        find the clas you are refering below.<br>
        <br>
        <br>
        --<br>
        Christoph<br>
        <br>
        Am 06.01.2015 um 15:10 schrieb Christoph Kukulies:<br>
      </div>
      <blockquote cite="mid:54ABECF2.5040101@physik.rwth-aachen.de"
        type="cite">
        <div class="moz-cite-prefix">I'm thinking of doing what you are
          suggesting in your message below.<br>
          <br>
          Just one  question:<br>
          <br>
          Where do I get a opencms 7.0.5 source package?<br>
          <br>
          <br>
          <br>
          <br>
          Am 19.06.2014 um 09:59 schrieb Stephan Schrader:<br>
        </div>
        <blockquote
cite="mid:CAJgCXq7O4jrWUuLtUd6dhpR7K3ThcdtYUe2mhbnWEcsBt4fNXw@mail.gmail.com"
          type="cite">
          <div dir="ltr">
            <div>Spooky, we faced the same issue 2 week ago. But hadn't
              have the time to investigate.</div>
            <div><br>
            </div>
            <div>The original problem is during export, the downloaded
              CSV is not complete. To confirm, open the file with a
              texteditor and at the and you will see that the data stops
              somewhere and not all columns are written.</div>
            <div><br>
            </div>
            <div>The bug is in
              "org.opencms.workplace.tools.accounts.CmsUsersCsvDownloadDialog"
              line: 194. There the Content-Length header must not be
              count of characters, it must be the count of bytes. For a
              quick fix:</div>
            <div><br>
            </div>
            <div>1. Copy the class into a different packacke, eg.
              "org.opencms.fix.workplace.tools.accounts"</div>
            <div>2. Remove line 194 or replace with (which works for
              me):</div>
            <div>        Charset defaultEncoding =
              Charset.forName(OpenCms.getSystemInfo().getDefaultEncoding());</div>
            <div>       
res.setContentLength(buffer.toString().getBytes(defaultEncoding).length);</div>
            <div>        </div>
            <div>3. Deploy and replace the original class with your
              version in:
              /system/workplace/admin/accounts/imexport_user_data/csvdownload.jsp</div>
            <div><br>
            </div>
            <div>Because of the wrong header, there might be some
              browser which ignores the Content-Length and downloads the
              complete content. I only tested with Chrome, maybe you can
              downlaod the full content without the fix in Firefox or
              IE.</div>
            <div><br>
            </div>
            <div>We have also seen another problem with the user import,
              during the import all special character, like ä, ü, ...
              are not correct decoded. </div>
            <div><br>
            </div>
            <div>As before copy the class:
              org.opencms.workplace.tools.accounts.CmsUserDataImportList
              and replace in line: 549, 550 </div>
            <div><br>
            </div>
            <div>            fileReader = new FileReader(m_uploadFile);</div>
            <div>            bufferedReader = new
              BufferedReader(fileReader);</div>
            <div>            </div>
            <div>with</div>
            <div>            FileInputStream fileInputStream = new
              FileInputStream(m_uploadFile);</div>
            <div>            Charset defaultEncoding =
              Charset.forName(OpenCms.getSystemInfo().getDefaultEncoding());</div>
            <div>            Reader reader = new
              InputStreamReader(fileInputStream, defaultEncoding);</div>
            <div>            bufferedReader = new
              BufferedReader(reader);</div>
            <div>            </div>
            <div>Replace the original version in:
              /system/workplace/admin/accounts/imexport_user_data/import_csv_list.jsp 
                        </div>
            <div><br>
            </div>
            <div>Hope this helps</div>
            <div>Stephan            </div>
          </div>
          <div class="gmail_extra"><br>
            <br>
            <div class="gmail_quote">2014-06-17 13:05 GMT+02:00 Filip
              Kratochvil <span dir="ltr"><<a moz-do-not-send="true"
                  href="mailto:filip.kratochvil@nelasoft.cz"
                  target="_blank">filip.kratochvil@nelasoft.cz</a>></span>:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div bgcolor="white" link="blue" vlink="purple"
                  lang="CS">
                  <div>
                    <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi


                        Chris,</span></p>
                    <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
                    <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">it


                        will be nice, if you can show us full Error
                        message by <b>Details…</b> button</span><span
                        style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">J</span><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">
                        As so as i had a similar problems with import
                        because i had some whitespaces or invisible
                        characters in CSV file. So you can try to check
                        it.</span></p>
                    <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
                    <div>
                      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">--<br>
                          Regards<br>
                          Filip Kratochvil<br>
------------------------------------------------<br>
                          NELASOFT Technologies, s.r.o.<br>
                          E-mail: <a moz-do-not-send="true"
                            href="mailto:filip.kratochvil@nelasoft.cz"
                            target="_blank"><span style="color:blue">filip.kratochvil@nelasoft.cz</span></a></span><br>
                      </p>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </div>
        </blockquote>
        <br>
      </blockquote>
      <br>
      <br>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
    </div>
  </body>
</html>