Hi Anish.<br><br>Here are the steps to be followed to reproduce the issue ::<br><br>a)<br>Ensure that the "Journal" and "Documents" (and "Shares" folder, if the Share-With-Many/1-to-N feature patch has been applied) are empty.<br>
<br>b)<br>Copy a file (I tried with a mp3) to a USB drive, from a non-XO machine.<br><br>c)<br>Insert the USB drive in the XO.<br><br>d)<br>Copy the file (of step b) ) to "Documents" folder.<br><br>e)<br>View Details of the copied entry (in "Documents").<br>
<br>f)<br>There should be the exception in the logs. Moreover, the "Description" field should be empty in the "Details View" (this field ought to be "/media/<name of USB drive>").<br><br>
<br>As already mentioned in the patch-description. the Batch-Operations patch (<a href="http://patchwork.sugarlabs.org/patch/1205/" target="_blank">http://patchwork.sugarlabs.org/patch/1205/</a>) must be applied, prior to applying this patch; else this patch won't apply cleanly.<br>
<br><br>Thanks and Regards,<br>Ajay<br><br><br><div class="gmail_quote">On Thu, May 17, 2012 at 10:32 PM, Anish Mangal <span dir="ltr"><<a href="mailto:anish@activitycentral.com" target="_blank">anish@activitycentral.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div><div class="h5"><br>
On Wednesday 16 May 2012 07:20:08 PM IST, Ajay Garg wrote:<br>
> Please note, that the global API ("get_mount_point()" and "set_mount_point()") were<br>
> introduced as a part of batch-operations feature, for which the patch is located at ::<br>
> <a href="http://patchwork.sugarlabs.org/patch/1205/" target="_blank">http://patchwork.sugarlabs.org/patch/1205/</a><br>
><br>
> Also, since the bug has been diagnosed on sugar-mainline master (on which the batch-operations<br>
> patch has not been pushed, yet ;-) ), so this (ticket sl#3605) does not seem to be a<br>
> regression; it seems to be genuinely present right from the start.<br>
><br>
> src/jarabe/journal/model.py | 8 +++++++-<br>
> 1 files changed, 7 insertions(+), 1 deletions(-)<br>
><br>
> diff --git a/src/jarabe/journal/model.py b/src/jarabe/journal/model.py<br>
> index 527f78d..1f042db 100644<br>
> --- a/src/jarabe/journal/model.py<br>
> +++ b/src/jarabe/journal/model.py<br>
> @@ -1003,7 +1003,13 @@ def is_editable(metadata):<br>
> if metadata.get('mountpoint', '/') == '/':<br>
> return True<br>
> else:<br>
> - return os.access(metadata['mountpoint'], os.W_OK)<br>
> + # sl#3605: Instead of relying on mountpoint property being<br>
> + # present in the metadata, use journalactivity api.<br>
> + # This would work seamlessly, as "Details View' is<br>
> + # called, upon an entry in the context of a singular<br>
> + # mount-point.<br>
> + from jarabe.journal.journalactivity import get_mount_point<br>
> + return os.access(get_mount_point(), os.W_OK)<br>
><br>
><br>
> def get_documents_path():<br>
<br>
</div></div>Could you give directions as to what triggers the exception (and<br>
whether another patch needs to be applied first) before this one is<br>
applied.<br>
<br>
I tried a very basic test on current jhbuild. Opening the details view<br>
of a journal entry in documents folder doesnt trigger the exception.<br>
Maybe I'm missing something. :)<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.12 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iQEcBAEBAgAGBQJPtS8SAAoJEBoxUdDHDZVp2bIIAISNLWGYTTN4Ld/6aNVF/Gfm<br>
DpbWNarMIywujKf3iXtAx83rfpt2rnBsu20htuf9LU6ALndDckqHneFDymGNv1+P<br>
HyDcb84HNQ5iAgAvnW8ty1sAQYrLsH13TLrRuTiGTVKH6QEZRvp4PAIIc06FdJjV<br>
66ouqh0q0QfbIuP9orKSX2WAtlwt94NwuxmrrvqpfeMWykwpib4GTdh7eaMtLjlC<br>
6x5pe1IYlcf8mzvxULNOoHasm4UhJtOTS8ozazmVHJa5THu30rRb/1/Y1bMX7/n3<br>
aDPCZ/LRW0N5vUVavBb49Xf2ttwe7CQkpYJl95sbQDTPdvgm5UfPtRgEshcu29A=<br>
=Ncsj<br>
-----END PGP SIGNATURE-----<br>
<br>
</blockquote></div><br>